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); |