| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 LayoutSize size() const | 45 LayoutSize size() const |
| 46 { | 46 { |
| 47 return toBox()->size(); | 47 return toBox()->size(); |
| 48 } | 48 } |
| 49 | 49 |
| 50 LayoutPoint location() const | 50 LayoutPoint location() const |
| 51 { | 51 { |
| 52 return toBox()->location(); | 52 return toBox()->location(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 LayoutUnit logicalWidth() const |
| 56 { |
| 57 return toBox()->logicalWidth(); |
| 58 } |
| 59 |
| 60 LayoutUnit logicalHeight() const |
| 61 { |
| 62 return toBox()->logicalHeight(); |
| 63 } |
| 64 |
| 55 LayoutUnit minPreferredLogicalWidth() const | 65 LayoutUnit minPreferredLogicalWidth() const |
| 56 { | 66 { |
| 57 return toBox()->minPreferredLogicalWidth(); | 67 return toBox()->minPreferredLogicalWidth(); |
| 58 } | 68 } |
| 59 | 69 |
| 60 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarCli
pBehavior behavior = IgnoreOverlayScrollbarSize) const | 70 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarCli
pBehavior behavior = IgnoreOverlayScrollbarSize) const |
| 61 { | 71 { |
| 62 return toBox()->overflowClipRect(location, behavior); | 72 return toBox()->overflowClipRect(location, behavior); |
| 63 } | 73 } |
| 64 | 74 |
| 65 private: | 75 private: |
| 66 LayoutBox* toBox() | 76 LayoutBox* toBox() |
| 67 { | 77 { |
| 68 return toLayoutBox(layoutObject()); | 78 return toLayoutBox(layoutObject()); |
| 69 } | 79 } |
| 70 | 80 |
| 71 const LayoutBox* toBox() const | 81 const LayoutBox* toBox() const |
| 72 { | 82 { |
| 73 return toLayoutBox(layoutObject()); | 83 return toLayoutBox(layoutObject()); |
| 74 } | 84 } |
| 75 }; | 85 }; |
| 76 | 86 |
| 77 } // namespace blink | 87 } // namespace blink |
| 78 | 88 |
| 79 #endif // LayoutBoxItem_h | 89 #endif // LayoutBoxItem_h |
| OLD | NEW |