| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 Copyright (C) 1997 Martin Jones (mjones@kde.org) |
| 3 (C) 1998 Waldo Bastian (bastian@kde.org) | 3 (C) 1998 Waldo Bastian (bastian@kde.org) |
| 4 (C) 1998, 1999 Torben Weis (weis@kde.org) | 4 (C) 1998, 1999 Torben Weis (weis@kde.org) |
| 5 (C) 1999 Lars Knoll (knoll@kde.org) | 5 (C) 1999 Lars Knoll (knoll@kde.org) |
| 6 (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights | 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights |
| 8 reserved. | 8 reserved. |
| 9 | 9 |
| 10 This library is free software; you can redistribute it and/or | 10 This library is free software; you can redistribute it and/or |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 void enqueueScrollAnchoringAdjustment(ScrollableArea*); | 748 void enqueueScrollAnchoringAdjustment(ScrollableArea*); |
| 749 void performScrollAnchoringAdjustments(); | 749 void performScrollAnchoringAdjustments(); |
| 750 | 750 |
| 751 // For PaintInvalidator temporarily. TODO(wangxianzhu): Move into | 751 // For PaintInvalidator temporarily. TODO(wangxianzhu): Move into |
| 752 // PaintInvalidator. | 752 // PaintInvalidator. |
| 753 void invalidatePaintIfNeeded(const PaintInvalidationState&); | 753 void invalidatePaintIfNeeded(const PaintInvalidationState&); |
| 754 | 754 |
| 755 // Only for SPv2. | 755 // Only for SPv2. |
| 756 std::unique_ptr<JSONObject> compositedLayersAsJSON(LayerTreeFlags); | 756 std::unique_ptr<JSONObject> compositedLayersAsJSON(LayerTreeFlags); |
| 757 | 757 |
| 758 // Called on a view for a LocalFrame with a RemoteFrame parent. This makes |
| 759 // viewport intersection available that accounts for remote ancestor frames |
| 760 // and their respective scroll positions, clips, etc. |
| 761 void setViewportIntersectionFromParent(const IntRect&); |
| 762 IntRect remoteViewportIntersection(); |
| 763 |
| 758 protected: | 764 protected: |
| 759 // Scroll the content via the compositor. | 765 // Scroll the content via the compositor. |
| 760 bool scrollContentsFastPath(const IntSize& scrollDelta); | 766 bool scrollContentsFastPath(const IntSize& scrollDelta); |
| 761 | 767 |
| 762 // Scroll the content by invalidating everything. | 768 // Scroll the content by invalidating everything. |
| 763 void scrollContentsSlowPath(); | 769 void scrollContentsSlowPath(); |
| 764 | 770 |
| 765 ScrollBehavior scrollBehaviorStyle() const override; | 771 ScrollBehavior scrollBehaviorStyle() const override; |
| 766 | 772 |
| 767 void scrollContentsIfNeeded(); | 773 void scrollContentsIfNeeded(); |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1097 | 1103 |
| 1098 // ScrollbarManager holds the Scrollbar instances. | 1104 // ScrollbarManager holds the Scrollbar instances. |
| 1099 ScrollbarManager m_scrollbarManager; | 1105 ScrollbarManager m_scrollbarManager; |
| 1100 | 1106 |
| 1101 bool m_needsScrollbarsUpdate; | 1107 bool m_needsScrollbarsUpdate; |
| 1102 bool m_suppressAdjustViewSize; | 1108 bool m_suppressAdjustViewSize; |
| 1103 bool m_allowsLayoutInvalidationAfterLayoutClean; | 1109 bool m_allowsLayoutInvalidationAfterLayoutClean; |
| 1104 | 1110 |
| 1105 Member<ElementVisibilityObserver> m_visibilityObserver; | 1111 Member<ElementVisibilityObserver> m_visibilityObserver; |
| 1106 | 1112 |
| 1113 IntRect m_remoteViewportIntersection; |
| 1114 |
| 1107 // For testing. | 1115 // For testing. |
| 1108 struct ObjectPaintInvalidation { | 1116 struct ObjectPaintInvalidation { |
| 1109 String name; | 1117 String name; |
| 1110 PaintInvalidationReason reason; | 1118 PaintInvalidationReason reason; |
| 1111 }; | 1119 }; |
| 1112 std::unique_ptr<Vector<ObjectPaintInvalidation>> | 1120 std::unique_ptr<Vector<ObjectPaintInvalidation>> |
| 1113 m_trackedObjectPaintInvalidations; | 1121 m_trackedObjectPaintInvalidations; |
| 1114 | 1122 |
| 1115 // For Slimming Paint v2 only. | 1123 // For Slimming Paint v2 only. |
| 1116 std::unique_ptr<PaintController> m_paintController; | 1124 std::unique_ptr<PaintController> m_paintController; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 widget.isFrameView()); | 1156 widget.isFrameView()); |
| 1149 DEFINE_TYPE_CASTS(FrameView, | 1157 DEFINE_TYPE_CASTS(FrameView, |
| 1150 ScrollableArea, | 1158 ScrollableArea, |
| 1151 scrollableArea, | 1159 scrollableArea, |
| 1152 scrollableArea->isFrameView(), | 1160 scrollableArea->isFrameView(), |
| 1153 scrollableArea.isFrameView()); | 1161 scrollableArea.isFrameView()); |
| 1154 | 1162 |
| 1155 } // namespace blink | 1163 } // namespace blink |
| 1156 | 1164 |
| 1157 #endif // FrameView_h | 1165 #endif // FrameView_h |
| OLD | NEW |