Index: Source/core/css/StylePropertySerializer.cpp |
diff --git a/Source/core/css/StylePropertySerializer.cpp b/Source/core/css/StylePropertySerializer.cpp |
index 5583bd15903210c5c91b3d8f79dc1134e762fdbb..4d00705a09c899759868fc66c70fbde7136ad7f1 100644 |
--- a/Source/core/css/StylePropertySerializer.cpp |
+++ b/Source/core/css/StylePropertySerializer.cpp |
@@ -29,8 +29,6 @@ |
#include "wtf/BitArray.h" |
#include "wtf/text/StringBuilder.h" |
-using namespace std; |
- |
namespace WebCore { |
static bool isInitialOrInherit(const String& value) |
@@ -483,9 +481,10 @@ String StylePropertySerializer::getLayeredShorthandValue(const StylePropertyShor |
if (values[i]) { |
if (values[i]->isBaseValueList()) { |
CSSValueList* valueList = toCSSValueList(values[i].get()); |
- numLayers = max(valueList->length(), numLayers); |
- } else |
- numLayers = max<size_t>(1U, numLayers); |
+ numLayers = std::max(valueList->length(), numLayers); |
+ } else { |
+ numLayers = std::max<size_t>(1U, numLayers); |
+ } |
} |
} |