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

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

Issue 2232013002: CSS filters: fix filtered parent with animated transform child. Base URL: https://chromium.googlesource.com/chromium/src.git@filter-bounds-transformed-composited-child
Patch Set: Created 4 years, 4 months 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 51159637bc5b210ce7b76982670cd289db156338..6b32b673ef3da0281f130c4c6a029765f590c2c6 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -271,6 +271,11 @@ void CompositedLayerMapping::updateTransform(const ComputedStyle& style)
void CompositedLayerMapping::updateFilters(const ComputedStyle& style)
{
m_graphicsLayer->setFilters(owningLayer().computeFilterOperations(style));
+ for (PaintLayer* layer = owningLayer().parent(); layer; layer = layer->parent()) {
+ if (layer->layoutObject() && layer->graphicsLayerBacking() && layer->layoutObject()->style()) {
+ layer->graphicsLayerBacking()->setFilters(layer->computeFilterOperations(*layer->layoutObject()->style()));
+ }
+ }
}
void CompositedLayerMapping::updateBackdropFilters(const ComputedStyle& style)

Powered by Google App Engine
This is Rietveld 408576698