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

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

Issue 2571743003: Revert "Fix border radius on composited children." on 2950 branch (Closed)
Patch Set: Revert "Fix border radius on composited children." 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 f061939eeb8075ca052186f34717fbbb9e2ad9c1..ae749332cb175fc9fb0dff0e53e2083c0c4bf687 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -2257,13 +2257,6 @@ bool LayoutBox::paintedOutputOfObjectHasNoEffectRegardlessOfSize() const {
return false;
}
- // If the box paints into its own backing, we can assume that it's painting
- // may have some effect. For example, honoring the border-radius clip on
- // a composited child paints into a mask for an otherwise non-painting
- // element, because children of that element will require the mask.
- if (hasLayer() && layer()->compositingState() == PaintsIntoOwnBacking)
- return false;
-
return true;
}

Powered by Google App Engine
This is Rietveld 408576698