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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 LayoutSize contentBoxOffset() const | 75 LayoutSize contentBoxOffset() const |
76 { | 76 { |
77 return toBox()->contentBoxOffset(); | 77 return toBox()->contentBoxOffset(); |
78 } | 78 } |
79 | 79 |
80 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState
& state, MapCoordinatesFlags flags = ApplyContainerFlip) const | 80 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState
& state, MapCoordinatesFlags flags = ApplyContainerFlip) const |
81 { | 81 { |
82 toBox()->mapLocalToAncestor(ancestor, state, flags); | 82 toBox()->mapLocalToAncestor(ancestor, state, flags); |
83 } | 83 } |
84 | 84 |
| 85 FloatQuad absoluteContentQuad() const |
| 86 { |
| 87 return toBox()->absoluteContentQuad(); |
| 88 } |
| 89 |
85 private: | 90 private: |
86 LayoutBox* toBox() | 91 LayoutBox* toBox() |
87 { | 92 { |
88 return toLayoutBox(layoutObject()); | 93 return toLayoutBox(layoutObject()); |
89 } | 94 } |
90 | 95 |
91 const LayoutBox* toBox() const | 96 const LayoutBox* toBox() const |
92 { | 97 { |
93 return toLayoutBox(layoutObject()); | 98 return toLayoutBox(layoutObject()); |
94 } | 99 } |
95 }; | 100 }; |
96 | 101 |
97 } // namespace blink | 102 } // namespace blink |
98 | 103 |
99 #endif // LayoutBoxItem_h | 104 #endif // LayoutBoxItem_h |
OLD | NEW |