-
macpherson@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=93235 Reviewed by Tony Chang. Source/WebCore: By returning null here (and failing to handle the variable) the current code would cause null pointer dereferences in StyleResolver at several points. Instead we create a primitive value for the variable reference and return it. Test: fast/css/variables/invalid-font-reference.html * css/CSSParser.cpp: (WebCore::CSSParser::parseValidPrimitive): LayoutTests: Exercises the code path where variables are parsed in CSSParser::parseValidPrimitive(). * fast/css/variables/invalid-font-reference-expected.txt: Added. * fast/css/variables/invalid-font-reference.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124833 268f45cc-cd09-0410-ab3c-d52691b4dbfc
f7e231cc