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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.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/layout/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index e6f84ffc8f017c8b309cf4d2372e5466b4420738..d724bd16080724d109982ef4ffead15d4cb46941 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -107,7 +107,7 @@ PaintLayerType LayoutBox::layerTypeRequired() const
|| !style()->hasAutoZIndex() || style()->shouldCompositeForCurrentAnimations())
chrishtr 2015/12/09 01:41:46 !hasAutoZIndex should be enough, line 110 will be
leviw_travelin_and_unemployed 2015/12/09 21:09:24 Good point :)
return NormalPaintLayer;
- if (hasOverflowClip())
+ if (hasOverflowClip() || style()->containsPaint())
return OverflowClipPaintLayer;
return NoPaintLayer;

Powered by Google App Engine
This is Rietveld 408576698