Index: third_party/WebKit/Source/core/css/CSSMarkup.cpp |
diff --git a/third_party/WebKit/Source/core/css/CSSMarkup.cpp b/third_party/WebKit/Source/core/css/CSSMarkup.cpp |
index d038527b1b9ce1f91cd852abec18c75f4fbc6490..55987e9b4769192c450a6a8205e678c331406702 100644 |
--- a/third_party/WebKit/Source/core/css/CSSMarkup.cpp |
+++ b/third_party/WebKit/Source/core/css/CSSMarkup.cpp |
@@ -26,6 +26,7 @@ |
#include "core/css/CSSMarkup.h" |
+#include "core/css/parser/CSSParserIdioms.h" |
#include "wtf/HexNumber.h" |
#include "wtf/text/StringBuffer.h" |
#include "wtf/text/StringBuilder.h" |
@@ -42,13 +43,13 @@ static inline bool isCSSTokenizerIdentifier(const CharacterType* characters, uns |
++characters; |
// {nmstart} |
- if (characters == end || !(characters[0] == '_' || characters[0] >= 128 || isASCIIAlpha(characters[0]))) |
+ if (characters == end || !isNameStartCodePoint(characters[0])) |
return false; |
++characters; |
// {nmchar}* |
for (; characters != end; ++characters) { |
- if (!(characters[0] == '_' || characters[0] == '-' || characters[0] >= 128 || isASCIIAlphanumeric(characters[0]))) |
+ if (!isNameCodePoint(characters[0])) |
return false; |
} |