| 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 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 void clearScrollAnchor(); | 723 void clearScrollAnchor(); |
| 724 bool shouldPerformScrollAnchoring() const override; | 724 bool shouldPerformScrollAnchoring() const override; |
| 725 | 725 |
| 726 // For PaintInvalidator temporarily. TODO(wangxianzhu): Move into | 726 // For PaintInvalidator temporarily. TODO(wangxianzhu): Move into |
| 727 // PaintInvalidator. | 727 // PaintInvalidator. |
| 728 void invalidatePaintIfNeeded(const PaintInvalidationState&); | 728 void invalidatePaintIfNeeded(const PaintInvalidationState&); |
| 729 | 729 |
| 730 // Only for SPv2. | 730 // Only for SPv2. |
| 731 std::unique_ptr<JSONObject> compositedLayersAsJSON(LayerTreeFlags); | 731 std::unique_ptr<JSONObject> compositedLayersAsJSON(LayerTreeFlags); |
| 732 | 732 |
| 733 // Called on a view for a LocalFrame with a RemoteFrame parent. This makes |
| 734 // viewport intersection available that accounts for remote ancestor frames |
| 735 // and their respective scroll positions, clips, etc. |
| 736 void setViewportIntersectionFromParent(const IntRect& viewportIntersection, |
| 737 const IntPoint& rootOffset); |
| 738 IntRect remoteViewportIntersection(); |
| 739 |
| 740 IntRect viewportIntersection(); |
| 741 |
| 733 protected: | 742 protected: |
| 734 // Scroll the content via the compositor. | 743 // Scroll the content via the compositor. |
| 735 bool scrollContentsFastPath(const IntSize& scrollDelta); | 744 bool scrollContentsFastPath(const IntSize& scrollDelta); |
| 736 | 745 |
| 737 // Scroll the content by invalidating everything. | 746 // Scroll the content by invalidating everything. |
| 738 void scrollContentsSlowPath(); | 747 void scrollContentsSlowPath(); |
| 739 | 748 |
| 740 // These functions are used to create/destroy scrollbars. | 749 // These functions are used to create/destroy scrollbars. |
| 741 void setHasHorizontalScrollbar(bool); | 750 void setHasHorizontalScrollbar(bool); |
| 742 void setHasVerticalScrollbar(bool); | 751 void setHasVerticalScrollbar(bool); |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1056 | 1065 |
| 1057 // This is set on the local root frame view only. | 1066 // This is set on the local root frame view only. |
| 1058 DocumentLifecycle::LifecycleState m_currentUpdateLifecyclePhasesTargetState; | 1067 DocumentLifecycle::LifecycleState m_currentUpdateLifecyclePhasesTargetState; |
| 1059 | 1068 |
| 1060 ScrollAnchor m_scrollAnchor; | 1069 ScrollAnchor m_scrollAnchor; |
| 1061 | 1070 |
| 1062 bool m_needsScrollbarsUpdate; | 1071 bool m_needsScrollbarsUpdate; |
| 1063 bool m_suppressAdjustViewSize; | 1072 bool m_suppressAdjustViewSize; |
| 1064 bool m_allowsLayoutInvalidationAfterLayoutClean; | 1073 bool m_allowsLayoutInvalidationAfterLayoutClean; |
| 1065 | 1074 |
| 1075 IntRect m_remoteViewportIntersection; |
| 1076 IntPoint m_remoteRootOffset; |
| 1077 |
| 1066 // For testing. | 1078 // For testing. |
| 1067 struct ObjectPaintInvalidation { | 1079 struct ObjectPaintInvalidation { |
| 1068 String name; | 1080 String name; |
| 1069 PaintInvalidationReason reason; | 1081 PaintInvalidationReason reason; |
| 1070 }; | 1082 }; |
| 1071 std::unique_ptr<Vector<ObjectPaintInvalidation>> | 1083 std::unique_ptr<Vector<ObjectPaintInvalidation>> |
| 1072 m_trackedObjectPaintInvalidations; | 1084 m_trackedObjectPaintInvalidations; |
| 1073 | 1085 |
| 1074 // For Slimming Paint v2 only. | 1086 // For Slimming Paint v2 only. |
| 1075 std::unique_ptr<PaintController> m_paintController; | 1087 std::unique_ptr<PaintController> m_paintController; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1107 widget.isFrameView()); | 1119 widget.isFrameView()); |
| 1108 DEFINE_TYPE_CASTS(FrameView, | 1120 DEFINE_TYPE_CASTS(FrameView, |
| 1109 ScrollableArea, | 1121 ScrollableArea, |
| 1110 scrollableArea, | 1122 scrollableArea, |
| 1111 scrollableArea->isFrameView(), | 1123 scrollableArea->isFrameView(), |
| 1112 scrollableArea.isFrameView()); | 1124 scrollableArea.isFrameView()); |
| 1113 | 1125 |
| 1114 } // namespace blink | 1126 } // namespace blink |
| 1115 | 1127 |
| 1116 #endif // FrameView_h | 1128 #endif // FrameView_h |
| OLD | NEW |