[webkit-changes] [WebKit/WebKit] 47196e: AX: AXIsolatedTree::objectsForIDs unnecessarily tr...

Tyler Wilcock noreply at github.com
Wed Dec 27 00:52:58 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 47196ea52cba46efb5c676f84e65653ef4833959
      https://github.com/WebKit/WebKit/commit/47196ea52cba46efb5c676f84e65653ef4833959
  Author: Tyler Wilcock <tyler_w at apple.com>
  Date:   2023-12-27 (Wed, 27 Dec 2023)

  Changed paths:
    M Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp
    M Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.h

  Log Message:
  -----------
  AX: AXIsolatedTree::objectsForIDs unnecessarily tries to add objects to m_readerThreadNodeMap
https://bugs.webkit.org/show_bug.cgi?id=266896
rdar://problem/120175205

Reviewed by Chris Fleizach.

After https://github.com/WebKit/WebKit/commit/e4ad61660d18fb4c6ea566f697dc59bfa0229ae3, this behavior is obsolete.
Removing it allows us to make the method const. Also slightly improve performance by moving the temporary RefPtr
into the result vector.

* Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp:
(WebCore::AXIsolatedTree::objectsForIDs const):
(WebCore::AXIsolatedTree::objectsForIDs): Deleted.
* Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.h:

Canonical link: https://commits.webkit.org/272510@main




More information about the webkit-changes mailing list