Reviewed by Darin.
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7118
Property values with extra items do not get treated as invalid (they should)
Tests: fast/css/invalidation-errors.html
fast/css/invalidation-errors-2.html
fast/css/invalidation-errors-3.html
* css/CSSGrammar.y: Rollback the properties added by parseValue() when it returns false.
* css/cssparser.h: Moved shorthand counting to ShorthandScope, a new class in cssparser.cpp.
* css/cssparser.cpp:
(WebCore::CSSParser::rollbackLastProperties): Added.
(WebCore::CSSParser::parseValue): Return false if there are too many properties in the list.
(WebCore::CSSParser::parseBackgroundShorthand): Use ShorthandScope.
(WebCore::CSSParser::parseShorthand): Ditto.
(WebCore::CSSParser::parse4Values): Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13673
268f45cc-cd09-0410-ab3c-
d52691b4dbfc