diff options
Diffstat (limited to 'Source/WebCore/rendering/RenderFlexibleBox.h')
-rw-r--r-- | Source/WebCore/rendering/RenderFlexibleBox.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/WebCore/rendering/RenderFlexibleBox.h b/Source/WebCore/rendering/RenderFlexibleBox.h index 1a9ebc982..bd05b450c 100644 --- a/Source/WebCore/rendering/RenderFlexibleBox.h +++ b/Source/WebCore/rendering/RenderFlexibleBox.h @@ -44,6 +44,7 @@ public: virtual const char* renderName() const OVERRIDE; virtual bool isFlexibleBox() const OVERRIDE { return true; } + virtual bool avoidsFloats() const OVERRIDE { return true; } virtual void computePreferredLogicalWidths() OVERRIDE; virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) OVERRIDE; @@ -62,7 +63,8 @@ private: NoFlipForRowReverse, }; - typedef HashSet<float> OrderHashSet; + struct OrderHashTraits; + typedef HashSet<int, DefaultHash<int>::Hash, OrderHashTraits> OrderHashSet; class OrderIterator; typedef WTF::HashMap<const RenderBox*, LayoutUnit> InflexibleFlexItemSize; @@ -75,7 +77,6 @@ private: bool isColumnFlow() const; bool isLeftToRightFlow() const; bool isMultiline() const; - Length crossAxisLength() const; Length flexBasisForChild(RenderBox* child) const; void setCrossAxisExtent(LayoutUnit); LayoutUnit crossAxisExtentForChild(RenderBox* child); @@ -84,6 +85,7 @@ private: LayoutUnit mainAxisExtent() const; LayoutUnit crossAxisContentExtent() const; LayoutUnit mainAxisContentExtent(); + LayoutUnit computeMainAxisExtentForChild(RenderBox* child, SizeType, const Length& size, LayoutUnit maximumValue); WritingMode transformedWritingMode() const; LayoutUnit flowAwareBorderStart() const; LayoutUnit flowAwareBorderEnd() const; @@ -117,6 +119,7 @@ private: LayoutUnit availableAlignmentSpaceForChild(LayoutUnit lineCrossAxisExtent, RenderBox*); LayoutUnit marginBoxAscentForChild(RenderBox*); + LayoutUnit computeMarginValue(Length margin, LayoutUnit availableSize, RenderView*); void computeMainAxisPreferredSizes(bool relayoutChildren, OrderHashSet&); LayoutUnit lineBreakLength(); LayoutUnit adjustChildSizeForMinAndMax(RenderBox*, LayoutUnit childSize, LayoutUnit flexboxAvailableContentExtent); |