| 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 LayoutViewItem_h | 5 #ifndef LayoutViewItem_h |
| 6 #define LayoutViewItem_h | 6 #define LayoutViewItem_h |
| 7 | 7 |
| 8 #include "core/layout/LayoutView.h" | 8 #include "core/layout/LayoutView.h" |
| 9 #include "core/layout/api/LayoutBlockItem.h" | 9 #include "core/layout/api/LayoutBlockItem.h" |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 } | 22 } |
| 23 | 23 |
| 24 explicit LayoutViewItem(std::nullptr_t) : LayoutBlockItem(nullptr) {} | 24 explicit LayoutViewItem(std::nullptr_t) : LayoutBlockItem(nullptr) {} |
| 25 | 25 |
| 26 LayoutViewItem() {} | 26 LayoutViewItem() {} |
| 27 | 27 |
| 28 bool UsesCompositing() const { return ToView()->UsesCompositing(); } | 28 bool UsesCompositing() const { return ToView()->UsesCompositing(); } |
| 29 | 29 |
| 30 PaintLayerCompositor* Compositor() { return ToView()->Compositor(); } | 30 PaintLayerCompositor* Compositor() { return ToView()->Compositor(); } |
| 31 | 31 |
| 32 bool HasPendingSelection() const { return ToView()->HasPendingSelection(); } | |
| 33 | |
| 34 IntRect DocumentRect() const { return ToView()->DocumentRect(); } | 32 IntRect DocumentRect() const { return ToView()->DocumentRect(); } |
| 35 | 33 |
| 36 LayoutRect ViewRect() const { return ToView()->ViewRect(); } | 34 LayoutRect ViewRect() const { return ToView()->ViewRect(); } |
| 37 | 35 |
| 38 IntSize GetLayoutSize( | 36 IntSize GetLayoutSize( |
| 39 IncludeScrollbarsInRect scrollbars = kExcludeScrollbars) const { | 37 IncludeScrollbarsInRect scrollbars = kExcludeScrollbars) const { |
| 40 return ToView()->GetLayoutSize(scrollbars); | 38 return ToView()->GetLayoutSize(scrollbars); |
| 41 } | 39 } |
| 42 | 40 |
| 43 LayoutRect OverflowClipRect(const LayoutPoint& location) const { | 41 LayoutRect OverflowClipRect(const LayoutPoint& location) const { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 const LayoutView* ToView() const { return ToLayoutView(GetLayoutObject()); } | 82 const LayoutView* ToView() const { return ToLayoutView(GetLayoutObject()); } |
| 85 }; | 83 }; |
| 86 | 84 |
| 87 inline LayoutViewItem LayoutItem::View() const { | 85 inline LayoutViewItem LayoutItem::View() const { |
| 88 return LayoutViewItem(layout_object_->View()); | 86 return LayoutViewItem(layout_object_->View()); |
| 89 } | 87 } |
| 90 | 88 |
| 91 } // namespace blink | 89 } // namespace blink |
| 92 | 90 |
| 93 #endif // LayoutViewItem_h | 91 #endif // LayoutViewItem_h |
| OLD | NEW |