Index: Source/core/html/forms/TypeAhead.cpp |
diff --git a/Source/core/html/forms/TypeAhead.cpp b/Source/core/html/forms/TypeAhead.cpp |
index e9a0052edad32d555d0d1b93fb56ba90368b9098..673b88956cea1638eb5c7a56ede9708558868fff 100644 |
--- a/Source/core/html/forms/TypeAhead.cpp |
+++ b/Source/core/html/forms/TypeAhead.cpp |
@@ -50,7 +50,7 @@ static String stripLeadingWhiteSpace(const String& string) |
unsigned i; |
for (i = 0; i < length; ++i) { |
- if (string[i] != noBreakSpace && (string[i] <= 0x7F ? !isASCIISpace(string[i]) : (direction(string[i]) != WhiteSpaceNeutral))) |
+ if (string[i] != noBreakSpace && !isSpaceOrNewline(string[i])) |
break; |
} |