Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b8257f0c45ebeb9d413a7fb44ceb0d52a2efbfd6
https://github.com/WebKit/WebKit/commit/b8257f0c45ebeb9d413a7fb44ceb0d52a2efbfd6
Author: Taher Ali <[email protected]>
Date: 2026-08-04 (Tue, 04 Aug 2026)
Changed paths:
M Source/WebCore/css/StyleProperties.h
M Source/WebCore/css/StylePropertiesInlines.h
M Source/WebCore/svg/SVGPathElement.cpp
Log Message:
-----------
Add StyleProperties::hasProperty
https://bugs.webkit.org/show_bug.cgi?id=320376
rdar://183342502
Reviewed by Sam Weinig.
callsite were comparing findPropertyIndex() against -1 to check
whether d was already set, which reads as an index lookup rather than the
presence test. Use hasProperty which is semantically clearer.
No behavior change.
* Source/WebCore/css/StyleProperties.h:
* Source/WebCore/css/StylePropertiesInlines.h:
(WebCore::StyleProperties::hasProperty const):
* Source/WebCore/svg/SVGPathElement.cpp:
(WebCore::SVGPathElement::collectExtraStyleForPresentationalHints):
Canonical link: https://commits.webkit.org/318556@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications