DescriptionChange isCSSWideKeyword() to take a StringView instead of a CSSValueID
This patch changes the isCSSWideKeyword function to take a StringView
instead of a CSSValueID. Currently all its (two) callers just have a
CSSParserToken so it seems more efficient to just do string comparisons
instead of hashing the string into a CSSValueID first. A subsequent
patch will use this function in CSSSyntaxDescriptor.cpp where we will
only have a string and making a CSSValueID for that seems wrong.
Committed: https://crrev.com/692c9aef14c0699ef68a6796b68c93df69b4e731
Cr-Commit-Position: refs/heads/master@{#422004}
Patch Set 1 #
Messages
Total messages: 12 (7 generated)
|