| OLD | NEW |
| 1 | 1 |
| 2 // Copyright 2016 The Chromium Authors. All rights reserved. | 2 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #ifndef LayoutViewItem_h | 6 #ifndef LayoutViewItem_h |
| 7 #define LayoutViewItem_h | 7 #define LayoutViewItem_h |
| 8 | 8 |
| 9 #include "core/layout/LayoutView.h" | 9 #include "core/layout/LayoutView.h" |
| 10 #include "core/layout/api/LayoutBlockItem.h" | 10 #include "core/layout/api/LayoutBlockItem.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 int viewHeight(IncludeScrollbarsInRect scrollbarInclusion = ExcludeScrollbar
s) const | 121 int viewHeight(IncludeScrollbarsInRect scrollbarInclusion = ExcludeScrollbar
s) const |
| 122 { | 122 { |
| 123 return toView()->viewHeight(scrollbarInclusion); | 123 return toView()->viewHeight(scrollbarInclusion); |
| 124 } | 124 } |
| 125 | 125 |
| 126 int viewWidth(IncludeScrollbarsInRect scrollbarInclusion = ExcludeScrollbars
) const | 126 int viewWidth(IncludeScrollbarsInRect scrollbarInclusion = ExcludeScrollbars
) const |
| 127 { | 127 { |
| 128 return toView()->viewWidth(scrollbarInclusion); | 128 return toView()->viewWidth(scrollbarInclusion); |
| 129 } | 129 } |
| 130 | 130 |
| 131 FloatSize viewportSizeForViewportUnits() const |
| 132 { |
| 133 return toView()->viewportSizeForViewportUnits(); |
| 134 } |
| 135 |
| 131 private: | 136 private: |
| 132 LayoutView* toView() { return toLayoutView(layoutObject()); } | 137 LayoutView* toView() { return toLayoutView(layoutObject()); } |
| 133 const LayoutView* toView() const { return toLayoutView(layoutObject()); } | 138 const LayoutView* toView() const { return toLayoutView(layoutObject()); } |
| 134 }; | 139 }; |
| 135 | 140 |
| 136 } // namespace blink | 141 } // namespace blink |
| 137 | 142 |
| 138 #endif // LayoutViewItem_h | 143 #endif // LayoutViewItem_h |
| OLD | NEW |