| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 LayoutRect viewRect() const | 53 LayoutRect viewRect() const |
| 54 { | 54 { |
| 55 return toView()->viewRect(); | 55 return toView()->viewRect(); |
| 56 } | 56 } |
| 57 | 57 |
| 58 IntSize layoutSize(IncludeScrollbarsInRect scrollbars = ExcludeScrollbars) c
onst | 58 IntSize layoutSize(IncludeScrollbarsInRect scrollbars = ExcludeScrollbars) c
onst |
| 59 { | 59 { |
| 60 return toView()->layoutSize(scrollbars); | 60 return toView()->layoutSize(scrollbars); |
| 61 } | 61 } |
| 62 | 62 |
| 63 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarSiz
eRelevancy scrollbars = IgnoreOverlayScrollbarSize) const | 63 LayoutRect overflowClipRect(const LayoutPoint& location) const |
| 64 { | 64 { |
| 65 return toView()->overflowClipRect(location, scrollbars); | 65 return toView()->overflowClipRect(location); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void clearSelection() | 68 void clearSelection() |
| 69 { | 69 { |
| 70 return toView()->clearSelection(); | 70 return toView()->clearSelection(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 bool hitTest(HitTestResult& result) | 73 bool hitTest(HitTestResult& result) |
| 74 { | 74 { |
| 75 return toView()->hitTest(result); | 75 return toView()->hitTest(result); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 86 } | 86 } |
| 87 | 87 |
| 88 private: | 88 private: |
| 89 LayoutView* toView() { return toLayoutView(layoutObject()); } | 89 LayoutView* toView() { return toLayoutView(layoutObject()); } |
| 90 const LayoutView* toView() const { return toLayoutView(layoutObject()); } | 90 const LayoutView* toView() const { return toLayoutView(layoutObject()); } |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace blink | 93 } // namespace blink |
| 94 | 94 |
| 95 #endif // LayoutViewItem_h | 95 #endif // LayoutViewItem_h |
| OLD | NEW |