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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2264663002: Paint solid color backgrounds which are equivalent to locally attached into scrolling contents layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scrollcontent-paint-bg
Patch Set: Add test and only skip local equivalence if outline enters padding-box Created 4 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
Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index 263634c96d5b147266a773ec803c62f833cc8457..d41d6c300eebd7f33fc5a32d6a58fa84c639a543 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -2586,7 +2586,7 @@ bool CompositedLayerMapping::shouldPaintBackgroundOntoScrollingContentsLayer() c
{
return !m_owningLayer.isRootLayer()
&& m_owningLayer.scrollsOverflow()
- && m_owningLayer.layoutObject()->style()->hasEntirelyLocalBackground()
+ && m_owningLayer.layoutObject()->hasLocalEquivalentBackground()
&& !m_owningLayer.stackingNode()->hasNegativeZOrderList();
}

Powered by Google App Engine
This is Rietveld 408576698