| 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 removePart(LayoutPart*); | 215 void removePart(LayoutPart*); |
| 216 | 216 |
| 217 void updateWidgetPositions(); | 217 void updateWidgetPositions(); |
| 218 | 218 |
| 219 void addPartToUpdate(LayoutEmbeddedObject&); | 219 void addPartToUpdate(LayoutEmbeddedObject&); |
| 220 | 220 |
| 221 void setIsPainting(bool val) const { m_isPainting = val; } | 221 void setIsPainting(bool val) const { m_isPainting = val; } |
| 222 bool isPainting() const; | 222 bool isPainting() const; |
| 223 | 223 |
| 224 void setNodeToDraw(Node*); | 224 void setNodeToDraw(Node*); |
| 225 Node* nodeToDraw() const; | 225 Node* nodeToDraw() const { return m_nodeToDraw.get(); } |
| 226 | 226 |
| 227 Color documentBackgroundColor() const; | 227 Color documentBackgroundColor() const; |
| 228 | 228 |
| 229 // Run all needed lifecycle stages. After calling this method, all frames wi
ll be in the lifecycle state PaintInvalidationClean. | 229 // Run all needed lifecycle stages. After calling this method, all frames wi
ll be in the lifecycle state PaintInvalidationClean. |
| 230 // If lifecycle throttling is allowed (see DocumentLifecycle::PreventThrottl
ingScope), some frames may skip the lifecycle update | 230 // If lifecycle throttling is allowed (see DocumentLifecycle::PreventThrottl
ingScope), some frames may skip the lifecycle update |
| 231 // (e.g., based on visibility) and will not end up being PaintInvalidationCl
ean. | 231 // (e.g., based on visibility) and will not end up being PaintInvalidationCl
ean. |
| 232 void updateAllLifecyclePhases(); | 232 void updateAllLifecyclePhases(); |
| 233 | 233 |
| 234 // Computes the style, layout and compositing lifecycle stages if needed. Af
ter calling this method, all frames will be in a lifecycle | 234 // Computes the style, layout and compositing lifecycle stages if needed. Af
ter calling this method, all frames will be in a lifecycle |
| 235 // state >= CompositingClean, and scrolling has been updated (unless throttl
ing is allowed). | 235 // state >= CompositingClean, and scrolling has been updated (unless throttl
ing is allowed). |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 static const unsigned visualPixelThreshold = 32 * 32; | 907 static const unsigned visualPixelThreshold = 32 * 32; |
| 908 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 908 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 909 setIsVisuallyNonEmpty(); | 909 setIsVisuallyNonEmpty(); |
| 910 } | 910 } |
| 911 | 911 |
| 912 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 912 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 913 | 913 |
| 914 } // namespace blink | 914 } // namespace blink |
| 915 | 915 |
| 916 #endif // FrameView_h | 916 #endif // FrameView_h |
| OLD | NEW |