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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 bool hitTest(HitTestResult& result) | 73 bool hitTest(HitTestResult& result) |
74 { | 74 { |
75 return toView()->hitTest(result); | 75 return toView()->hitTest(result); |
76 } | 76 } |
77 | 77 |
78 IntRect selectionBounds() | 78 IntRect selectionBounds() |
79 { | 79 { |
80 return toView()->selectionBounds(); | 80 return toView()->selectionBounds(); |
81 } | 81 } |
82 | 82 |
| 83 void invalidatePaintForSelection() |
| 84 { |
| 85 return toView()->invalidatePaintForSelection(); |
| 86 } |
| 87 |
83 private: | 88 private: |
84 LayoutView* toView() { return toLayoutView(layoutObject()); } | 89 LayoutView* toView() { return toLayoutView(layoutObject()); } |
85 const LayoutView* toView() const { return toLayoutView(layoutObject()); } | 90 const LayoutView* toView() const { return toLayoutView(layoutObject()); } |
86 }; | 91 }; |
87 | 92 |
88 } // namespace blink | 93 } // namespace blink |
89 | 94 |
90 #endif // LayoutViewItem_h | 95 #endif // LayoutViewItem_h |
OLD | NEW |