Changeset 216188 in webkit
- Timestamp:
- May 4, 2017 8:41:13 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r216177 r216188 1 2017-05-04 Dave Hyatt <hyatt@apple.com> 2 3 REGRESSION(STP): rgb() with calc() containing variables doesn't work 4 https://bugs.webkit.org/show_bug.cgi?id=169939 5 6 Reviewed by Zalan Bujtas. 7 8 * fast/css/variables/calc-float-to-int-expected.html: Added. 9 * fast/css/variables/calc-float-to-int.html: Added. 10 1 11 2017-05-04 Carlos Garcia Campos <cgarcia@igalia.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r216183 r216188 1 2017-05-04 Dave Hyatt <hyatt@apple.com> 2 3 REGRESSION(STP): rgb() with calc() containing variables doesn't work 4 https://bugs.webkit.org/show_bug.cgi?id=169939 5 6 Reviewed by Zalan Bujtas. 7 8 Added new test in fast/css/variables. 9 10 * css/CSSCalculationValue.cpp: 11 (WebCore::CSSCalcExpressionNodeParser::parseValue): 12 Treat floats in calcs as integers when we can. 13 1 14 2017-05-04 Commit Queue <commit-queue@webkit.org> 2 15 -
trunk/Source/WebCore/css/CSSCalculationValue.cpp
r210215 r216188 599 599 return false; 600 600 601 result->value = CSSCalcPrimitiveValue::create(CSSPrimitiveValue::create(token.numericValue(), type), token.numericValueType() == IntegerValueType); 601 bool isInteger = token.numericValueType() == IntegerValueType || (token.numericValueType() == NumberValueType && token.numericValue() == trunc(token.numericValue())); 602 result->value = CSSCalcPrimitiveValue::create(CSSPrimitiveValue::create(token.numericValue(), type), isInteger); 602 603 603 604 return true;
Note: See TracChangeset
for help on using the changeset viewer.