[webkit-changes] [WebKit/WebKit] ebcc55: AX: AXIsolatedTree::applyPendingChanges unnecessar...
Tyler Wilcock
noreply at github.com
Sat Oct 12 06:00:32 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ebcc55418af17129e18687794e310bd046680a9b
https://github.com/WebKit/WebKit/commit/ebcc55418af17129e18687794e310bd046680a9b
Author: Tyler Wilcock <tyler_w at apple.com>
Date: 2024-10-12 (Sat, 12 Oct 2024)
Changed paths:
M Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp
Log Message:
-----------
AX: AXIsolatedTree::applyPendingChanges unnecessarily holds a strong-ref to itself
https://bugs.webkit.org/show_bug.cgi?id=281361
rdar://137790158
Reviewed by Chris Fleizach.
While it used to be recommended / OK practice to create a `protectedThis` inside function calls, this is no longer
the case. Instead, it's expected that there must be a strong-ref smart pointer somewhere on the stack (this is better
because it reduces ref count churn), which is the case for all callsites of applyPendingChanges. That makes the
`protectedThis` inside `applyPendingChanges` redundant.
* Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp:
(WebCore::AXIsolatedTree::applyPendingChanges):
Canonical link: https://commits.webkit.org/285070@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list