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

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

Issue 1775743002: Web Animations: Dont suppress compositor transform for inline-block (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: simplify Created 4 years, 9 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/virtual/threaded/animations/inline-block-transform.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 221fe6bcc830b23ce1554efa19c347d19c0f46a5..ba396983d294d138a892769b8e43f3fe9c5bfd50 100644
--- a/third_party/WebKit/Source/core/animation/CompositorAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/CompositorAnimations.cpp
@@ -254,7 +254,7 @@ bool CompositorAnimations::isCandidateForAnimationOnCompositor(const Timing& tim
return false;
if (isTransformRelatedCSSProperty(property)) {
- if (targetElement.layoutObject() && targetElement.layoutObject()->isInline()) {
+ if (targetElement.layoutObject() && targetElement.layoutObject()->isInline() && !targetElement.layoutObject()->isInlineBlockOrInlineTable()) {
return false;
}
transformPropertyCount++;
« no previous file with comments | « third_party/WebKit/LayoutTests/virtual/threaded/animations/inline-block-transform.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698