-
mikelawther@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=77960 Source/WebCore: Adds simple number/percent expression evaluation. rgb() and hsl() functions now allow simple calc() expressions. Reviewed by Ojan Vafai. * css/CSSCalculationValue.cpp: (WebCore): (WebCore::CSSCalcValue::doubleValue): (WebCore::CSSCalcPrimitiveValue::doubleValue): (WebCore::CSSCalcBinaryOperation::doubleValue): (CSSCalcBinaryOperation): (WebCore::CSSCalcBinaryOperation::evaluate): * css/CSSCalculationValue.h: (CSSCalcExpressionNode): (WebCore::CSSCalcValue::isInt): (CSSCalcValue): * css/CSSParser.cpp: (WebCore::CSSParser::parsedDouble): LayoutTests: Reviewed by Ojan Vafai. * css3/calc/color-hsl-expected.txt: * css3/calc/color-rgb-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
07846c73