| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 bool hasPendingSelection() const | 43 bool hasPendingSelection() const |
| 44 { | 44 { |
| 45 return toView()->hasPendingSelection(); | 45 return toView()->hasPendingSelection(); |
| 46 } | 46 } |
| 47 | 47 |
| 48 IntRect documentRect() const | 48 IntRect documentRect() const |
| 49 { | 49 { |
| 50 return toView()->documentRect(); | 50 return toView()->documentRect(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 LayoutRect viewRect() const |
| 54 { |
| 55 return toView()->viewRect(); |
| 56 } |
| 57 |
| 53 IntSize layoutSize(IncludeScrollbarsInRect scrollbars = ExcludeScrollbars) c
onst | 58 IntSize layoutSize(IncludeScrollbarsInRect scrollbars = ExcludeScrollbars) c
onst |
| 54 { | 59 { |
| 55 return toView()->layoutSize(scrollbars); | 60 return toView()->layoutSize(scrollbars); |
| 56 } | 61 } |
| 57 | 62 |
| 58 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarSiz
eRelevancy scrollbars = IgnoreOverlayScrollbarSize) const | 63 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarSiz
eRelevancy scrollbars = IgnoreOverlayScrollbarSize) const |
| 59 { | 64 { |
| 60 return toView()->overflowClipRect(location, scrollbars); | 65 return toView()->overflowClipRect(location, scrollbars); |
| 61 } | 66 } |
| 62 | 67 |
| 63 private: | 68 private: |
| 64 LayoutView* toView() { return toLayoutView(layoutObject()); } | 69 LayoutView* toView() { return toLayoutView(layoutObject()); } |
| 65 const LayoutView* toView() const { return toLayoutView(layoutObject()); } | 70 const LayoutView* toView() const { return toLayoutView(layoutObject()); } |
| 66 }; | 71 }; |
| 67 | 72 |
| 68 } // namespace blink | 73 } // namespace blink |
| 69 | 74 |
| 70 #endif // LayoutViewItem_h | 75 #endif // LayoutViewItem_h |
| OLD | NEW |