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

Unified Diff: third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp

Issue 2621523002: Fix PaintInvalidationState for multicol (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/layout/PaintInvalidationState.cpp
diff --git a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
index fe434f3179b39c54f4fcd6126216a20eb2531867..98848d0b7624dfc63a2d42abd45dfcb7d58e8417 100644
--- a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
+++ b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
@@ -236,8 +236,10 @@ PaintLayer& PaintInvalidationState::childPaintingLayer(
const LayoutObject& child) const {
if (child.hasLayer() && toLayoutBoxModelObject(child).hasSelfPaintingLayer())
return *toLayoutBoxModelObject(child).layer();
- // See LayoutObject::paintingLayer() for specialty of floating objects.
- if (child.isFloating() && !m_currentObject.isLayoutBlock())
+ // See LayoutObject::paintingLayer() for the special-cases of floating under
+ // inline and multicolumn.
+ if (child.isColumnSpanAll() ||
+ (child.isFloating() && !m_currentObject.isLayoutBlock()))
return *child.paintingLayer();
return m_paintingLayer;
}
« 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