| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 bool hasInlineDirectionBordersOrPadding() const | 126 bool hasInlineDirectionBordersOrPadding() const |
| 127 { | 127 { |
| 128 return toBoxModel()->hasInlineDirectionBordersOrPadding(); | 128 return toBoxModel()->hasInlineDirectionBordersOrPadding(); |
| 129 } | 129 } |
| 130 | 130 |
| 131 LayoutUnit borderAndPaddingLogicalHeight() const | 131 LayoutUnit borderAndPaddingLogicalHeight() const |
| 132 { | 132 { |
| 133 return toBoxModel()->borderAndPaddingLogicalHeight(); | 133 return toBoxModel()->borderAndPaddingLogicalHeight(); |
| 134 } | 134 } |
| 135 | 135 |
| 136 bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance bleedAvoi
dance, InlineFlowBox* inlineFlowBox = nullptr) const |
| 137 { |
| 138 return toBoxModel()->boxShadowShouldBeAppliedToBackground(bleedAvoidance
, inlineFlowBox); |
| 139 } |
| 140 |
| 136 private: | 141 private: |
| 137 LayoutBoxModelObject* toBoxModel() { return toLayoutBoxModelObject(layoutObj
ect()); } | 142 LayoutBoxModelObject* toBoxModel() { return toLayoutBoxModelObject(layoutObj
ect()); } |
| 138 const LayoutBoxModelObject* toBoxModel() const { return toLayoutBoxModelObje
ct(layoutObject()); } | 143 const LayoutBoxModelObject* toBoxModel() const { return toLayoutBoxModelObje
ct(layoutObject()); } |
| 139 }; | 144 }; |
| 140 | 145 |
| 146 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const |
| 147 { |
| 148 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject()); |
| 149 } |
| 150 |
| 141 } // namespace blink | 151 } // namespace blink |
| 142 | 152 |
| 143 #endif // LineLayoutBoxModel_h | 153 #endif // LineLayoutBoxModel_h |
| OLD | NEW |