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

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

Issue 512293003: Removing "using" declarations that import names in the C++ Standard library.(Source/platform/[m* - … (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: Source/platform/transforms/RotateTransformOperation.cpp
diff --git a/Source/platform/transforms/RotateTransformOperation.cpp b/Source/platform/transforms/RotateTransformOperation.cpp
index e64cd7d1e0846a0244d9453d5837ae585b115951..8a49884e2d5f333b16a52857229654b5f88df90e 100644
--- a/Source/platform/transforms/RotateTransformOperation.cpp
+++ b/Source/platform/transforms/RotateTransformOperation.cpp
@@ -27,8 +27,6 @@
#include "wtf/MathExtras.h"
#include <algorithm>
-using namespace std;
-
namespace blink {
static const double angleEpsilon = 1e-4;
@@ -135,14 +133,14 @@ PassRefPtr<TransformOperation> RotateTransformOperation::blend(const TransformOp
double x = -decomp.quaternionX;
double y = -decomp.quaternionY;
double z = -decomp.quaternionZ;
- double length = sqrt(x * x + y * y + z * z);
+ double length = std::sqrt(x * x + y * y + z * z);
double angle = 0;
if (length > 0.00001) {
x /= length;
y /= length;
z /= length;
- angle = rad2deg(acos(decomp.quaternionW) * 2);
+ angle = rad2deg(std::acos(decomp.quaternionW) * 2);
} else {
x = 0;
y = 0;
« no previous file with comments | « Source/platform/transforms/PerspectiveTransformOperation.cpp ('k') | Source/platform/transforms/TransformOperations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698