diff options
Diffstat (limited to 'layout/generic/nsFrame.h')
-rw-r--r-- | layout/generic/nsFrame.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/layout/generic/nsFrame.h b/layout/generic/nsFrame.h index d75555fec2..3110335dd5 100644 --- a/layout/generic/nsFrame.h +++ b/layout/generic/nsFrame.h @@ -266,6 +266,16 @@ public: virtual mozilla::IntrinsicSize GetIntrinsicSize() override; virtual mozilla::AspectRatio GetIntrinsicRatio() override; + /** + * Helper function for determining if flex items should use their + * 'flex-basis' property instead of their main-size property, such + * as 'width', for sizing purposes. + */ + void SetCoordToFlexBasis(bool aIsInlineFlexItem, + const nsStyleCoord* aFlexBasis, + const nsStyleCoord** aInlineStyle, + const nsStyleCoord** aBlockStyle); + virtual mozilla::LogicalSize ComputeSize(nsRenderingContext* aRenderingContext, mozilla::WritingMode aWM, @@ -295,7 +305,7 @@ public: // Compute tight bounds assuming this frame honours its border, background // and outline, its children's tight bounds, and nothing else. nsRect ComputeSimpleTightBounds(mozilla::gfx::DrawTarget* aDrawTarget) const; - + /** * A helper, used by |nsFrame::ComputeSize| (for frames that need to * override only this part of ComputeSize), that computes the size |