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

Unified Diff: Source/platform/transforms/RotateTransformOperation.cpp

Issue 1322843002: Fix for rotate from 0deg (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove redundant div Created 5 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
« no previous file with comments | « LayoutTests/virtual/threaded/animations/compositor-rotate-zero-degrees-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/transforms/RotateTransformOperation.cpp
diff --git a/Source/platform/transforms/RotateTransformOperation.cpp b/Source/platform/transforms/RotateTransformOperation.cpp
index 3c827a369cb25a8461d61b4d5e70587615bf21d9..45f691589bc52cd9d09acdfb171f9ebca11edb8d 100644
--- a/Source/platform/transforms/RotateTransformOperation.cpp
+++ b/Source/platform/transforms/RotateTransformOperation.cpp
@@ -45,8 +45,8 @@ bool RotateTransformOperation::shareSameAxis(const RotateTransformOperation* fro
if (!from && !to)
return true;
- bool fromZero = !from || from->axis().isZero();
- bool toZero = !to || to->axis().isZero();
+ bool fromZero = !from || from->axis().isZero() || fabs(from->angle()) < angleEpsilon;
+ bool toZero = !to || to->axis().isZero() || fabs(to->angle()) < angleEpsilon;
if (fromZero && toZero)
return true;
« no previous file with comments | « LayoutTests/virtual/threaded/animations/compositor-rotate-zero-degrees-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698