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

Unified Diff: third_party/WebKit/Source/core/animation/CompositorAnimations.cpp

Issue 1423893002: Web Animations: Suppress compositor animations for transform on inline elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « third_party/WebKit/LayoutTests/animations/inline-transform-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3a0f34148f6d744244b90379ea036a579effd6ae..f98c86d7ef9ceb42fb138668e9527a86198df6f5 100644
--- a/third_party/WebKit/Source/core/animation/CompositorAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/CompositorAnimations.cpp
@@ -253,8 +253,12 @@ bool CompositorAnimations::isCandidateForAnimationOnCompositor(const Timing& tim
if (!property.isCSSProperty())
return false;
- if (isTransformRelatedCSSProperty(property))
+ if (isTransformRelatedCSSProperty(property)) {
+ if (targetElement.layoutObject() && targetElement.layoutObject()->isInline()) {
+ return false;
+ }
transformPropertyCount++;
+ }
const PropertySpecificKeyframeVector& keyframes = keyframeEffect.getPropertySpecificKeyframes(property);
ASSERT(keyframes.size() >= 2);
« no previous file with comments | « third_party/WebKit/LayoutTests/animations/inline-transform-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698