Commit ba25a49a authored by rob.buis@samsung.com's avatar rob.buis@samsung.com

Move almost all of CSSPropertyParser into CSSPropertyParser.cpp

This moves 8200 lines out of BisonCSSParser leaving only 1700 lines left. :)

When I split CSSPropertyParser from BisonCSSParser I left
all the code in BisonCSSParser-in.cpp to make the diff
small and to avoid conflicting with others changes.

Now I'm moving (almost) all of CSSPropertyParser into the
correct .cpp file.

The only bit left is some transform parsing code which uses
the -in.cpp preprocessor bits of BisonCSSParser. Its
the only code which uses this fancy SWITCH/CASE preprocessor
and should just be moved out into its own file.

BUG=330389

Review URL: https://codereview.chromium.org/185293006

git-svn-id: svn://svn.chromium.org/blink/trunk@168368 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 9b0e88c9
...@@ -322,6 +322,8 @@ inline int cssyylex(void* yylval, BisonCSSParser* parser) ...@@ -322,6 +322,8 @@ inline int cssyylex(void* yylval, BisonCSSParser* parser)
return parser->m_tokenizer.lex(yylval); return parser->m_tokenizer.lex(yylval);
} }
bool isValidNthToken(const CSSParserString&);
} // namespace WebCore } // namespace WebCore
#endif // BisonCSSParser_h #endif // BisonCSSParser_h
...@@ -404,7 +404,8 @@ CSSPropertyID cssPropertyID(const CSSParserString&); ...@@ -404,7 +404,8 @@ CSSPropertyID cssPropertyID(const CSSParserString&);
CSSPropertyID cssPropertyID(const String&); CSSPropertyID cssPropertyID(const String&);
CSSValueID cssValueKeywordID(const CSSParserString&); CSSValueID cssValueKeywordID(const CSSParserString&);
bool isValidNthToken(const CSSParserString&); bool isKeywordPropertyID(CSSPropertyID);
bool isValidKeywordPropertyAndValue(CSSPropertyID, int valueID, const CSSParserContext&);
} // namespace WebCore } // namespace WebCore
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment