From 2bde8e466a4451c7319e3a072d118917957d6554 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Wed, 25 May 2011 19:08:45 +0100 Subject: Merge WebKit at r82507: Initial merge by git Change-Id: I60ce9d780725b58b45e54165733a8ffee23b683e --- Source/WebCore/page/FrameView.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'Source/WebCore/page/FrameView.h') diff --git a/Source/WebCore/page/FrameView.h b/Source/WebCore/page/FrameView.h index 8e79a3a..9af0552 100644 --- a/Source/WebCore/page/FrameView.h +++ b/Source/WebCore/page/FrameView.h @@ -138,6 +138,7 @@ public: void willMoveOffscreen(); void resetScrollbars(); + void resetScrollbarsAndClearContentsSize(); void detachCustomScrollbars(); void clear(); @@ -213,6 +214,7 @@ public: void setPaintBehavior(PaintBehavior); PaintBehavior paintBehavior() const; bool isPainting() const; + bool hasEverPainted() const { return m_lastPaintTime; } void setNodeToDraw(Node*); virtual void paintOverhangAreas(GraphicsContext*, const IntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect); @@ -274,8 +276,7 @@ public: // FIXME: Remove this method once plugin loading is decoupled from layout. void flushAnyPendingPostLayoutTasks(); - void setIsRestoringFromBackForward(bool isRestoring) { m_isRestoringFromBackForward = isRestoring; } - bool isRestoringFromBackForward() const { return m_isRestoringFromBackForward; } + virtual bool shouldSuspendScrollAnimations() const; protected: virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRect& rectToScroll, const IntRect& clipRect); @@ -322,6 +323,10 @@ private: virtual void getTickmarks(Vector&) const; virtual void scrollTo(const IntSize&); virtual void didCompleteRubberBand(const IntSize&) const; + virtual void scrollbarStyleChanged(); + + virtual void notifyPageThatContentAreaWillPaint() const; + virtual void disconnectFromPage() { m_page = 0; } void deferredRepaintTimerFired(Timer*); void doDeferredRepaints(); @@ -415,13 +420,13 @@ private: bool m_isVisuallyNonEmpty; bool m_firstVisuallyNonEmptyLayoutCallbackPending; - bool m_isRestoringFromBackForward; - RefPtr m_maintainScrollPositionAnchor; // Renderer to hold our custom scroll corner. RenderScrollbarPart* m_scrollCorner; + Page* m_page; + static double s_deferredRepaintDelay; static double s_initialDeferredRepaintDelayDuringLoading; static double s_maxDeferredRepaintDelayDuringLoading; -- cgit v1.1