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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 LayoutSize contentBoxOffset() const { return toBox()->contentBoxOffset(); } | 56 LayoutSize contentBoxOffset() const { return toBox()->contentBoxOffset(); } |
57 | 57 |
58 void mapLocalToAncestor( | 58 void mapLocalToAncestor( |
59 const LayoutBoxModelObject* ancestor, | 59 const LayoutBoxModelObject* ancestor, |
60 TransformState& state, | 60 TransformState& state, |
61 MapCoordinatesFlags flags = ApplyContainerFlip) const { | 61 MapCoordinatesFlags flags = ApplyContainerFlip) const { |
62 toBox()->mapLocalToAncestor(ancestor, state, flags); | 62 toBox()->mapLocalToAncestor(ancestor, state, flags); |
63 } | 63 } |
64 | 64 |
65 FloatQuad absoluteContentQuad() const { | 65 FloatQuad absoluteContentQuad(MapCoordinatesFlags flags = 0) const { |
66 return toBox()->absoluteContentQuad(); | 66 return toBox()->absoluteContentQuad(flags); |
67 } | 67 } |
68 | 68 |
69 private: | 69 private: |
70 LayoutBox* toBox() { return toLayoutBox(layoutObject()); } | 70 LayoutBox* toBox() { return toLayoutBox(layoutObject()); } |
71 | 71 |
72 const LayoutBox* toBox() const { return toLayoutBox(layoutObject()); } | 72 const LayoutBox* toBox() const { return toLayoutBox(layoutObject()); } |
73 }; | 73 }; |
74 | 74 |
75 } // namespace blink | 75 } // namespace blink |
76 | 76 |
77 #endif // LayoutBoxItem_h | 77 #endif // LayoutBoxItem_h |
OLD | NEW |