Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(988)

Unified Diff: Source/core/frame/FrameView.h

Issue 191693002: Delay scrollContents until the next paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix layout tests Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/frame/FrameView.h
diff --git a/Source/core/frame/FrameView.h b/Source/core/frame/FrameView.h
index 07ccb28aa615c5404ea1573685f16da955149182..5442a45c4390e21028834177c659309d7ba90491 100644
--- a/Source/core/frame/FrameView.h
+++ b/Source/core/frame/FrameView.h
@@ -151,8 +151,6 @@ public:
void setInputEventsTransformForEmulation(const IntSize&, float);
virtual void setScrollPosition(const IntPoint&) OVERRIDE;
- virtual void repaintFixedElementsAfterScrolling() OVERRIDE;
- virtual void updateFixedElementsAfterScrolling() OVERRIDE;
virtual bool shouldRubberBandInDirection(ScrollDirection) const OVERRIDE;
virtual bool isRubberBandInProgress() const OVERRIDE;
void setScrollPositionNonProgrammatically(const IntPoint&);
@@ -331,6 +329,7 @@ public:
virtual GraphicsLayer* layerForScrollCorner() const OVERRIDE;
protected:
+ virtual void scrollContentsIfNeeded();
virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRect& rectToScroll, const IntRect& clipRect) OVERRIDE;
virtual void scrollContentsSlowPath(const IntRect& updateRect) OVERRIDE;
@@ -394,6 +393,9 @@ private:
void scrollPositionChanged();
void didScrollTimerFired(Timer<FrameView>*);
+ void updateLayersAndCompositingAfterScrollIfNeeded();
+ void updateFixedElementRepaintRectsAfterScroll();
+
bool hasCustomScrollbars() const;
bool shouldUseCustomScrollbars(Element*& customScrollbarElement, LocalFrame*& customScrollbarFrame);

Powered by Google App Engine
This is Rietveld 408576698