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

Unified Diff: Source/core/css/parser/CSSPropertyParser.cpp

Issue 1184063002: Remove unused isValidNthToken function (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSPropertyParser.cpp
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp
index 265641d3f3b8c7a34bb0344d6361b66d56deab95..e27fa5ce66af073d3b35c869321c000938253407 100644
--- a/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/Source/core/css/parser/CSSPropertyParser.cpp
@@ -7586,17 +7586,6 @@ CSSValueID cssValueKeywordID(const CSSParserString& string)
return string.is8Bit() ? cssValueKeywordID(string.characters8(), length) : cssValueKeywordID(string.characters16(), length);
}
-// FIXME: This has nothing to do with parsing properties
-bool isValidNthToken(const CSSParserString& token)
-{
- // The tokenizer checks for the construct of an+b.
- // However, since the {ident} rule precedes the {nth} rule, some of those
- // tokens are identified as string literal. Furthermore we need to accept
- // "odd" and "even" which does not match to an+b.
- return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even")
- || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n");
-}
-
bool CSSPropertyParser::isSystemColor(int id)
{
return (id >= CSSValueActiveborder && id <= CSSValueWindowtext) || id == CSSValueMenu;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698