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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 LayoutUnit paddingBefore() const | 101 LayoutUnit paddingBefore() const |
102 { | 102 { |
103 return toBoxModel()->paddingBefore(); | 103 return toBoxModel()->paddingBefore(); |
104 } | 104 } |
105 | 105 |
106 LayoutUnit paddingAfter() const | 106 LayoutUnit paddingAfter() const |
107 { | 107 { |
108 return toBoxModel()->paddingAfter(); | 108 return toBoxModel()->paddingAfter(); |
109 } | 109 } |
110 | 110 |
| 111 int borderTop() const |
| 112 { |
| 113 return toBoxModel()->borderTop(); |
| 114 } |
| 115 |
| 116 int borderBottom() const |
| 117 { |
| 118 return toBoxModel()->borderBottom(); |
| 119 } |
| 120 |
| 121 int borderLeft() const |
| 122 { |
| 123 return toBoxModel()->borderLeft(); |
| 124 } |
| 125 |
| 126 int borderRight() const |
| 127 { |
| 128 return toBoxModel()->borderRight(); |
| 129 } |
| 130 |
111 int borderBefore() const | 131 int borderBefore() const |
112 { | 132 { |
113 return toBoxModel()->borderBefore(); | 133 return toBoxModel()->borderBefore(); |
114 } | 134 } |
115 | 135 |
116 int borderAfter() const | 136 int borderAfter() const |
117 { | 137 { |
118 return toBoxModel()->borderAfter(); | 138 return toBoxModel()->borderAfter(); |
119 } | 139 } |
120 | 140 |
(...skipping 23 matching lines...) Expand all Loading... |
144 }; | 164 }; |
145 | 165 |
146 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const | 166 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const |
147 { | 167 { |
148 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject()); | 168 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject()); |
149 } | 169 } |
150 | 170 |
151 } // namespace blink | 171 } // namespace blink |
152 | 172 |
153 #endif // LineLayoutBoxModel_h | 173 #endif // LineLayoutBoxModel_h |
OLD | NEW |