| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 } | 108 } |
| 109 | 109 |
| 110 LayoutUnit borderAndPaddingUnder() const { | 110 LayoutUnit borderAndPaddingUnder() const { |
| 111 return toBoxModel()->borderAndPaddingUnder(); | 111 return toBoxModel()->borderAndPaddingUnder(); |
| 112 } | 112 } |
| 113 | 113 |
| 114 LayoutUnit borderAndPaddingLogicalHeight() const { | 114 LayoutUnit borderAndPaddingLogicalHeight() const { |
| 115 return toBoxModel()->borderAndPaddingLogicalHeight(); | 115 return toBoxModel()->borderAndPaddingLogicalHeight(); |
| 116 } | 116 } |
| 117 | 117 |
| 118 bool boxShadowShouldBeAppliedToBackground( | |
| 119 BackgroundBleedAvoidance bleedAvoidance, | |
| 120 const InlineFlowBox* inlineFlowBox = nullptr) const { | |
| 121 return toBoxModel()->boxShadowShouldBeAppliedToBackground(bleedAvoidance, | |
| 122 inlineFlowBox); | |
| 123 } | |
| 124 | |
| 125 LayoutSize offsetForInFlowPosition() const { | 118 LayoutSize offsetForInFlowPosition() const { |
| 126 return toBoxModel()->offsetForInFlowPosition(); | 119 return toBoxModel()->offsetForInFlowPosition(); |
| 127 } | 120 } |
| 128 | 121 |
| 129 private: | 122 private: |
| 130 LayoutBoxModelObject* toBoxModel() { | 123 LayoutBoxModelObject* toBoxModel() { |
| 131 return toLayoutBoxModelObject(layoutObject()); | 124 return toLayoutBoxModelObject(layoutObject()); |
| 132 } | 125 } |
| 133 const LayoutBoxModelObject* toBoxModel() const { | 126 const LayoutBoxModelObject* toBoxModel() const { |
| 134 return toLayoutBoxModelObject(layoutObject()); | 127 return toLayoutBoxModelObject(layoutObject()); |
| 135 } | 128 } |
| 136 }; | 129 }; |
| 137 | 130 |
| 138 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const { | 131 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const { |
| 139 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject()); | 132 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject()); |
| 140 } | 133 } |
| 141 | 134 |
| 142 } // namespace blink | 135 } // namespace blink |
| 143 | 136 |
| 144 #endif // LineLayoutBoxModel_h | 137 #endif // LineLayoutBoxModel_h |
| OLD | NEW |