Index: third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp |
diff --git a/third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp b/third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp |
index 98ebe6cf0dd7fa14ccefa93ecf2a3022c5f721a4..fdf5cf6a6dedbff9362409312b6e4aa2f49d43de 100644 |
--- a/third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp |
+++ b/third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp |
@@ -26,14 +26,12 @@ |
#include "config.h" |
#include "wtf/text/TextCodecLatin1.h" |
-#include "wtf/text/TextCodecASCIIFastPath.h" |
#include "wtf/PassOwnPtr.h" |
#include "wtf/text/CString.h" |
#include "wtf/text/StringBuffer.h" |
+#include "wtf/text/TextCodecASCIIFastPath.h" |
#include "wtf/text/WTFString.h" |
-using namespace WTF; |
- |
namespace WTF { |
static const UChar table[256] = { |
@@ -215,9 +213,10 @@ static CString encodeComplexWindowsLatin1(const CharType* characters, size_t len |
// Do an efficient check to detect characters other than 00-7F and A0-FF. |
if (b != c || (c & 0xE0) == 0x80) { |
// Look for a way to encode this with Windows Latin-1. |
- for (b = 0x80; b < 0xA0; ++b) |
+ for (b = 0x80; b < 0xA0; ++b) { |
if (table[b] == c) |
goto gotByte; |
+ } |
// No way to encode this character with Windows Latin-1. |
UnencodableReplacementArray replacement; |
int replacementLength = TextCodec::getUnencodableReplacement(c, handling, replacement); |