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

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

Issue 2194273002: Fix border radius on composited children. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. Created 4 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 894f7d8e93f14ad42f8ad43f5a2f0513a35b4157..0bd968278c083adb35f933df0839fda7d65ded4a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -2257,6 +2257,11 @@ bool LayoutBox::paintedOutputOfObjectHasNoEffectRegardlessOfSize() const {
return false;
}
+ // If the box paints into its own backing, we can assume that it's painting
+ // must have some effect.
chrishtr 2016/12/12 19:41:46 s/can/must/. Also mention one such case, which is
Stephen Chennney 2016/12/12 19:49:47 Done.
+ if (hasLayer() && layer()->compositingState() == PaintsIntoOwnBacking)
+ return false;
+
return true;
}

Powered by Google App Engine
This is Rietveld 408576698