| 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 29 matching lines...) Expand all Loading... |
| 40 class CORE_EXPORT LayoutFlexibleBox : public LayoutBlock { | 40 class CORE_EXPORT LayoutFlexibleBox : public LayoutBlock { |
| 41 public: | 41 public: |
| 42 LayoutFlexibleBox(Element*); | 42 LayoutFlexibleBox(Element*); |
| 43 ~LayoutFlexibleBox() override; | 43 ~LayoutFlexibleBox() override; |
| 44 | 44 |
| 45 static LayoutFlexibleBox* createAnonymous(Document*); | 45 static LayoutFlexibleBox* createAnonymous(Document*); |
| 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; } | |
| 51 void layoutBlock(bool relayoutChildren) final; | 50 void layoutBlock(bool relayoutChildren) final; |
| 52 | 51 |
| 53 int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePo
sitionMode = PositionOnContainingLine) const override; | 52 int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePo
sitionMode = PositionOnContainingLine) const override; |
| 54 int firstLineBoxBaseline() const override; | 53 int firstLineBoxBaseline() const override; |
| 55 int inlineBlockBaseline(LineDirectionMode) const override; | 54 int inlineBlockBaseline(LineDirectionMode) const override; |
| 56 IntSize originAdjustmentForScrollbars() const override; | 55 IntSize originAdjustmentForScrollbars() const override; |
| 57 bool hasTopOverflow() const override; | 56 bool hasTopOverflow() const override; |
| 58 bool hasLeftOverflow() const override; | 57 bool hasLeftOverflow() const override; |
| 59 | 58 |
| 60 void paintChildren(const PaintInfo&, const LayoutPoint&) const final; | 59 void paintChildren(const PaintInfo&, const LayoutPoint&) const final; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 206 |
| 208 mutable OrderIterator m_orderIterator; | 207 mutable OrderIterator m_orderIterator; |
| 209 int m_numberOfInFlowChildrenOnFirstLine; | 208 int m_numberOfInFlowChildrenOnFirstLine; |
| 210 }; | 209 }; |
| 211 | 210 |
| 212 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); | 211 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); |
| 213 | 212 |
| 214 } // namespace blink | 213 } // namespace blink |
| 215 | 214 |
| 216 #endif // LayoutFlexibleBox_h | 215 #endif // LayoutFlexibleBox_h |
| OLD | NEW |