Chromium Code Reviews| 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 borderLeft() const | |
| 117 { | |
| 118 return toBoxModel()->borderLeft(); | |
| 119 } | |
| 120 | |
| 121 int borderRight() const | |
| 122 { | |
| 123 return toBoxModel()->borderRight(); | |
| 124 } | |
| 125 | |
|
eae
2015/09/02 20:32:57
What about borderBottom?
| |
| 111 int borderBefore() const | 126 int borderBefore() const |
| 112 { | 127 { |
| 113 return toBoxModel()->borderBefore(); | 128 return toBoxModel()->borderBefore(); |
| 114 } | 129 } |
| 115 | 130 |
| 116 int borderAfter() const | 131 int borderAfter() const |
| 117 { | 132 { |
| 118 return toBoxModel()->borderAfter(); | 133 return toBoxModel()->borderAfter(); |
| 119 } | 134 } |
| 120 | 135 |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 144 }; | 159 }; |
| 145 | 160 |
| 146 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const | 161 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const |
| 147 { | 162 { |
| 148 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject()); | 163 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject()); |
| 149 } | 164 } |
| 150 | 165 |
| 151 } // namespace blink | 166 } // namespace blink |
| 152 | 167 |
| 153 #endif // LineLayoutBoxModel_h | 168 #endif // LineLayoutBoxModel_h |
| OLD | NEW |