| 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 reserv
ed. | 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 8 | 8 |
| 9 This library is free software; you can redistribute it and/or | 9 This library is free software; you can redistribute it and/or |
| 10 modify it under the terms of the GNU Library General Public | 10 modify it under the terms of the GNU Library General Public |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 : m_scope(view->m_inUpdateScrollbars, true) | 627 : m_scope(view->m_inUpdateScrollbars, true) |
| 628 { } | 628 { } |
| 629 private: | 629 private: |
| 630 TemporaryChange<bool> m_scope; | 630 TemporaryChange<bool> m_scope; |
| 631 }; | 631 }; |
| 632 | 632 |
| 633 // Only for LayoutPart to traverse into sub frames during paint invalidation
. | 633 // Only for LayoutPart to traverse into sub frames during paint invalidation
. |
| 634 void invalidateTreeIfNeeded(PaintInvalidationState&); | 634 void invalidateTreeIfNeeded(PaintInvalidationState&); |
| 635 | 635 |
| 636 private: | 636 private: |
| 637 friend class FramePainter; |
| 638 |
| 637 explicit FrameView(LocalFrame*); | 639 explicit FrameView(LocalFrame*); |
| 638 | 640 |
| 639 void setScrollOffset(const DoublePoint&, ScrollType) override; | 641 void setScrollOffset(const DoublePoint&, ScrollType) override; |
| 640 | 642 |
| 641 enum LifeCycleUpdateOption { | 643 enum LifeCycleUpdateOption { |
| 642 OnlyUpToLayoutClean, | 644 OnlyUpToLayoutClean, |
| 643 OnlyUpToCompositingCleanPlusScrolling, | 645 OnlyUpToCompositingCleanPlusScrolling, |
| 644 AllPhases, | 646 AllPhases, |
| 645 }; | 647 }; |
| 646 | 648 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 LayoutObject* viewportLayoutObject(); | 748 LayoutObject* viewportLayoutObject(); |
| 747 | 749 |
| 748 void collectAnnotatedRegions(LayoutObject&, Vector<AnnotatedRegionValue>&) c
onst; | 750 void collectAnnotatedRegions(LayoutObject&, Vector<AnnotatedRegionValue>&) c
onst; |
| 749 | 751 |
| 750 typedef WTF::HashMap <const GraphicsLayer*, Vector<std::pair<int64_t, WebRec
t>>> GraphicsLayerFrameTimingRequests; | 752 typedef WTF::HashMap <const GraphicsLayer*, Vector<std::pair<int64_t, WebRec
t>>> GraphicsLayerFrameTimingRequests; |
| 751 void updateFrameTimingRequestsIfNeeded(); | 753 void updateFrameTimingRequestsIfNeeded(); |
| 752 void collectFrameTimingRequests(GraphicsLayerFrameTimingRequests&); | 754 void collectFrameTimingRequests(GraphicsLayerFrameTimingRequests&); |
| 753 void collectFrameTimingRequestsRecursive(GraphicsLayerFrameTimingRequests&); | 755 void collectFrameTimingRequestsRecursive(GraphicsLayerFrameTimingRequests&); |
| 754 | 756 |
| 755 template <typename Function> void forAllNonThrottledFrameViews(Function); | 757 template <typename Function> void forAllNonThrottledFrameViews(Function); |
| 758 void showFrameTree(int indent = 0) const; |
| 756 | 759 |
| 757 void setNeedsUpdateViewportIntersection(); | 760 void setNeedsUpdateViewportIntersection(); |
| 758 void updateViewportIntersectionsForSubtree(LifeCycleUpdateOption); | 761 void updateViewportIntersectionsForSubtree(LifeCycleUpdateOption); |
| 759 void updateViewportIntersectionIfNeeded(); | 762 void updateViewportIntersectionIfNeeded(); |
| 760 void notifyRenderThrottlingObservers(); | 763 void notifyRenderThrottlingObservers(); |
| 761 | 764 |
| 762 // PaintInvalidationCapableScrollableArea | 765 // PaintInvalidationCapableScrollableArea |
| 763 LayoutBox& boxForScrollControlPaintInvalidation() const override; | 766 LayoutBox& boxForScrollControlPaintInvalidation() const override; |
| 764 LayoutScrollbarPart* resizer() const override { return nullptr; } | 767 LayoutScrollbarPart* resizer() const override { return nullptr; } |
| 765 | 768 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 937 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 935 setIsVisuallyNonEmpty(); | 938 setIsVisuallyNonEmpty(); |
| 936 } | 939 } |
| 937 | 940 |
| 938 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 941 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 939 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF
rameView(), scrollableArea.isFrameView()); | 942 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF
rameView(), scrollableArea.isFrameView()); |
| 940 | 943 |
| 941 } // namespace blink | 944 } // namespace blink |
| 942 | 945 |
| 943 #endif // FrameView_h | 946 #endif // FrameView_h |
| OLD | NEW |