From cd44dc59cdfc39534aef4d417e9f3c412e3be139 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 3 Feb 2012 09:55:33 +0100 Subject: Imported WebKit commit fce473cb4d55aa9fe9d0b0322a2fffecb731b961 (http://svn.webkit.org/repository/webkit/trunk@106560) --- Source/WebCore/page/Page.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'Source/WebCore/page/Page.h') 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 m_notificationController; #endif +#if ENABLE(POINTER_LOCK) + OwnPtr m_pointerLockController; +#endif #if ENABLE(INPUT_SPEECH) SpeechInputClient* m_speechInputClient; OwnPtr m_speechInput; @@ -462,6 +476,9 @@ namespace WebCore { PageVisibilityState m_visibilityState; #endif PlatformDisplayID m_displayID; + + HashSet m_relevantPaintedRenderObjects; + bool m_isCountingRelevantRepaintedObjects; }; } // namespace WebCore -- cgit v1.2.1