Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b5d97d01d808d9f9056c521ecfc4704ec4783f02
https://github.com/WebKit/WebKit/commit/b5d97d01d808d9f9056c521ecfc4704ec4783f02
Author: Taher Ali <[email protected]>
Date: 2026-07-09 (Thu, 09 Jul 2026)
Changed paths:
M Source/WebCore/svg/SVGElement.cpp
Log Message:
-----------
Use CSSPropertyInvalid sentinel instead of `> 0` for SVG presentation
attribute lookups
https://bugs.webkit.org/show_bug.cgi?id=318973
rdar://181828170
Reviewed by Simon Fraser.
cssPropertyIdForSVGAttributeName() returns CSSPropertyInvalid (0) for
unmapped attributes, so `!= CSSPropertyInvalid` is equivalent to `> 0` and
matches the sentinel the switch already uses. Also renames propId to
propertyID for consistency.
No behavior change.
* Source/WebCore/svg/SVGElement.cpp:
(WebCore::SVGElement::hasPresentationalHintsForAttribute const):
(WebCore::SVGElement::collectPresentationalHintsForAttribute):
(WebCore::SVGElement::svgAttributeChanged):
Canonical link: https://commits.webkit.org/316841@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications