| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 LayoutUnit logicalWidth() const { return toBox()->logicalWidth(); } | 42 LayoutUnit logicalWidth() const { return toBox()->logicalWidth(); } |
| 43 | 43 |
| 44 LayoutUnit logicalHeight() const { return toBox()->logicalHeight(); } | 44 LayoutUnit logicalHeight() const { return toBox()->logicalHeight(); } |
| 45 | 45 |
| 46 LayoutUnit minPreferredLogicalWidth() const { | 46 LayoutUnit minPreferredLogicalWidth() const { |
| 47 return toBox()->minPreferredLogicalWidth(); | 47 return toBox()->minPreferredLogicalWidth(); |
| 48 } | 48 } |
| 49 | 49 |
| 50 LayoutRect overflowClipRect(const LayoutPoint& location, | 50 LayoutRect overflowClipRect(const LayoutPoint& location, |
| 51 OverlayScrollbarClipBehavior behavior = | 51 OverlayScrollbarClipBehavior behavior = |
| 52 IgnorePlatformOverlayScrollbarSize) const { | 52 IgnoreOverlayScrollbarSize) const { |
| 53 return toBox()->overflowClipRect(location, behavior); | 53 return toBox()->overflowClipRect(location, behavior); |
| 54 } | 54 } |
| 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(MapCoordinatesFlags flags = 0) const { | 65 FloatQuad absoluteContentQuad(MapCoordinatesFlags flags = 0) const { |
| 66 return toBox()->absoluteContentQuad(flags); | 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 |