| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 void addPart(LayoutPart*); | 215 void addPart(LayoutPart*); |
| 216 void removePart(LayoutPart*); | 216 void removePart(LayoutPart*); |
| 217 | 217 |
| 218 void updateWidgetGeometries(); | 218 void updateWidgetGeometries(); |
| 219 | 219 |
| 220 void addPartToUpdate(LayoutEmbeddedObject&); | 220 void addPartToUpdate(LayoutEmbeddedObject&); |
| 221 | 221 |
| 222 void setIsPainting(bool val) const { m_isPainting = val; } | 222 void setIsPainting(bool val) const { m_isPainting = val; } |
| 223 bool isPainting() const; | 223 bool isPainting() const; |
| 224 | 224 |
| 225 void setNodeToDraw(Node*); | |
| 226 Node* nodeToDraw() const { return m_nodeToDraw.get(); } | |
| 227 | |
| 228 Color documentBackgroundColor() const; | 225 Color documentBackgroundColor() const; |
| 229 | 226 |
| 230 // Run all needed lifecycle stages. After calling this method, all frames wi
ll be in the lifecycle state PaintInvalidationClean. | 227 // Run all needed lifecycle stages. After calling this method, all frames wi
ll be in the lifecycle state PaintInvalidationClean. |
| 231 // If lifecycle throttling is allowed (see DocumentLifecycle::PreventThrottl
ingScope), some frames may skip the lifecycle update | 228 // If lifecycle throttling is allowed (see DocumentLifecycle::PreventThrottl
ingScope), some frames may skip the lifecycle update |
| 232 // (e.g., based on visibility) and will not end up being PaintInvalidationCl
ean. | 229 // (e.g., based on visibility) and will not end up being PaintInvalidationCl
ean. |
| 233 void updateAllLifecyclePhases(); | 230 void updateAllLifecyclePhases(); |
| 234 | 231 |
| 235 // Computes the style, layout and compositing lifecycle stages if needed. Af
ter calling this method, all frames will be in a lifecycle | 232 // Computes the style, layout and compositing lifecycle stages if needed. Af
ter calling this method, all frames will be in a lifecycle |
| 236 // state >= CompositingClean, and scrolling has been updated (unless throttl
ing is allowed). | 233 // state >= CompositingClean, and scrolling has been updated (unless throttl
ing is allowed). |
| 237 void updateLifecycleToCompositingCleanPlusScrolling(); | 234 void updateLifecycleToCompositingCleanPlusScrolling(); |
| (...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 IntSize m_lastViewportSize; | 795 IntSize m_lastViewportSize; |
| 799 float m_lastZoomFactor; | 796 float m_lastZoomFactor; |
| 800 | 797 |
| 801 AtomicString m_mediaType; | 798 AtomicString m_mediaType; |
| 802 AtomicString m_mediaTypeWhenNotPrinting; | 799 AtomicString m_mediaTypeWhenNotPrinting; |
| 803 | 800 |
| 804 bool m_safeToPropagateScrollToParent; | 801 bool m_safeToPropagateScrollToParent; |
| 805 | 802 |
| 806 bool m_isTrackingPaintInvalidations; // Used for testing. | 803 bool m_isTrackingPaintInvalidations; // Used for testing. |
| 807 | 804 |
| 808 RefPtrWillBeMember<Node> m_nodeToDraw; | |
| 809 | |
| 810 // TODO(wangxianzhu): Use document cycle state for spv2 and synchronzied pai
nting. | 805 // TODO(wangxianzhu): Use document cycle state for spv2 and synchronzied pai
nting. |
| 811 mutable bool m_isPainting; | 806 mutable bool m_isPainting; |
| 812 | 807 |
| 813 unsigned m_visuallyNonEmptyCharacterCount; | 808 unsigned m_visuallyNonEmptyCharacterCount; |
| 814 unsigned m_visuallyNonEmptyPixelCount; | 809 unsigned m_visuallyNonEmptyPixelCount; |
| 815 bool m_isVisuallyNonEmpty; | 810 bool m_isVisuallyNonEmpty; |
| 816 | 811 |
| 817 RefPtrWillBeMember<Node> m_scrollAnchor; | 812 RefPtrWillBeMember<Node> m_scrollAnchor; |
| 818 | 813 |
| 819 // layoutObject to hold our custom scroll corner. | 814 // layoutObject to hold our custom scroll corner. |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 static const unsigned visualPixelThreshold = 32 * 32; | 918 static const unsigned visualPixelThreshold = 32 * 32; |
| 924 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 919 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 925 setIsVisuallyNonEmpty(); | 920 setIsVisuallyNonEmpty(); |
| 926 } | 921 } |
| 927 | 922 |
| 928 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 923 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 929 | 924 |
| 930 } // namespace blink | 925 } // namespace blink |
| 931 | 926 |
| 932 #endif // FrameView_h | 927 #endif // FrameView_h |
| OLD | NEW |