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

Unified Diff: third_party/WebKit/Source/core/html/ImageDocument.cpp

Issue 2726603002: Drop some "using namespace" in WebKit/Source/html. (Closed)
Patch Set: Updated to a newer origin/master Created 3 years, 10 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/html/ImageDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/ImageDocument.cpp b/third_party/WebKit/Source/core/html/ImageDocument.cpp
index 419c255a5add9a2060005316ace129e7627759c2..1744b0f15100a28ee7ed3f094c4e649ef41e4ddd 100644
--- a/third_party/WebKit/Source/core/html/ImageDocument.cpp
+++ b/third_party/WebKit/Source/core/html/ImageDocument.cpp
@@ -53,8 +53,6 @@
#include "platform/HostWindow.h"
#include "wtf/text/StringBuilder.h"
-using namespace std;
-
namespace {
// The base square size is set to 10 because it rounds nicely for both the
@@ -317,7 +315,7 @@ float ImageDocument::scale() const {
float heightScale =
view->height() * manualZoom / imageSize.height().toFloat();
- return min(widthScale, heightScale);
+ return std::min(widthScale, heightScale);
}
void ImageDocument::resizeImageToFit() {

Powered by Google App Engine
This is Rietveld 408576698