Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8d5d7059db3dc7d3aa870e274a734d86e46168c7
https://github.com/WebKit/WebKit/commit/8d5d7059db3dc7d3aa870e274a734d86e46168c7
Author: Ryosuke Niwa <[email protected]>
Date: 2025-12-19 (Fri, 19 Dec 2025)
Changed paths:
M Source/WebCore/html/FormListedElement.cpp
Log Message:
-----------
Reorganize code in FormListedElement::formOwnerRemovedFromTree to get rid of
suppressions
https://bugs.webkit.org/show_bug.cgi?id=304476
Reviewed by Anne van Kesteren.
The suppressions were needed because clearing of m_formAttributeTargetObserver,
which deletes
FormAttributeTargetObserver, made the for loop non-trivial.
Re-organize the code so that clearing of m_formAttributeTargetObserver happens
in an outer scope.
Also wrap the code which checks if any of the ancestor nodes matches the
current form element in
a lambda so that we don't need to suppress a warning for rootNode.
No new tests since there should be no behavioral differences.
* Source/WebCore/html/FormListedElement.cpp:
(WebCore::FormListedElement::formOwnerRemovedFromTree):
Canonical link: https://commits.webkit.org/304764@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications