Index: Source/core/inspector/ContentSearchUtils.cpp |
diff --git a/Source/core/inspector/ContentSearchUtils.cpp b/Source/core/inspector/ContentSearchUtils.cpp |
index 473968b02467f180f0687fd24ce17f7a47eceae6..d025b5ea302b4c5bb4c887bdaff554d317c83a71 100644 |
--- a/Source/core/inspector/ContentSearchUtils.cpp |
+++ b/Source/core/inspector/ContentSearchUtils.cpp |
@@ -33,8 +33,6 @@ |
#include "bindings/v8/ScriptRegexp.h" |
#include "wtf/text/StringBuilder.h" |
-using namespace std; |
- |
namespace WebCore { |
namespace ContentSearchUtils { |
@@ -117,9 +115,9 @@ static String findMagicComment(const String& content, const String& name, MagicC |
unsigned length = content.length(); |
unsigned nameLength = name.length(); |
- size_t pos = length; |
- size_t equalSignPos = 0; |
- size_t closingCommentPos = 0; |
+ std::size_t pos = length; |
+ std::size_t equalSignPos = 0; |
+ std::size_t closingCommentPos = 0; |
while (true) { |
pos = content.reverseFind(name, pos); |
if (pos == kNotFound) |
@@ -155,12 +153,12 @@ static String findMagicComment(const String& content, const String& name, MagicC |
ASSERT(equalSignPos); |
ASSERT(commentType != CSSMagicComment || closingCommentPos); |
- size_t urlPos = equalSignPos + 1; |
+ std::size_t urlPos = equalSignPos + 1; |
String match = commentType == CSSMagicComment |
? content.substring(urlPos, closingCommentPos - urlPos) |
: content.substring(urlPos); |
- size_t newLine = match.find("\n"); |
+ std::size_t newLine = match.find("\n"); |
if (newLine != kNotFound) |
match = match.substring(0, newLine); |
match = match.stripWhiteSpace(); |