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

Unified Diff: Source/core/html/forms/TypeAhead.cpp

Issue 133273021: Use isSpaceOrNewline rather than its implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Oops, logic error... Created 6 years, 11 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
« no previous file with comments | « no previous file | Source/web/PopupListBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | Source/web/PopupListBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698