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

Unified Diff: Source/platform/transforms/TransformOperations.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/TransformOperations.cpp
diff --git a/Source/platform/transforms/TransformOperations.cpp b/Source/platform/transforms/TransformOperations.cpp
index 457dadea2eab81517dfffd7d62691e6fe6c7e7bb..606230fd64cf223052fa46a1b1f482f0bbe25196 100644
--- a/Source/platform/transforms/TransformOperations.cpp
+++ b/Source/platform/transforms/TransformOperations.cpp
@@ -29,8 +29,6 @@
#include "platform/transforms/RotateTransformOperation.h"
#include <algorithm>
-using namespace std;
-
namespace blink {
TransformOperations::TransformOperations(bool makeIdentity)
@@ -74,7 +72,7 @@ TransformOperations TransformOperations::blendByMatchingOperations(const Transfo
unsigned fromSize = from.operations().size();
unsigned toSize = operations().size();
- unsigned size = max(fromSize, toSize);
+ unsigned size = std::max(fromSize, toSize);
for (unsigned i = 0; i < size; i++) {
RefPtr<TransformOperation> fromOperation = (i < fromSize) ? from.operations()[i].get() : 0;
RefPtr<TransformOperation> toOperation = (i < toSize) ? operations()[i].get() : 0;
@@ -243,7 +241,7 @@ bool TransformOperations::blendedBoundsForBox(const FloatBox& box, const Transfo
int fromSize = from.operations().size();
int toSize = operations().size();
- int size = max(fromSize, toSize);
+ int size = std::max(fromSize, toSize);
*bounds = box;
for (int i = size - 1; i >= 0; i--) {
« no previous file with comments | « Source/platform/transforms/RotateTransformOperation.cpp ('k') | Source/platform/transforms/TransformationMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698