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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 } | 45 } |
46 | 46 |
47 void ClearSelection() { return ToView()->ClearSelection(); } | 47 void ClearSelection() { return ToView()->ClearSelection(); } |
48 | 48 |
49 bool HitTest(HitTestResult& result) { return ToView()->HitTest(result); } | 49 bool HitTest(HitTestResult& result) { return ToView()->HitTest(result); } |
50 | 50 |
51 bool HitTestNoLifecycleUpdate(HitTestResult& result) { | 51 bool HitTestNoLifecycleUpdate(HitTestResult& result) { |
52 return ToView()->HitTestNoLifecycleUpdate(result); | 52 return ToView()->HitTestNoLifecycleUpdate(result); |
53 } | 53 } |
54 | 54 |
55 IntRect SelectionBounds() { return ToView()->SelectionBounds(); } | |
56 | |
57 void InvalidatePaintForSelection() { | |
58 return ToView()->InvalidatePaintForSelection(); | |
59 } | |
60 | |
61 // bool hitTest(HitTestResult&); | 55 // bool hitTest(HitTestResult&); |
62 // bool hitTestNoLifecycleUpdate(HitTestResult&); | 56 // bool hitTestNoLifecycleUpdate(HitTestResult&); |
63 | 57 |
64 unsigned HitTestCount() const { return ToView()->HitTestCount(); } | 58 unsigned HitTestCount() const { return ToView()->HitTestCount(); } |
65 | 59 |
66 unsigned HitTestCacheHits() const { return ToView()->HitTestCacheHits(); } | 60 unsigned HitTestCacheHits() const { return ToView()->HitTestCacheHits(); } |
67 | 61 |
68 void ClearHitTestCache() { ToView()->ClearHitTestCache(); } | 62 void ClearHitTestCache() { ToView()->ClearHitTestCache(); } |
69 | 63 |
70 void InvalidatePaintForViewAndCompositedLayers() { | 64 void InvalidatePaintForViewAndCompositedLayers() { |
(...skipping 19 matching lines...) Expand all Loading... |
90 const LayoutView* ToView() const { return ToLayoutView(GetLayoutObject()); } | 84 const LayoutView* ToView() const { return ToLayoutView(GetLayoutObject()); } |
91 }; | 85 }; |
92 | 86 |
93 inline LayoutViewItem LayoutItem::View() const { | 87 inline LayoutViewItem LayoutItem::View() const { |
94 return LayoutViewItem(layout_object_->View()); | 88 return LayoutViewItem(layout_object_->View()); |
95 } | 89 } |
96 | 90 |
97 } // namespace blink | 91 } // namespace blink |
98 | 92 |
99 #endif // LayoutViewItem_h | 93 #endif // LayoutViewItem_h |
OLD | NEW |