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

Unified Diff: Source/core/rendering/RenderView.cpp

Issue 191693002: Delay scrollContents until the next paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix nit 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
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | Source/platform/scroll/ScrollView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderView.cpp
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp
index fcabc6007eafcdd85548fe893f1aaa31ebbe65b1..9fff59adf8d1b567b1ed3c556f7732e839b566d5 100644
--- a/Source/core/rendering/RenderView.cpp
+++ b/Source/core/rendering/RenderView.cpp
@@ -476,8 +476,13 @@ void RenderView::computeRectForRepaint(const RenderLayerModelObject* repaintCont
rect.setX(viewWidth() - rect.maxX());
}
- if (fixed && m_frameView)
+ if (fixed && m_frameView) {
rect.move(m_frameView->scrollOffsetForFixedPosition());
+ // If we have a pending scroll, invalidate the previous scroll position.
+ if (!m_frameView->pendingScrollDelta().isZero()) {
+ rect.move(-m_frameView->pendingScrollDelta());
+ }
+ }
// Apply our transform if we have one (because of full page zooming).
if (!repaintContainer && layer() && layer()->transform())
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | Source/platform/scroll/ScrollView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698