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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 void setIsPainting(bool val) { m_isPainting = val; } | 219 void setIsPainting(bool val) { m_isPainting = val; } |
220 bool isPainting() const; | 220 bool isPainting() const; |
221 void setLastPaintTime(double val) { m_lastPaintTime = val; } | 221 void setLastPaintTime(double val) { m_lastPaintTime = val; } |
222 bool hasEverPainted() const { return m_lastPaintTime; } | 222 bool hasEverPainted() const { return m_lastPaintTime; } |
223 void setNodeToDraw(Node*); | 223 void setNodeToDraw(Node*); |
224 Node* nodeToDraw() { return m_nodeToDraw.get(); } | 224 Node* nodeToDraw() { return m_nodeToDraw.get(); } |
225 | 225 |
226 Color documentBackgroundColor() const; | 226 Color documentBackgroundColor() const; |
227 | 227 |
228 // Run all needed lifecycle stages. After calling this method, all frames wi
ll be in the lifecycle state PaintInvalidationClean. | 228 // Run all needed lifecycle stages. After calling this method, all frames wi
ll be in the lifecycle state PaintInvalidationClean. |
229 void updateAllLifecyclePhases(); | 229 // TODO(pdr): Update callers to pass in the interest rect. |
| 230 void updateAllLifecyclePhases(const LayoutRect& interestRect = LayoutRect::i
nfiniteRect()); |
230 | 231 |
231 // Computes the style, layout and compositing lifecycle stages if needed. Af
ter calling this method, all frames wil lbe in a lifecycle | 232 // Computes the style, layout and compositing lifecycle stages if needed. Af
ter calling this method, all frames wil lbe in a lifecycle |
232 // state >= CompositingClean, and scrolling has been updated. | 233 // state >= CompositingClean, and scrolling has been updated. |
233 void updateLifecycleToCompositingCleanPlusScrolling(); | 234 void updateLifecycleToCompositingCleanPlusScrolling(); |
234 | 235 |
235 bool invalidateViewportConstrainedObjects(); | 236 bool invalidateViewportConstrainedObjects(); |
236 | 237 |
237 void incrementVisuallyNonEmptyCharacterCount(unsigned); | 238 void incrementVisuallyNonEmptyCharacterCount(unsigned); |
238 void incrementVisuallyNonEmptyPixelCount(const IntSize&); | 239 void incrementVisuallyNonEmptyPixelCount(const IntSize&); |
239 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; } | 240 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; } |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 explicit FrameView(LocalFrame*); | 606 explicit FrameView(LocalFrame*); |
606 | 607 |
607 void setScrollOffset(const IntPoint&, ScrollType) override; | 608 void setScrollOffset(const IntPoint&, ScrollType) override; |
608 void setScrollOffset(const DoublePoint&, ScrollType) override; | 609 void setScrollOffset(const DoublePoint&, ScrollType) override; |
609 | 610 |
610 enum LifeCycleUpdateOption { | 611 enum LifeCycleUpdateOption { |
611 AllPhases, | 612 AllPhases, |
612 OnlyUpToCompositingCleanPlusScrolling, | 613 OnlyUpToCompositingCleanPlusScrolling, |
613 }; | 614 }; |
614 | 615 |
615 void updateLifecyclePhasesInternal(LifeCycleUpdateOption); | 616 void updateLifecyclePhasesInternal(LifeCycleUpdateOption, const LayoutRect&
interestRect = LayoutRect::infiniteRect()); |
616 void invalidateTreeIfNeededRecursive(); | 617 void invalidateTreeIfNeededRecursive(); |
617 void scrollContentsIfNeededRecursive(); | 618 void scrollContentsIfNeededRecursive(); |
618 void updateStyleAndLayoutIfNeededRecursive(); | 619 void updateStyleAndLayoutIfNeededRecursive(); |
619 void paintForSlimmingPaintV2(); | 620 void paintForSlimmingPaintV2(const LayoutRect& interestRect); |
620 void compositeForSlimmingPaintV2(); | 621 void compositeForSlimmingPaintV2(); |
621 | 622 |
622 void reset(); | 623 void reset(); |
623 void init(); | 624 void init(); |
624 | 625 |
625 void clearLayoutSubtreeRootsAndMarkContainingBlocks(); | 626 void clearLayoutSubtreeRootsAndMarkContainingBlocks(); |
626 | 627 |
627 // Called when our frame rect changes (or the rect/scroll position of an anc
estor changes). | 628 // Called when our frame rect changes (or the rect/scroll position of an anc
estor changes). |
628 void frameRectsChanged() override; | 629 void frameRectsChanged() override; |
629 | 630 |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 static const unsigned visualPixelThreshold = 32 * 32; | 863 static const unsigned visualPixelThreshold = 32 * 32; |
863 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 864 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
864 setIsVisuallyNonEmpty(); | 865 setIsVisuallyNonEmpty(); |
865 } | 866 } |
866 | 867 |
867 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 868 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
868 | 869 |
869 } // namespace blink | 870 } // namespace blink |
870 | 871 |
871 #endif // FrameView_h | 872 #endif // FrameView_h |
OLD | NEW |