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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 1490063002: Implement Paint Containment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix merge 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/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index 485f65d7905ca889b7c467aee17743f15ed5529e..54678941fa1419a063ce961d2b2aea487a3d5a3e 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -568,7 +568,7 @@ bool CompositedLayerMapping::updateGraphicsLayerConfiguration()
static IntRect clipBox(LayoutBox* layoutObject)
{
LayoutRect result = LayoutRect(LayoutRect::infiniteIntRect());
- if (layoutObject->hasOverflowClip())
+ if (layoutObject->hasOverflowClip() || layoutObject->style()->containsPaint())
result = layoutObject->overflowClipRect(LayoutPoint());
if (layoutObject->hasClip())

Powered by Google App Engine
This is Rietveld 408576698