| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 const char* name() const override { return "LayoutFlexibleBox"; } | 47 const char* name() const override { return "LayoutFlexibleBox"; } |
| 48 | 48 |
| 49 bool isFlexibleBox() const final { return true; } | 49 bool isFlexibleBox() const final { return true; } |
| 50 bool canCollapseAnonymousBlockChild() const override { return false; } | 50 bool canCollapseAnonymousBlockChild() const override { return false; } |
| 51 void layoutBlock(bool relayoutChildren) final; | 51 void layoutBlock(bool relayoutChildren) final; |
| 52 | 52 |
| 53 int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePo
sitionMode = PositionOnContainingLine) const override; | 53 int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePo
sitionMode = PositionOnContainingLine) const override; |
| 54 int firstLineBoxBaseline() const override; | 54 int firstLineBoxBaseline() const override; |
| 55 int inlineBlockBaseline(LineDirectionMode) const override; | 55 int inlineBlockBaseline(LineDirectionMode) const override; |
| 56 IntSize originAdjustmentForScrollbars() const override; |
| 57 bool hasTopOverflow() const override; |
| 58 bool hasLeftOverflow() const override; |
| 56 | 59 |
| 57 void paintChildren(const PaintInfo&, const LayoutPoint&) const final; | 60 void paintChildren(const PaintInfo&, const LayoutPoint&) const final; |
| 58 | 61 |
| 59 bool isHorizontalFlow() const; | 62 bool isHorizontalFlow() const; |
| 60 | 63 |
| 61 const OrderIterator& orderIterator() const { return m_orderIterator; } | 64 const OrderIterator& orderIterator() const { return m_orderIterator; } |
| 62 | 65 |
| 63 // Returns -1 if the height of this flexbox is indefinite | 66 // Returns -1 if the height of this flexbox is indefinite |
| 64 LayoutUnit computeDefiniteLogicalWidth(); | 67 LayoutUnit computeDefiniteLogicalWidth(); |
| 65 LayoutUnit computeDefiniteLogicalHeight(); | 68 LayoutUnit computeDefiniteLogicalHeight(); |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 207 |
| 205 mutable OrderIterator m_orderIterator; | 208 mutable OrderIterator m_orderIterator; |
| 206 int m_numberOfInFlowChildrenOnFirstLine; | 209 int m_numberOfInFlowChildrenOnFirstLine; |
| 207 }; | 210 }; |
| 208 | 211 |
| 209 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); | 212 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); |
| 210 | 213 |
| 211 } // namespace blink | 214 } // namespace blink |
| 212 | 215 |
| 213 #endif // LayoutFlexibleBox_h | 216 #endif // LayoutFlexibleBox_h |
| OLD | NEW |