Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: f23f94eab4ca39099b8924055834f474382e83c7 https://github.com/WebKit/WebKit/commit/f23f94eab4ca39099b8924055834f474382e83c7 Author: Antti Koivisto <an...@apple.com> Date: 2022-12-12 (Mon, 12 Dec 2022)
Changed paths: M Source/WebCore/css/CSSPrimitiveValue.cpp M Source/WebCore/css/CSSUnits.cpp M Source/WebCore/css/CSSUnits.h M Source/WebCore/css/calc/CSSCalcPrimitiveValueNode.cpp M Source/WebCore/css/parser/CSSPropertyParser.cpp M Source/WebCore/css/typedom/CSSUnitValue.cpp Log Message: ----------- canonicalUnitTypeForCategory should handle percent category https://bugs.webkit.org/show_bug.cgi?id=249107 rdar://103231020 Reviewed by Tim Nguyen. Fix some FIXMEs. * Source/WebCore/css/CSSPrimitiveValue.cpp: (WebCore::CSSPrimitiveValue::doubleValueInternal const): Handle the percent case here instead of in canonicalUnitTypeForCategory. * Source/WebCore/css/CSSUnits.cpp: (WebCore::canonicalUnitTypeForCategory): (WebCore::canonicalUnitTypeForUnitType): Add a shortcut. * Source/WebCore/css/CSSUnits.h: * Source/WebCore/css/calc/CSSCalcPrimitiveValueNode.cpp: (WebCore::CSSCalcPrimitiveValueNode::add): * Source/WebCore/css/parser/CSSPropertyParser.cpp: (WebCore::CSSPropertyParser::parseTypedCustomPropertyValue): Use canonicalUnitTypeForUnitType. * Source/WebCore/css/typedom/CSSUnitValue.cpp: (WebCore::CSSUnitValue::toSumValue const): Canonical link: https://commits.webkit.org/257716@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes