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

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

Issue 2642763009: Fix paint and rect mapping issues for stacked float under stacked inline (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
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 8778e090b49c6ce94ff53a238e98e37b4aabf8c0..e02b48d3b0a5663e1a278fa803cbf79210457d43 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -921,8 +921,8 @@ PaintLayer* PaintLayer::compositingContainer() const {
// Floats have special painting order, which has complicated semantics.
// See the comments around FloatObject::setShouldPaint.
if (m_layoutObject->isFloating() && m_layoutObject->parent() &&
- !m_layoutObject->parent()->isLayoutBlockFlow())
- return m_layoutObject->containingBlock()->enclosingLayer();
+ !m_layoutObject->parent()->canContainFloatingObject(*m_layoutObject))
+ return m_layoutObject->container()->enclosingLayer();
return parent();
}

Powered by Google App Engine
This is Rietveld 408576698