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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 // https://crbug.com/680606. Animation timelines and hosts for scrolling | 824 // https://crbug.com/680606. Animation timelines and hosts for scrolling |
825 // are normally owned by ScrollingCoordinator, but there is only one | 825 // are normally owned by ScrollingCoordinator, but there is only one |
826 // of those objects per page. To get around this, we temporarily stash a | 826 // of those objects per page. To get around this, we temporarily stash a |
827 // unique timeline and host on each OOPIF FrameView. | 827 // unique timeline and host on each OOPIF FrameView. |
828 void setAnimationTimeline(std::unique_ptr<CompositorAnimationTimeline>); | 828 void setAnimationTimeline(std::unique_ptr<CompositorAnimationTimeline>); |
829 void setAnimationHost(std::unique_ptr<CompositorAnimationHost>); | 829 void setAnimationHost(std::unique_ptr<CompositorAnimationHost>); |
830 | 830 |
831 // Returns the GeometryMapper associated with the root local frame. | 831 // Returns the GeometryMapper associated with the root local frame. |
832 GeometryMapper& geometryMapper(); | 832 GeometryMapper& geometryMapper(); |
833 | 833 |
| 834 void crossOriginStatusChanged(); |
| 835 |
834 // The visual viewport can supply scrollbars which affect the existence of | 836 // The visual viewport can supply scrollbars which affect the existence of |
835 // our scrollbars (see: computeScrollbarExistence). | 837 // our scrollbars (see: computeScrollbarExistence). |
836 void visualViewportScrollbarsChanged(); | 838 void visualViewportScrollbarsChanged(); |
837 | 839 |
838 LayoutUnit caretWidth() const; | 840 LayoutUnit caretWidth() const; |
839 | 841 |
840 protected: | 842 protected: |
841 // Scroll the content via the compositor. | 843 // Scroll the content via the compositor. |
842 bool scrollContentsFastPath(const IntSize& scrollDelta); | 844 bool scrollContentsFastPath(const IntSize& scrollDelta); |
843 | 845 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1019 LayoutObject* viewportLayoutObject() const; | 1021 LayoutObject* viewportLayoutObject() const; |
1020 | 1022 |
1021 void collectAnnotatedRegions(LayoutObject&, | 1023 void collectAnnotatedRegions(LayoutObject&, |
1022 Vector<AnnotatedRegionValue>&) const; | 1024 Vector<AnnotatedRegionValue>&) const; |
1023 | 1025 |
1024 template <typename Function> | 1026 template <typename Function> |
1025 void forAllNonThrottledFrameViews(const Function&); | 1027 void forAllNonThrottledFrameViews(const Function&); |
1026 | 1028 |
1027 void updateViewportIntersectionsForSubtree( | 1029 void updateViewportIntersectionsForSubtree( |
1028 DocumentLifecycle::LifecycleState targetState); | 1030 DocumentLifecycle::LifecycleState targetState); |
1029 void updateRenderThrottlingStatus(bool hidden, bool subtreeThrottled); | 1031 void updateRenderThrottlingStatus(bool hidden, |
| 1032 bool subtreeThrottled, |
| 1033 bool forceThrottlingInvalidation = false); |
1030 void notifyResizeObservers(); | 1034 void notifyResizeObservers(); |
1031 | 1035 |
1032 // PaintInvalidationCapableScrollableArea | 1036 // PaintInvalidationCapableScrollableArea |
1033 LayoutScrollbarPart* resizer() const override { return nullptr; } | 1037 LayoutScrollbarPart* resizer() const override { return nullptr; } |
1034 | 1038 |
1035 bool checkLayoutInvalidationIsAllowed() const; | 1039 bool checkLayoutInvalidationIsAllowed() const; |
1036 | 1040 |
1037 PaintController* paintController() { return m_paintController.get(); } | 1041 PaintController* paintController() { return m_paintController.get(); } |
1038 | 1042 |
1039 LayoutSize m_size; | 1043 LayoutSize m_size; |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1247 widget.isFrameView()); | 1251 widget.isFrameView()); |
1248 DEFINE_TYPE_CASTS(FrameView, | 1252 DEFINE_TYPE_CASTS(FrameView, |
1249 ScrollableArea, | 1253 ScrollableArea, |
1250 scrollableArea, | 1254 scrollableArea, |
1251 scrollableArea->isFrameView(), | 1255 scrollableArea->isFrameView(), |
1252 scrollableArea.isFrameView()); | 1256 scrollableArea.isFrameView()); |
1253 | 1257 |
1254 } // namespace blink | 1258 } // namespace blink |
1255 | 1259 |
1256 #endif // FrameView_h | 1260 #endif // FrameView_h |
OLD | NEW |