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 LineLayoutBox_h | 5 #ifndef LineLayoutBox_h |
6 #define LineLayoutBox_h | 6 #define LineLayoutBox_h |
7 | 7 |
8 #include "core/layout/LayoutBlockFlow.h" | 8 #include "core/layout/LayoutBlockFlow.h" |
9 #include "core/layout/LayoutBox.h" | 9 #include "core/layout/LayoutBox.h" |
10 #include "core/layout/api/LineLayoutBoxModel.h" | 10 #include "core/layout/api/LineLayoutBoxModel.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 void MoveWithEdgeOfInlineContainerIfNecessary(bool is_horizontal) { | 69 void MoveWithEdgeOfInlineContainerIfNecessary(bool is_horizontal) { |
70 ToBox()->MoveWithEdgeOfInlineContainerIfNecessary(is_horizontal); | 70 ToBox()->MoveWithEdgeOfInlineContainerIfNecessary(is_horizontal); |
71 } | 71 } |
72 | 72 |
73 void Move(const LayoutUnit& width, const LayoutUnit& height) { | 73 void Move(const LayoutUnit& width, const LayoutUnit& height) { |
74 ToBox()->Move(width, height); | 74 ToBox()->Move(width, height); |
75 } | 75 } |
76 | 76 |
77 bool HasOverflowModel() const { return ToBox()->HasOverflowModel(); } | 77 bool HasOverflowModel() const { return ToBox()->HasOverflowModel(); } |
78 LayoutRect LogicalVisualOverflowRectForPropagation( | 78 LayoutRect LogicalVisualOverflowRectForPropagation() const { |
79 const ComputedStyle& style) const { | 79 return ToBox()->LogicalVisualOverflowRectForPropagation(); |
80 return ToBox()->LogicalVisualOverflowRectForPropagation(style); | |
81 } | 80 } |
82 LayoutRect LogicalLayoutOverflowRectForPropagation( | 81 LayoutRect LogicalLayoutOverflowRectForPropagation() const { |
83 const ComputedStyle& style) const { | 82 return ToBox()->LogicalLayoutOverflowRectForPropagation(); |
84 return ToBox()->LogicalLayoutOverflowRectForPropagation(style); | |
85 } | 83 } |
86 | 84 |
87 void SetLocation(const LayoutPoint& location) { | 85 void SetLocation(const LayoutPoint& location) { |
88 return ToBox()->SetLocation(location); | 86 return ToBox()->SetLocation(location); |
89 } | 87 } |
90 | 88 |
91 void SetSize(const LayoutSize& size) { return ToBox()->SetSize(size); } | 89 void SetSize(const LayoutSize& size) { return ToBox()->SetSize(size); } |
92 | 90 |
93 IntSize ScrolledContentOffset() const { | 91 IntSize ScrolledContentOffset() const { |
94 return ToBox()->ScrolledContentOffset(); | 92 return ToBox()->ScrolledContentOffset(); |
(...skipping 24 matching lines...) Expand all Loading... |
119 const LayoutBox* ToBox() const { return ToLayoutBox(GetLayoutObject()); } | 117 const LayoutBox* ToBox() const { return ToLayoutBox(GetLayoutObject()); } |
120 }; | 118 }; |
121 | 119 |
122 inline LineLayoutBox LineLayoutItem::ContainingBlock() const { | 120 inline LineLayoutBox LineLayoutItem::ContainingBlock() const { |
123 return LineLayoutBox(GetLayoutObject()->ContainingBlock()); | 121 return LineLayoutBox(GetLayoutObject()->ContainingBlock()); |
124 } | 122 } |
125 | 123 |
126 } // namespace blink | 124 } // namespace blink |
127 | 125 |
128 #endif // LineLayoutBox_h | 126 #endif // LineLayoutBox_h |
OLD | NEW |