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

Unified Diff: Source/platform/scroll/ScrollbarThemeOverlay.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/scroll/ScrollbarThemeOverlay.cpp
diff --git a/Source/platform/scroll/ScrollbarThemeOverlay.cpp b/Source/platform/scroll/ScrollbarThemeOverlay.cpp
index 21b84e16ffa5b6384a8e5127121ea337165a1fc8..a8a9556d992fea9853b8a3c861fbfe6e48233192 100644
--- a/Source/platform/scroll/ScrollbarThemeOverlay.cpp
+++ b/Source/platform/scroll/ScrollbarThemeOverlay.cpp
@@ -36,8 +36,6 @@
#include <algorithm>
-using namespace std;
-
namespace blink {
ScrollbarThemeOverlay::ScrollbarThemeOverlay(int thumbThickness, int scrollbarMargin, HitTestBehavior allowHitTest, Color color)
@@ -88,7 +86,7 @@ int ScrollbarThemeOverlay::thumbLength(ScrollbarThemeClient* scrollbar)
float proportion = static_cast<float>(scrollbar->visibleSize()) / scrollbar->totalSize();
int length = round(proportion * trackLen);
- length = min(max(length, minimumThumbLength(scrollbar)), trackLen);
+ length = std::min(std::max(length, minimumThumbLength(scrollbar)), trackLen);
return length;
}
« no previous file with comments | « Source/platform/scroll/ScrollbarThemeMacCommon.mm ('k') | Source/platform/transforms/Matrix3DTransformOperation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698