| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual void paintChildren(const PaintInfo&, const LayoutPoint&) override fi
nal; | 56 virtual void paintChildren(const PaintInfo&, const LayoutPoint&) override fi
nal; |
| 57 | 57 |
| 58 bool isHorizontalFlow() const; | 58 bool isHorizontalFlow() const; |
| 59 | 59 |
| 60 OrderIterator& orderIterator() { return m_orderIterator; } | 60 OrderIterator& orderIterator() { return m_orderIterator; } |
| 61 | 61 |
| 62 protected: | 62 protected: |
| 63 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const override; | 63 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const override; |
| 64 | 64 |
| 65 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov
erride; | 65 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov
erride; |
| 66 virtual void removeChild(RenderObject*) override; | 66 virtual void removeChild(LayoutObject*) override; |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 enum FlexSign { | 69 enum FlexSign { |
| 70 PositiveFlexibility, | 70 PositiveFlexibility, |
| 71 NegativeFlexibility, | 71 NegativeFlexibility, |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 enum PositionedLayoutMode { | 74 enum PositionedLayoutMode { |
| 75 FlipForRowReverse, | 75 FlipForRowReverse, |
| 76 NoFlipForRowReverse, | 76 NoFlipForRowReverse, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 size_t numberOfInFlowPositionedChildren(const OrderedFlexItemList&) const; | 153 size_t numberOfInFlowPositionedChildren(const OrderedFlexItemList&) const; |
| 154 void layoutAndPlaceChildren(LayoutUnit& crossAxisOffset, const OrderedFlexIt
emList&, const Vector<LayoutUnit, 16>& childSizes, LayoutUnit availableFreeSpace
, bool relayoutChildren, Vector<LineContext>&, bool hasInfiniteLineLength); | 154 void layoutAndPlaceChildren(LayoutUnit& crossAxisOffset, const OrderedFlexIt
emList&, const Vector<LayoutUnit, 16>& childSizes, LayoutUnit availableFreeSpace
, bool relayoutChildren, Vector<LineContext>&, bool hasInfiniteLineLength); |
| 155 void layoutColumnReverse(const OrderedFlexItemList&, LayoutUnit crossAxisOff
set, LayoutUnit availableFreeSpace); | 155 void layoutColumnReverse(const OrderedFlexItemList&, LayoutUnit crossAxisOff
set, LayoutUnit availableFreeSpace); |
| 156 void alignFlexLines(Vector<LineContext>&); | 156 void alignFlexLines(Vector<LineContext>&); |
| 157 void alignChildren(const Vector<LineContext>&); | 157 void alignChildren(const Vector<LineContext>&); |
| 158 void applyStretchAlignmentToChild(RenderBox& child, LayoutUnit lineCrossAxis
Extent); | 158 void applyStretchAlignmentToChild(RenderBox& child, LayoutUnit lineCrossAxis
Extent); |
| 159 void flipForRightToLeftColumn(); | 159 void flipForRightToLeftColumn(); |
| 160 void flipForWrapReverse(const Vector<LineContext>&, LayoutUnit crossAxisStar
tEdge); | 160 void flipForWrapReverse(const Vector<LineContext>&, LayoutUnit crossAxisStar
tEdge); |
| 161 | 161 |
| 162 // This is used to cache the preferred size for orthogonal flow children so
we don't have to relayout to get it | 162 // This is used to cache the preferred size for orthogonal flow children so
we don't have to relayout to get it |
| 163 HashMap<const RenderObject*, LayoutUnit> m_intrinsicSizeAlongMainAxis; | 163 HashMap<const LayoutObject*, LayoutUnit> m_intrinsicSizeAlongMainAxis; |
| 164 | 164 |
| 165 mutable OrderIterator m_orderIterator; | 165 mutable OrderIterator m_orderIterator; |
| 166 int m_numberOfInFlowChildrenOnFirstLine; | 166 int m_numberOfInFlowChildrenOnFirstLine; |
| 167 }; | 167 }; |
| 168 | 168 |
| 169 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFlexibleBox, isFlexibleBox()); | 169 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderFlexibleBox, isFlexibleBox()); |
| 170 | 170 |
| 171 } // namespace blink | 171 } // namespace blink |
| 172 | 172 |
| 173 #endif // RenderFlexibleBox_h | 173 #endif // RenderFlexibleBox_h |
| OLD | NEW |