Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 5701312dba4c15a1c46bf57662d1638eda398100 https://github.com/WebKit/WebKit/commit/5701312dba4c15a1c46bf57662d1638eda398100 Author: Taher Ali <taher_...@apple.com> Date: 2025-08-21 (Thu, 21 Aug 2025)
Changed paths: M Source/WebCore/svg/SVGLengthValue.cpp Log Message: ----------- Remove extra mapping step between LengthPercentageUnit and SVGLengthType https://bugs.webkit.org/show_bug.cgi?id=297689 rdar://158802251 Reviewed by Tim Nguyen. Previously, conversions required an intermediate step through, adding unnecessary overhead. Before: CSS::LengthPercentageUnit > CSSUnitType > SVGLengthType SVGLengthType < CSSUnitType < CSS::LengthPercentageUnit After: CSS::LengthPercentageUnit > SVGLengthType SVGLengthType < CSS::LengthPercentageUnit * Source/WebCore/svg/SVGLengthValue.cpp: (WebCore::cssLengthUnitToSVGLengthType): (WebCore::svgLengthTypeToCSSLengthUnit): (WebCore::createVariantForLengthType): (WebCore::SVGLengthValue::lengthType const): (WebCore::SVGLengthValue::valueForBindings const): (WebCore::primitiveTypeToLengthType): Deleted. (WebCore::lengthTypeToPrimitiveType): Deleted. Canonical link: https://commits.webkit.org/299005@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes