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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 2346883003: Only paint the background onto the scrolling contents layer if we have a scrolling contents layer. (Closed)
Patch Set: CompositedLayerMappingTest.BackgroundPaintedIntoGraphicsLayerIfNotCompositedScrolling Created 4 years, 3 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: third_party/WebKit/Source/core/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 6aa246a751a34c29f6188630e8fc544454e7db43..a4640b2ff0c9faf5b074648549898fcfb97551ee 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -2356,7 +2356,7 @@ GraphicsLayer* PaintLayer::graphicsLayerBackingForScrolling() const
}
}
-bool PaintLayer::shouldPaintBackgroundOntoScrollingContentsLayer() const
+bool PaintLayer::canPaintBackgroundOntoScrollingContentsLayer() const
{
return !isRootLayer()
&& scrollsOverflow()

Powered by Google App Engine
This is Rietveld 408576698