OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 LayoutBoxItem_h | 5 #ifndef LayoutBoxItem_h |
6 #define LayoutBoxItem_h | 6 #define LayoutBoxItem_h |
7 | 7 |
8 #include "core/layout/LayoutBox.h" | 8 #include "core/layout/LayoutBox.h" |
9 #include "core/layout/api/LayoutBoxModel.h" | 9 #include "core/layout/api/LayoutBoxModel.h" |
10 #include "platform/scroll/ScrollTypes.h" | 10 #include "platform/scroll/ScrollTypes.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 LayoutUnit minPreferredLogicalWidth() const | 65 LayoutUnit minPreferredLogicalWidth() const |
66 { | 66 { |
67 return toBox()->minPreferredLogicalWidth(); | 67 return toBox()->minPreferredLogicalWidth(); |
68 } | 68 } |
69 | 69 |
70 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarCli
pBehavior behavior = IgnoreOverlayScrollbarSize) const | 70 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarCli
pBehavior behavior = IgnoreOverlayScrollbarSize) const |
71 { | 71 { |
72 return toBox()->overflowClipRect(location, behavior); | 72 return toBox()->overflowClipRect(location, behavior); |
73 } | 73 } |
74 | 74 |
| 75 LayoutSize contentBoxOffset() const |
| 76 { |
| 77 return toBox()->contentBoxOffset(); |
| 78 } |
| 79 |
| 80 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState
& state, MapCoordinatesFlags flags = ApplyContainerFlip) const |
| 81 { |
| 82 toBox()->mapLocalToAncestor(ancestor, state, flags); |
| 83 } |
| 84 |
75 private: | 85 private: |
76 LayoutBox* toBox() | 86 LayoutBox* toBox() |
77 { | 87 { |
78 return toLayoutBox(layoutObject()); | 88 return toLayoutBox(layoutObject()); |
79 } | 89 } |
80 | 90 |
81 const LayoutBox* toBox() const | 91 const LayoutBox* toBox() const |
82 { | 92 { |
83 return toLayoutBox(layoutObject()); | 93 return toLayoutBox(layoutObject()); |
84 } | 94 } |
85 }; | 95 }; |
86 | 96 |
87 } // namespace blink | 97 } // namespace blink |
88 | 98 |
89 #endif // LayoutBoxItem_h | 99 #endif // LayoutBoxItem_h |
OLD | NEW |