| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 void setLastPaintTime(double val) { m_lastPaintTime = val; } | 218 void setLastPaintTime(double val) { m_lastPaintTime = val; } |
| 219 bool hasEverPainted() const { return m_lastPaintTime; } | 219 bool hasEverPainted() const { return m_lastPaintTime; } |
| 220 void setNodeToDraw(Node*); | 220 void setNodeToDraw(Node*); |
| 221 Node* nodeToDraw() { return m_nodeToDraw.get(); } | 221 Node* nodeToDraw() { return m_nodeToDraw.get(); } |
| 222 | 222 |
| 223 Color documentBackgroundColor() const; | 223 Color documentBackgroundColor() const; |
| 224 | 224 |
| 225 // Run all needed lifecycle stages. After calling this method, all frames wi
ll be in the lifecycle state PaintInvalidationClean. | 225 // Run all needed lifecycle stages. After calling this method, all frames wi
ll be in the lifecycle state PaintInvalidationClean. |
| 226 void updateAllLifecyclePhases(); | 226 void updateAllLifecyclePhases(); |
| 227 | 227 |
| 228 // Computes the style, layout and compositing lifecycle stages if needed. Af
ter calling this method, all frames wil lbe in a lifecycle | |
| 229 // state >= CompositingClean, and scrolling has been updated. | |
| 230 void updateLifecycleToCompositingCleanPlusScrolling(); | |
| 231 | |
| 232 bool invalidateViewportConstrainedObjects(); | 228 bool invalidateViewportConstrainedObjects(); |
| 233 | 229 |
| 234 void incrementVisuallyNonEmptyCharacterCount(unsigned); | 230 void incrementVisuallyNonEmptyCharacterCount(unsigned); |
| 235 void incrementVisuallyNonEmptyPixelCount(const IntSize&); | 231 void incrementVisuallyNonEmptyPixelCount(const IntSize&); |
| 236 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; } | 232 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; } |
| 237 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } | 233 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } |
| 238 void enableAutoSizeMode(const IntSize& minSize, const IntSize& maxSize); | 234 void enableAutoSizeMode(const IntSize& minSize, const IntSize& maxSize); |
| 239 void disableAutoSizeMode(); | 235 void disableAutoSizeMode(); |
| 240 | 236 |
| 241 void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& or
iginalPageSize, float maximumShrinkFactor); | 237 void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& or
iginalPageSize, float maximumShrinkFactor); |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 static const unsigned visualPixelThreshold = 32 * 32; | 860 static const unsigned visualPixelThreshold = 32 * 32; |
| 865 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 861 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 866 setIsVisuallyNonEmpty(); | 862 setIsVisuallyNonEmpty(); |
| 867 } | 863 } |
| 868 | 864 |
| 869 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 865 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 870 | 866 |
| 871 } // namespace blink | 867 } // namespace blink |
| 872 | 868 |
| 873 #endif // FrameView_h | 869 #endif // FrameView_h |
| OLD | NEW |