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

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

Issue 2225743002: Use same layout logic in animations for deciding whether an element can transform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: isTransformApplicable 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..2e9ee1da8ec44e6bc900a7382cc004a276f62115 100644
--- a/third_party/WebKit/Source/core/animation/CompositorAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/CompositorAnimations.cpp
@@ -241,7 +241,7 @@ bool CompositorAnimations::isCandidateForAnimationOnCompositor(const Timing& tim
return false;
if (isTransformRelatedCSSProperty(property)) {
- if (targetElement.layoutObject() && targetElement.layoutObject()->isInline() && !targetElement.layoutObject()->isInlineBlockOrInlineTable()) {
+ if (targetElement.layoutObject() && !targetElement.layoutObject()->isTransformApplicable()) {
return false;
}
transformPropertyCount++;

Powered by Google App Engine
This is Rietveld 408576698