diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-03 09:55:33 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-03 09:55:33 +0100 |
commit | cd44dc59cdfc39534aef4d417e9f3c412e3be139 (patch) | |
tree | 8d89889ba95ed6ec9322e733846cc9cce9d7dff1 /Source/WebCore/page/Page.h | |
parent | d11f84f5b5cdc0d92a08af01b13472fdd5f9acb9 (diff) | |
download | qtwebkit-cd44dc59cdfc39534aef4d417e9f3c412e3be139.tar.gz |
Imported WebKit commit fce473cb4d55aa9fe9d0b0322a2fffecb731b961 (http://svn.webkit.org/repository/webkit/trunk@106560)
Diffstat (limited to 'Source/WebCore/page/Page.h')
-rw-r--r-- | Source/WebCore/page/Page.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/Source/WebCore/page/Page.h b/Source/WebCore/page/Page.h index ef1d1d9fc..887893f9f 100644 --- a/Source/WebCore/page/Page.h +++ b/Source/WebCore/page/Page.h @@ -76,8 +76,10 @@ namespace WebCore { class NotificationPresenter; class PageGroup; class PluginData; + class PointerLockController; class ProgressTracker; class Range; + class RenderObject; class RenderTheme; class VisibleSelection; class ScrollableArea; @@ -190,6 +192,9 @@ namespace WebCore { #if ENABLE(NOTIFICATIONS) NotificationController* notificationController() const { return m_notificationController.get(); } #endif +#if ENABLE(POINTER_LOCK) + PointerLockController* pointerLockController() const { return m_pointerLockController.get(); } +#endif #if ENABLE(INPUT_SPEECH) SpeechInput* speechInput(); #endif @@ -266,6 +271,7 @@ namespace WebCore { Pagination() : mode(Unpaginated) + , behavesLikeColumns(false) , pageLength(0) , gap(0) { @@ -273,10 +279,11 @@ namespace WebCore { bool operator==(const Pagination& other) const { - return mode == other.mode && pageLength == other.pageLength && gap == other.gap; + return mode == other.mode && behavesLikeColumns == other.behavesLikeColumns && pageLength == other.pageLength && gap == other.gap; } Mode mode; + bool behavesLikeColumns; unsigned pageLength; unsigned gap; }; @@ -348,6 +355,10 @@ namespace WebCore { #endif PlatformDisplayID displayID() const { return m_displayID; } + + void setRelevantRepaintedObjectsCounterThreshold(uint64_t); + void startCountingRelevantRepaintedObjects(); + void addRelevantRepaintedObject(RenderObject*, const IntRect& objectPaintRect); private: void initGroup(); @@ -386,6 +397,9 @@ namespace WebCore { #if ENABLE(NOTIFICATIONS) OwnPtr<NotificationController> m_notificationController; #endif +#if ENABLE(POINTER_LOCK) + OwnPtr<PointerLockController> m_pointerLockController; +#endif #if ENABLE(INPUT_SPEECH) SpeechInputClient* m_speechInputClient; OwnPtr<SpeechInput> m_speechInput; @@ -462,6 +476,9 @@ namespace WebCore { PageVisibilityState m_visibilityState; #endif PlatformDisplayID m_displayID; + + HashSet<RenderObject*> m_relevantPaintedRenderObjects; + bool m_isCountingRelevantRepaintedObjects; }; } // namespace WebCore |