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

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

Issue 2736373003: Fix wrong paint invalidation container for column spanners (Closed)
Patch Set: Created 3 years, 9 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 | « third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp ('k') | 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/PaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
index 75c51d9bf4c2fbbdea10b937af03feb53010c2d5..54bb8dc00a85b2f0d1823554bdbaef2251a1dafa 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -297,7 +297,10 @@ void PaintInvalidator::updatePaintInvalidationContainer(
// this frame's paintInvalidationContainer.
context.paintInvalidationContainerForStackedContents =
context.paintInvalidationContainer;
- } else if (object.isFloatingWithNonContainingBlockParent()) {
+ } else if (object.isFloatingWithNonContainingBlockParent() ||
+ object.isColumnSpanAll()) {
+ // In these cases, the object may belong to an ancestor of the current
+ // paint invalidation container, in paint order.
context.paintInvalidationContainer =
&object.containerForPaintInvalidation();
} else if (object.styleRef().isStacked() &&
« no previous file with comments | « third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698