| 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 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 IntSize GetLayoutSize( | 36 IntSize GetLayoutSize( |
| 37 IncludeScrollbarsInRect scrollbars = kExcludeScrollbars) const { | 37 IncludeScrollbarsInRect scrollbars = kExcludeScrollbars) const { |
| 38 return ToView()->GetLayoutSize(scrollbars); | 38 return ToView()->GetLayoutSize(scrollbars); |
| 39 } | 39 } |
| 40 | 40 |
| 41 LayoutRect OverflowClipRect(const LayoutPoint& location) const { | 41 LayoutRect OverflowClipRect(const LayoutPoint& location) const { |
| 42 return ToView()->OverflowClipRect(location); | 42 return ToView()->OverflowClipRect(location); |
| 43 } | 43 } |
| 44 | 44 |
| 45 void ClearSelection() { return ToView()->ClearSelection(); } | |
| 46 | |
| 47 bool HitTest(HitTestResult& result) { return ToView()->HitTest(result); } | 45 bool HitTest(HitTestResult& result) { return ToView()->HitTest(result); } |
| 48 | 46 |
| 49 bool HitTestNoLifecycleUpdate(HitTestResult& result) { | 47 bool HitTestNoLifecycleUpdate(HitTestResult& result) { |
| 50 return ToView()->HitTestNoLifecycleUpdate(result); | 48 return ToView()->HitTestNoLifecycleUpdate(result); |
| 51 } | 49 } |
| 52 | 50 |
| 53 // bool hitTest(HitTestResult&); | 51 // bool hitTest(HitTestResult&); |
| 54 // bool hitTestNoLifecycleUpdate(HitTestResult&); | 52 // bool hitTestNoLifecycleUpdate(HitTestResult&); |
| 55 | 53 |
| 56 unsigned HitTestCount() const { return ToView()->HitTestCount(); } | 54 unsigned HitTestCount() const { return ToView()->HitTestCount(); } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 82 const LayoutView* ToView() const { return ToLayoutView(GetLayoutObject()); } | 80 const LayoutView* ToView() const { return ToLayoutView(GetLayoutObject()); } |
| 83 }; | 81 }; |
| 84 | 82 |
| 85 inline LayoutViewItem LayoutItem::View() const { | 83 inline LayoutViewItem LayoutItem::View() const { |
| 86 return LayoutViewItem(layout_object_->View()); | 84 return LayoutViewItem(layout_object_->View()); |
| 87 } | 85 } |
| 88 | 86 |
| 89 } // namespace blink | 87 } // namespace blink |
| 90 | 88 |
| 91 #endif // LayoutViewItem_h | 89 #endif // LayoutViewItem_h |
| OLD | NEW |