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

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

Issue 2690633002: Fix PaintLayer::compositingContainer for self-painting non-stacked layers (Closed)
Patch Set: 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 ee4134b4d4d964e2ab6b5a96fa981fe833415473..d1f22d16775b05973b33e562f0f1507c2e91f5d6 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -921,7 +921,8 @@ PaintLayer* PaintLayer::compositingContainer() const {
if (!stackingNode()->isStacked()) {
// Floats have special painting order, which has complicated semantics.
// See the comments around FloatObject::setShouldPaint.
- if (m_layoutObject->isFloating() && m_layoutObject->parent() &&
+ if (!isSelfPaintingLayer() && m_layoutObject->isFloating() &&
+ m_layoutObject->parent() &&
!m_layoutObject->parent()->isLayoutBlockFlow())
return m_layoutObject->containingBlock()->enclosingLayer();

Powered by Google App Engine
This is Rietveld 408576698