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

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

Issue 2682933002: Fix PaintLayer::compositingContainer for self-painting non-stacked layers (Closed)
Patch Set: Fix PaintLayer::compositingContainer for self-painting non-stacked layers Created 3 years, 10 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 7284419f945ebbe0ea2d7aeadc30cd1f3de2d894..786449fb35c9431719650de6bd0a451cddff4080 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -922,7 +922,7 @@ LayoutPoint PaintLayer::computeOffsetFromTransformedAncestor() const {
PaintLayer* PaintLayer::compositingContainer() const {
if (!stackingNode()->isStacked())
- return containingLayer();
+ return isSelfPaintingLayer() ? parent() : containingLayer();
if (PaintLayerStackingNode* ancestorStackingNode =
stackingNode()->ancestorStackingContextNode())
return ancestorStackingNode->layer();

Powered by Google App Engine
This is Rietveld 408576698