| 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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 | 557 |
| 558 // Used to get at the underlying layoutViewport in the rare instances where | 558 // Used to get at the underlying layoutViewport in the rare instances where |
| 559 // we actually want to scroll *just* the layout viewport (e.g. when sending | 559 // we actually want to scroll *just* the layout viewport (e.g. when sending |
| 560 // deltas from CC). For typical scrolling cases, use getScrollableArea(). | 560 // deltas from CC). For typical scrolling cases, use getScrollableArea(). |
| 561 ScrollableArea* layoutViewportScrollableArea(); | 561 ScrollableArea* layoutViewportScrollableArea(); |
| 562 | 562 |
| 563 int viewportWidth() const; | 563 int viewportWidth() const; |
| 564 | 564 |
| 565 LayoutAnalyzer* layoutAnalyzer() { return m_analyzer.get(); } | 565 LayoutAnalyzer* layoutAnalyzer() { return m_analyzer.get(); } |
| 566 | 566 |
| 567 void setFrameTimingRequestsDirty(bool isDirty) { m_frameTimingRequestsDirty
= isDirty; } | |
| 568 bool frameTimingRequestsDirty() { return m_frameTimingRequestsDirty; } | |
| 569 | |
| 570 // Returns true if this frame should not render or schedule visual updates. | 567 // Returns true if this frame should not render or schedule visual updates. |
| 571 bool shouldThrottleRendering() const; | 568 bool shouldThrottleRendering() const; |
| 572 | 569 |
| 573 // Returns true if this frame could potentially skip rendering and avoid | 570 // Returns true if this frame could potentially skip rendering and avoid |
| 574 // scheduling visual updates. | 571 // scheduling visual updates. |
| 575 bool canThrottleRendering() const; | 572 bool canThrottleRendering() const; |
| 576 bool isHiddenForThrottling() const { return m_hiddenForThrottling; } | 573 bool isHiddenForThrottling() const { return m_hiddenForThrottling; } |
| 577 | 574 |
| 578 // Paint properties for SPv2 Only. | 575 // Paint properties for SPv2 Only. |
| 579 void setPreTranslation(PassRefPtr<TransformPaintPropertyNode> preTranslation
) { m_preTranslation = preTranslation; } | 576 void setPreTranslation(PassRefPtr<TransformPaintPropertyNode> preTranslation
) { m_preTranslation = preTranslation; } |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 ScrollingCoordinator* scrollingCoordinator() const; | 737 ScrollingCoordinator* scrollingCoordinator() const; |
| 741 | 738 |
| 742 void prepareLayoutAnalyzer(); | 739 void prepareLayoutAnalyzer(); |
| 743 PassOwnPtr<TracedValue> analyzerCounters(); | 740 PassOwnPtr<TracedValue> analyzerCounters(); |
| 744 | 741 |
| 745 // LayoutObject for the viewport-defining element (see Document::viewportDef
iningElement). | 742 // LayoutObject for the viewport-defining element (see Document::viewportDef
iningElement). |
| 746 LayoutObject* viewportLayoutObject(); | 743 LayoutObject* viewportLayoutObject(); |
| 747 | 744 |
| 748 void collectAnnotatedRegions(LayoutObject&, Vector<AnnotatedRegionValue>&) c
onst; | 745 void collectAnnotatedRegions(LayoutObject&, Vector<AnnotatedRegionValue>&) c
onst; |
| 749 | 746 |
| 750 typedef WTF::HashMap <const GraphicsLayer*, Vector<std::pair<int64_t, WebRec
t>>> GraphicsLayerFrameTimingRequests; | |
| 751 void updateFrameTimingRequestsIfNeeded(); | |
| 752 void collectFrameTimingRequests(GraphicsLayerFrameTimingRequests&); | |
| 753 void collectFrameTimingRequestsRecursive(GraphicsLayerFrameTimingRequests&); | |
| 754 | |
| 755 template <typename Function> void forAllNonThrottledFrameViews(const Functio
n&); | 747 template <typename Function> void forAllNonThrottledFrameViews(const Functio
n&); |
| 756 | 748 |
| 757 void setNeedsUpdateViewportIntersection(); | 749 void setNeedsUpdateViewportIntersection(); |
| 758 void updateViewportIntersectionsForSubtree(LifeCycleUpdateOption); | 750 void updateViewportIntersectionsForSubtree(LifeCycleUpdateOption); |
| 759 void updateViewportIntersectionIfNeeded(); | 751 void updateViewportIntersectionIfNeeded(); |
| 760 void notifyRenderThrottlingObservers(); | 752 void notifyRenderThrottlingObservers(); |
| 761 | 753 |
| 762 // PaintInvalidationCapableScrollableArea | 754 // PaintInvalidationCapableScrollableArea |
| 763 LayoutBox& boxForScrollControlPaintInvalidation() const override; | 755 LayoutBox& boxForScrollControlPaintInvalidation() const override; |
| 764 LayoutScrollbarPart* resizer() const override { return nullptr; } | 756 LayoutScrollbarPart* resizer() const override { return nullptr; } |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 926 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 935 setIsVisuallyNonEmpty(); | 927 setIsVisuallyNonEmpty(); |
| 936 } | 928 } |
| 937 | 929 |
| 938 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 930 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 939 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF
rameView(), scrollableArea.isFrameView()); | 931 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF
rameView(), scrollableArea.isFrameView()); |
| 940 | 932 |
| 941 } // namespace blink | 933 } // namespace blink |
| 942 | 934 |
| 943 #endif // FrameView_h | 935 #endif // FrameView_h |
| OLD | NEW |