Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 40fd35825fe5a06964668d7eb82c10878c0ccb52
https://github.com/WebKit/WebKit/commit/40fd35825fe5a06964668d7eb82c10878c0ccb52
Author: Chris Dumez <[email protected]>
Date: 2026-04-09 (Thu, 09 Apr 2026)
Changed paths:
M Source/WebCore/dom/Node.cpp
Log Message:
-----------
Node::registerMutationObserver() loops through all observers even after
finding a match
https://bugs.webkit.org/show_bug.cgi?id=311788
Reviewed by Ryosuke Niwa.
Node::registerMutationObserver() loops through all observers even after
finding a match, which is unnecessarily inefficient.
I could have just added a `break;` statement inside the loop once finding
a match but I've refactored the code to use `Vector::findIf()` instead
because I think it is clearer.
* Source/WebCore/dom/Node.cpp:
(WebCore::Node::registerMutationObserver):
Canonical link: https://commits.webkit.org/310834@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications