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

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

Issue 474683002: Use scrollContentsSlowPath when scrolling with background-attachment: fixed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | « LayoutTests/fast/repaint/full-viewport-repaint-for-background-attachment-fixed-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index b12530ace8d2e8c6683ee59379db78059578f113..191a8cdccfec5fdab5bbab4e2c2a5bad4bc1e38c 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -1254,7 +1254,7 @@ void FrameView::scrollContentsIfNeeded()
bool FrameView::scrollContentsFastPath(const IntSize& scrollDelta, const IntRect& rectToScroll)
{
- if (!contentsInCompositedLayer())
+ if (!contentsInCompositedLayer() || hasSlowRepaintObjects())
return false;
if (!m_viewportConstrainedObjects || m_viewportConstrainedObjects->isEmpty()) {
« no previous file with comments | « LayoutTests/fast/repaint/full-viewport-repaint-for-background-attachment-fixed-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698