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