| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 LayoutPoint location() const | 50 LayoutPoint location() const |
| 51 { | 51 { |
| 52 return toBox()->location(); | 52 return toBox()->location(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 LayoutUnit minPreferredLogicalWidth() const | 55 LayoutUnit minPreferredLogicalWidth() const |
| 56 { | 56 { |
| 57 return toBox()->minPreferredLogicalWidth(); | 57 return toBox()->minPreferredLogicalWidth(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarCli
pBehavior behavior = IgnoreOverlayScrollbarSize) const |
| 61 { |
| 62 return toBox()->overflowClipRect(location, behavior); |
| 63 } |
| 64 |
| 60 private: | 65 private: |
| 61 LayoutBox* toBox() | 66 LayoutBox* toBox() |
| 62 { | 67 { |
| 63 return toLayoutBox(layoutObject()); | 68 return toLayoutBox(layoutObject()); |
| 64 } | 69 } |
| 65 | 70 |
| 66 const LayoutBox* toBox() const | 71 const LayoutBox* toBox() const |
| 67 { | 72 { |
| 68 return toLayoutBox(layoutObject()); | 73 return toLayoutBox(layoutObject()); |
| 69 } | 74 } |
| 70 }; | 75 }; |
| 71 | 76 |
| 72 } // namespace blink | 77 } // namespace blink |
| 73 | 78 |
| 74 #endif // LayoutBoxItem_h | 79 #endif // LayoutBoxItem_h |
| OLD | NEW |