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

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

Issue 2655023003: Background attachment behavior update for rootlayer with root-layer-scrolls enabled (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 168383e4077bc5da12b3a5d8b84841d30bb4efcc..4a6fc138a15b867a7b26faed424d4fbc1141562f 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -2624,10 +2624,13 @@ GraphicsLayer* PaintLayer::graphicsLayerBacking(const LayoutObject* obj) const {
BackgroundPaintLocation PaintLayer::backgroundPaintLocation(
uint32_t* reasons) const {
- BackgroundPaintLocation location =
- isRootLayer() || !scrollsOverflow()
- ? BackgroundPaintInGraphicsLayer
- : layoutObject()->backgroundPaintLocation(reasons);
+ BackgroundPaintLocation location = BackgroundPaintInGraphicsLayer;
+ if (scrollsOverflow()) {
+ if (RuntimeEnabledFeatures::rootLayerScrollingEnabled() || !isRootLayer()) {
flackr 2017/01/26 00:03:16 I wonder if this check is really necessary? The sc
+ location = layoutObject()->backgroundPaintLocation(reasons);
+ }
+ }
+
m_stackingNode->updateLayerListsIfNeeded();
if (m_stackingNode->hasNegativeZOrderList())
location = BackgroundPaintInGraphicsLayer;
flackr 2017/01/26 00:03:16 This seems wrong, do we actually create a layer be
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698