-
macpherson@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=94772 Reviewed by Tony Chang. Source/WebCore: Viewport units were not added to CSSParserValue::createCSSValue(). This patch handles that case. Patch also converts from list of if clauses to a switch statement to catch future errors. Test: fast/css/variables/calc-vw-crash.html * css/CSSParserValues.cpp: (WebCore::CSSParserValue::createCSSValue): LayoutTests: Add test that uses variables, calc and viewport units together. * fast/css/variables/calc-vw-crash-expected.txt: Added. * fast/css/variables/calc-vw-crash.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126828 268f45cc-cd09-0410-ab3c-d52691b4dbfc
e87def62