| OLD | NEW |
| 1 | |
| 2 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 3 // 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 |
| 4 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 5 | 4 |
| 6 #ifndef LayoutViewItem_h | 5 #ifndef LayoutViewItem_h |
| 7 #define LayoutViewItem_h | 6 #define LayoutViewItem_h |
| 8 | 7 |
| 9 #include "core/layout/LayoutView.h" | 8 #include "core/layout/LayoutView.h" |
| 10 #include "core/layout/api/LayoutBlockItem.h" | 9 #include "core/layout/api/LayoutBlockItem.h" |
| 11 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 unsigned hitTestCount() const { return toView()->hitTestCount(); } | 64 unsigned hitTestCount() const { return toView()->hitTestCount(); } |
| 66 | 65 |
| 67 unsigned hitTestCacheHits() const { return toView()->hitTestCacheHits(); } | 66 unsigned hitTestCacheHits() const { return toView()->hitTestCacheHits(); } |
| 68 | 67 |
| 69 void clearHitTestCache() { toView()->clearHitTestCache(); } | 68 void clearHitTestCache() { toView()->clearHitTestCache(); } |
| 70 | 69 |
| 71 void invalidatePaintForViewAndCompositedLayers() { | 70 void invalidatePaintForViewAndCompositedLayers() { |
| 72 toView()->invalidatePaintForViewAndCompositedLayers(); | 71 toView()->invalidatePaintForViewAndCompositedLayers(); |
| 73 } | 72 } |
| 74 | 73 |
| 75 void sendMediaPositionChangeNotifications(const IntRect& visibleRect) { | |
| 76 toView()->sendMediaPositionChangeNotifications(visibleRect); | |
| 77 } | |
| 78 | |
| 79 int viewHeight( | 74 int viewHeight( |
| 80 IncludeScrollbarsInRect scrollbarInclusion = ExcludeScrollbars) const { | 75 IncludeScrollbarsInRect scrollbarInclusion = ExcludeScrollbars) const { |
| 81 return toView()->viewHeight(scrollbarInclusion); | 76 return toView()->viewHeight(scrollbarInclusion); |
| 82 } | 77 } |
| 83 | 78 |
| 84 int viewWidth( | 79 int viewWidth( |
| 85 IncludeScrollbarsInRect scrollbarInclusion = ExcludeScrollbars) const { | 80 IncludeScrollbarsInRect scrollbarInclusion = ExcludeScrollbars) const { |
| 86 return toView()->viewWidth(scrollbarInclusion); | 81 return toView()->viewWidth(scrollbarInclusion); |
| 87 } | 82 } |
| 88 | 83 |
| 89 FloatSize viewportSizeForViewportUnits() const { | 84 FloatSize viewportSizeForViewportUnits() const { |
| 90 return toView()->viewportSizeForViewportUnits(); | 85 return toView()->viewportSizeForViewportUnits(); |
| 91 } | 86 } |
| 92 | 87 |
| 93 private: | 88 private: |
| 94 LayoutView* toView() { return toLayoutView(layoutObject()); } | 89 LayoutView* toView() { return toLayoutView(layoutObject()); } |
| 95 const LayoutView* toView() const { return toLayoutView(layoutObject()); } | 90 const LayoutView* toView() const { return toLayoutView(layoutObject()); } |
| 96 }; | 91 }; |
| 97 | 92 |
| 98 inline LayoutViewItem LayoutItem::view() const { | 93 inline LayoutViewItem LayoutItem::view() const { |
| 99 return LayoutViewItem(m_layoutObject->view()); | 94 return LayoutViewItem(m_layoutObject->view()); |
| 100 } | 95 } |
| 101 | 96 |
| 102 } // namespace blink | 97 } // namespace blink |
| 103 | 98 |
| 104 #endif // LayoutViewItem_h | 99 #endif // LayoutViewItem_h |
| OLD | NEW |