OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef LineLayoutBoxModel_h | 5 #ifndef LineLayoutBoxModel_h |
6 #define LineLayoutBoxModel_h | 6 #define LineLayoutBoxModel_h |
7 | 7 |
8 #include "core/layout/LayoutBoxModelObject.h" | 8 #include "core/layout/LayoutBoxModelObject.h" |
9 #include "core/layout/api/LineLayoutItem.h" | 9 #include "core/layout/api/LineLayoutItem.h" |
10 #include "platform/LayoutUnit.h" | 10 #include "platform/LayoutUnit.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 LayoutUnit paddingBottom() const { return toBoxModel()->paddingBottom(); } | 76 LayoutUnit paddingBottom() const { return toBoxModel()->paddingBottom(); } |
77 | 77 |
78 LayoutUnit paddingLeft() const { return toBoxModel()->paddingLeft(); } | 78 LayoutUnit paddingLeft() const { return toBoxModel()->paddingLeft(); } |
79 | 79 |
80 LayoutUnit paddingRight() const { return toBoxModel()->paddingRight(); } | 80 LayoutUnit paddingRight() const { return toBoxModel()->paddingRight(); } |
81 | 81 |
82 LayoutUnit paddingBefore() const { return toBoxModel()->paddingBefore(); } | 82 LayoutUnit paddingBefore() const { return toBoxModel()->paddingBefore(); } |
83 | 83 |
84 LayoutUnit paddingAfter() const { return toBoxModel()->paddingAfter(); } | 84 LayoutUnit paddingAfter() const { return toBoxModel()->paddingAfter(); } |
85 | 85 |
86 int borderTop() const { return toBoxModel()->borderTop(); } | 86 LayoutUnit borderTop() const { return toBoxModel()->borderTop(); } |
87 | 87 |
88 int borderBottom() const { return toBoxModel()->borderBottom(); } | 88 LayoutUnit borderBottom() const { return toBoxModel()->borderBottom(); } |
89 | 89 |
90 int borderLeft() const { return toBoxModel()->borderLeft(); } | 90 LayoutUnit borderLeft() const { return toBoxModel()->borderLeft(); } |
91 | 91 |
92 int borderRight() const { return toBoxModel()->borderRight(); } | 92 LayoutUnit borderRight() const { return toBoxModel()->borderRight(); } |
93 | 93 |
94 int borderBefore() const { return toBoxModel()->borderBefore(); } | 94 LayoutUnit borderBefore() const { return toBoxModel()->borderBefore(); } |
95 | 95 |
96 int borderAfter() const { return toBoxModel()->borderAfter(); } | 96 LayoutUnit borderAfter() const { return toBoxModel()->borderAfter(); } |
97 | 97 |
98 LayoutSize relativePositionLogicalOffset() const { | 98 LayoutSize relativePositionLogicalOffset() const { |
99 return toBoxModel()->relativePositionLogicalOffset(); | 99 return toBoxModel()->relativePositionLogicalOffset(); |
100 } | 100 } |
101 | 101 |
102 bool hasInlineDirectionBordersOrPadding() const { | 102 bool hasInlineDirectionBordersOrPadding() const { |
103 return toBoxModel()->hasInlineDirectionBordersOrPadding(); | 103 return toBoxModel()->hasInlineDirectionBordersOrPadding(); |
104 } | 104 } |
105 | 105 |
106 LayoutUnit borderAndPaddingOver() const { | 106 LayoutUnit borderAndPaddingOver() const { |
(...skipping 21 matching lines...) Expand all Loading... |
128 } | 128 } |
129 }; | 129 }; |
130 | 130 |
131 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const { | 131 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const { |
132 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject()); | 132 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject()); |
133 } | 133 } |
134 | 134 |
135 } // namespace blink | 135 } // namespace blink |
136 | 136 |
137 #endif // LineLayoutBoxModel_h | 137 #endif // LineLayoutBoxModel_h |
OLD | NEW |