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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp

Issue 1490063002: Implement Paint Containment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unnecessary adjustStyleForContainment declaration Created 5 years 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/css/resolver/StyleAdjuster.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
index ff610fc7505eb5cb88eae2596ef7f27a8ba0df42..3a4247727322a96de340332400d513012a930bf1 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
@@ -199,7 +199,8 @@ void StyleAdjuster::adjustComputedStyle(ComputedStyle& style, const ComputedStyl
|| style.hasIsolation()
|| style.position() == FixedPosition
|| isInTopLayer(element, style)
- || hasWillChangeThatCreatesStackingContext(style)))
+ || hasWillChangeThatCreatesStackingContext(style)
+ || style.containsPaint()))
chrishtr 2015/12/09 01:41:46 Does this work with inline elements?
leviw_travelin_and_unemployed 2015/12/09 21:09:24 Yurp yurp yurp. But there were no tests, which is
style.setZIndex(0);
if (doesNotInheritTextDecoration(style, element))

Powered by Google App Engine
This is Rietveld 408576698