| 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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 void enqueueScrollAnchoringAdjustment(ScrollableArea*); | 736 void enqueueScrollAnchoringAdjustment(ScrollableArea*); |
| 737 void performScrollAnchoringAdjustments(); | 737 void performScrollAnchoringAdjustments(); |
| 738 | 738 |
| 739 // For PaintInvalidator temporarily. TODO(wangxianzhu): Move into | 739 // For PaintInvalidator temporarily. TODO(wangxianzhu): Move into |
| 740 // PaintInvalidator. | 740 // PaintInvalidator. |
| 741 void invalidatePaintIfNeeded(const PaintInvalidationState&); | 741 void invalidatePaintIfNeeded(const PaintInvalidationState&); |
| 742 | 742 |
| 743 // Only for SPv2. | 743 // Only for SPv2. |
| 744 std::unique_ptr<JSONObject> compositedLayersAsJSON(LayerTreeFlags); | 744 std::unique_ptr<JSONObject> compositedLayersAsJSON(LayerTreeFlags); |
| 745 | 745 |
| 746 // Called on a view for a LocalFrame with a RemoteFrame parent. This makes |
| 747 // viewport intersection available that accounts for remote ancestor frames |
| 748 // and their respective scroll positions, clips, etc. |
| 749 void setViewportIntersectionFromParent(const IntRect&); |
| 750 IntRect remoteViewportIntersection(); |
| 751 |
| 746 protected: | 752 protected: |
| 747 // Scroll the content via the compositor. | 753 // Scroll the content via the compositor. |
| 748 bool scrollContentsFastPath(const IntSize& scrollDelta); | 754 bool scrollContentsFastPath(const IntSize& scrollDelta); |
| 749 | 755 |
| 750 // Scroll the content by invalidating everything. | 756 // Scroll the content by invalidating everything. |
| 751 void scrollContentsSlowPath(); | 757 void scrollContentsSlowPath(); |
| 752 | 758 |
| 753 ScrollBehavior scrollBehaviorStyle() const override; | 759 ScrollBehavior scrollBehaviorStyle() const override; |
| 754 | 760 |
| 755 void scrollContentsIfNeeded(); | 761 void scrollContentsIfNeeded(); |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1084 | 1090 |
| 1085 // ScrollbarManager holds the Scrollbar instances. | 1091 // ScrollbarManager holds the Scrollbar instances. |
| 1086 ScrollbarManager m_scrollbarManager; | 1092 ScrollbarManager m_scrollbarManager; |
| 1087 | 1093 |
| 1088 bool m_needsScrollbarsUpdate; | 1094 bool m_needsScrollbarsUpdate; |
| 1089 bool m_suppressAdjustViewSize; | 1095 bool m_suppressAdjustViewSize; |
| 1090 bool m_allowsLayoutInvalidationAfterLayoutClean; | 1096 bool m_allowsLayoutInvalidationAfterLayoutClean; |
| 1091 | 1097 |
| 1092 Member<ElementVisibilityObserver> m_visibilityObserver; | 1098 Member<ElementVisibilityObserver> m_visibilityObserver; |
| 1093 | 1099 |
| 1100 IntRect m_remoteViewportIntersection; |
| 1101 |
| 1094 // For testing. | 1102 // For testing. |
| 1095 struct ObjectPaintInvalidation { | 1103 struct ObjectPaintInvalidation { |
| 1096 String name; | 1104 String name; |
| 1097 PaintInvalidationReason reason; | 1105 PaintInvalidationReason reason; |
| 1098 }; | 1106 }; |
| 1099 std::unique_ptr<Vector<ObjectPaintInvalidation>> | 1107 std::unique_ptr<Vector<ObjectPaintInvalidation>> |
| 1100 m_trackedObjectPaintInvalidations; | 1108 m_trackedObjectPaintInvalidations; |
| 1101 | 1109 |
| 1102 // For Slimming Paint v2 only. | 1110 // For Slimming Paint v2 only. |
| 1103 std::unique_ptr<PaintController> m_paintController; | 1111 std::unique_ptr<PaintController> m_paintController; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1135 widget.isFrameView()); | 1143 widget.isFrameView()); |
| 1136 DEFINE_TYPE_CASTS(FrameView, | 1144 DEFINE_TYPE_CASTS(FrameView, |
| 1137 ScrollableArea, | 1145 ScrollableArea, |
| 1138 scrollableArea, | 1146 scrollableArea, |
| 1139 scrollableArea->isFrameView(), | 1147 scrollableArea->isFrameView(), |
| 1140 scrollableArea.isFrameView()); | 1148 scrollableArea.isFrameView()); |
| 1141 | 1149 |
| 1142 } // namespace blink | 1150 } // namespace blink |
| 1143 | 1151 |
| 1144 #endif // FrameView_h | 1152 #endif // FrameView_h |
| OLD | NEW |