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

Unified Diff: third_party/WebKit/Source/core/animation/CompositorAnimations.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/animation/CompositorAnimations.cpp
diff --git a/third_party/WebKit/Source/core/animation/CompositorAnimations.cpp b/third_party/WebKit/Source/core/animation/CompositorAnimations.cpp
index 776a6d452776a33388b92315943d5b101573c061..ad5124895d3d99666cc8ada06e0f2a305f70c34b 100644
--- a/third_party/WebKit/Source/core/animation/CompositorAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/CompositorAnimations.cpp
@@ -244,6 +244,11 @@ bool CompositorAnimations::isCandidateForAnimationOnCompositor(const Timing& tim
if (targetElement.layoutObject() && targetElement.layoutObject()->isInline() && !targetElement.layoutObject()->isInlineBlockOrInlineTable()) {
return false;
}
+ for (LayoutObject* layoutObject = targetElement.layoutObject(); layoutObject; layoutObject = layoutObject->parent()) {
+ if (layoutObject->styleRef().filter().hasReferenceFilter()) {
chrishtr 2016/08/11 01:23:59 All reference filters need css-specified geometry?
Stephen White 2016/08/11 15:17:12 Yes. All reference filters include the "filter reg
+ return false;
+ }
+ }
transformPropertyCount++;
}

Powered by Google App Engine
This is Rietveld 408576698