OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the layout object implementation for KHTML. | 2 * This file is part of the layout object implementation for KHTML. |
3 * | 3 * |
4 * Copyright (C) 2003 Apple Computer, Inc. | 4 * Copyright (C) 2003 Apple Computer, Inc. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 26 matching lines...) Expand all Loading... |
37 const char* name() const override { return "LayoutDeprecatedFlexibleBox"; } | 37 const char* name() const override { return "LayoutDeprecatedFlexibleBox"; } |
38 | 38 |
39 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; | 39 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; |
40 | 40 |
41 void layoutBlock(bool relayoutChildren) override; | 41 void layoutBlock(bool relayoutChildren) override; |
42 void layoutHorizontalBox(bool relayoutChildren); | 42 void layoutHorizontalBox(bool relayoutChildren); |
43 void layoutVerticalBox(bool relayoutChildren); | 43 void layoutVerticalBox(bool relayoutChildren); |
44 | 44 |
45 bool isDeprecatedFlexibleBox() const override { return true; } | 45 bool isDeprecatedFlexibleBox() const override { return true; } |
46 bool isStretchingChildren() const { return m_stretchingChildren; } | 46 bool isStretchingChildren() const { return m_stretchingChildren; } |
47 bool canCollapseAnonymousBlockChild() const override { return false; } | |
48 | 47 |
49 void placeChild(LayoutBox* child, const LayoutPoint& location); | 48 void placeChild(LayoutBox* child, const LayoutPoint& location); |
50 | 49 |
51 private: | 50 private: |
52 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit&
maxLogicalWidth) const override; | 51 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit&
maxLogicalWidth) const override; |
53 | 52 |
54 LayoutUnit allowedChildFlex(LayoutBox* child, bool expanding, unsigned group
); | 53 LayoutUnit allowedChildFlex(LayoutBox* child, bool expanding, unsigned group
); |
55 | 54 |
56 bool hasMultipleLines() const { return style()->boxLines() == MULTIPLE; } | 55 bool hasMultipleLines() const { return style()->boxLines() == MULTIPLE; } |
57 bool isVertical() const { return style()->boxOrient() == VERTICAL; } | 56 bool isVertical() const { return style()->boxOrient() == VERTICAL; } |
58 bool isHorizontal() const { return style()->boxOrient() == HORIZONTAL; } | 57 bool isHorizontal() const { return style()->boxOrient() == HORIZONTAL; } |
59 | 58 |
60 void applyLineClamp(FlexBoxIterator&, bool relayoutChildren); | 59 void applyLineClamp(FlexBoxIterator&, bool relayoutChildren); |
61 void clearLineClamp(); | 60 void clearLineClamp(); |
62 | 61 |
63 bool m_stretchingChildren; | 62 bool m_stretchingChildren; |
64 }; | 63 }; |
65 | 64 |
66 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutDeprecatedFlexibleBox, isDeprecatedFlexibl
eBox()); | 65 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutDeprecatedFlexibleBox, isDeprecatedFlexibl
eBox()); |
67 | 66 |
68 } // namespace blink | 67 } // namespace blink |
69 | 68 |
70 #endif // LayoutDeprecatedFlexibleBox_h | 69 #endif // LayoutDeprecatedFlexibleBox_h |
OLD | NEW |