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

Unified Diff: Source/web/PopupListBox.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 | « Source/core/html/forms/TypeAhead.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/PopupListBox.cpp
diff --git a/Source/web/PopupListBox.cpp b/Source/web/PopupListBox.cpp
index daa7e9b82f93f3ef5963970fa5a74009772d0222..bc7fb83b58f5d2228eb048c56c550b6005f42f91 100644
--- a/Source/web/PopupListBox.cpp
+++ b/Source/web/PopupListBox.cpp
@@ -288,7 +288,7 @@ static String stripLeadingWhiteSpace(const String& string)
int i;
for (i = 0; i < length; ++i)
if (string[i] != noBreakSpace
- && (string[i] <= 0x7F ? !isASCIISpace(string[i]) : (direction(string[i]) != WhiteSpaceNeutral)))
+ && !isSpaceOrNewline(string[i]))
break;
return string.substring(i, length - i);
« no previous file with comments | « Source/core/html/forms/TypeAhead.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698