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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 // don't, both A and C should scroll on cc. Frame D should | 792 // don't, both A and C should scroll on cc. Frame D should |
793 // scrolled on main thread as its ancestor B. | 793 // scrolled on main thread as its ancestor B. |
794 void updateSubFrameScrollOnMainReason(const Frame&, | 794 void updateSubFrameScrollOnMainReason(const Frame&, |
795 MainThreadScrollingReasons); | 795 MainThreadScrollingReasons); |
796 String mainThreadScrollingReasonsAsText() const; | 796 String mainThreadScrollingReasonsAsText() const; |
797 // Main thread scrolling reasons including reasons from ancestors. | 797 // Main thread scrolling reasons including reasons from ancestors. |
798 MainThreadScrollingReasons mainThreadScrollingReasons() const; | 798 MainThreadScrollingReasons mainThreadScrollingReasons() const; |
799 // Main thread scrolling reasons for this object only. For all reasons, | 799 // Main thread scrolling reasons for this object only. For all reasons, |
800 // see: mainThreadScrollingReasons(). | 800 // see: mainThreadScrollingReasons(). |
801 MainThreadScrollingReasons mainThreadScrollingReasonsPerFrame() const; | 801 MainThreadScrollingReasons mainThreadScrollingReasonsPerFrame() const; |
802 void adjustStyleRelatedMainThreadScrollingReasons(const uint32_t reason, | |
803 bool increase); | |
804 MainThreadScrollingReasons getStyleRelatedMainThreadScrollingReasons() const; | |
805 | 802 |
806 bool hasVisibleSlowRepaintViewportConstrainedObjects() const; | 803 bool hasVisibleSlowRepaintViewportConstrainedObjects() const; |
807 | 804 |
808 // Called on a view for a LocalFrame with a RemoteFrame parent. This makes | 805 // Called on a view for a LocalFrame with a RemoteFrame parent. This makes |
809 // viewport intersection available that accounts for remote ancestor frames | 806 // viewport intersection available that accounts for remote ancestor frames |
810 // and their respective scroll positions, clips, etc. | 807 // and their respective scroll positions, clips, etc. |
811 void setViewportIntersectionFromParent(const IntRect&); | 808 void setViewportIntersectionFromParent(const IntRect&); |
812 IntRect remoteViewportIntersection(); | 809 IntRect remoteViewportIntersection(); |
813 | 810 |
814 // This method uses localToAncestorQuad to map a rect into an ancestor's | 811 // This method uses localToAncestorQuad to map a rect into an ancestor's |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 }; | 1205 }; |
1209 std::unique_ptr<Vector<ObjectPaintInvalidation>> | 1206 std::unique_ptr<Vector<ObjectPaintInvalidation>> |
1210 m_trackedObjectPaintInvalidations; | 1207 m_trackedObjectPaintInvalidations; |
1211 | 1208 |
1212 // For Slimming Paint v2 only. | 1209 // For Slimming Paint v2 only. |
1213 std::unique_ptr<PaintController> m_paintController; | 1210 std::unique_ptr<PaintController> m_paintController; |
1214 std::unique_ptr<PaintArtifactCompositor> m_paintArtifactCompositor; | 1211 std::unique_ptr<PaintArtifactCompositor> m_paintArtifactCompositor; |
1215 | 1212 |
1216 bool m_isStoringCompositedLayerDebugInfo; | 1213 bool m_isStoringCompositedLayerDebugInfo; |
1217 MainThreadScrollingReasons m_mainThreadScrollingReasons; | 1214 MainThreadScrollingReasons m_mainThreadScrollingReasons; |
1218 // For recording main thread scrolling reasons | |
1219 // due to layout object properties. e.g. opacity, transform. | |
1220 // The size of the vector depends on the number of | |
1221 // main thread scrolling reasons. | |
1222 Vector<int> m_mainThreadScrollingReasonsCounter; | |
1223 | 1215 |
1224 // TODO(kenrb): Remove these when https://crbug.com/680606 is resolved. | 1216 // TODO(kenrb): Remove these when https://crbug.com/680606 is resolved. |
1225 std::unique_ptr<CompositorAnimationTimeline> m_animationTimeline; | 1217 std::unique_ptr<CompositorAnimationTimeline> m_animationTimeline; |
1226 std::unique_ptr<CompositorAnimationHost> m_animationHost; | 1218 std::unique_ptr<CompositorAnimationHost> m_animationHost; |
1227 | 1219 |
1228 Member<PrintContext> m_printContext; | 1220 Member<PrintContext> m_printContext; |
1229 | 1221 |
1230 FRIEND_TEST_ALL_PREFIXES(WebViewTest, DeviceEmulationResetScrollbars); | 1222 FRIEND_TEST_ALL_PREFIXES(WebViewTest, DeviceEmulationResetScrollbars); |
1231 }; | 1223 }; |
1232 | 1224 |
(...skipping 28 matching lines...) Expand all Loading... |
1261 frameViewBase.isFrameView()); | 1253 frameViewBase.isFrameView()); |
1262 DEFINE_TYPE_CASTS(FrameView, | 1254 DEFINE_TYPE_CASTS(FrameView, |
1263 ScrollableArea, | 1255 ScrollableArea, |
1264 scrollableArea, | 1256 scrollableArea, |
1265 scrollableArea->isFrameView(), | 1257 scrollableArea->isFrameView(), |
1266 scrollableArea.isFrameView()); | 1258 scrollableArea.isFrameView()); |
1267 | 1259 |
1268 } // namespace blink | 1260 } // namespace blink |
1269 | 1261 |
1270 #endif // FrameView_h | 1262 #endif // FrameView_h |
OLD | NEW |