[webkit-changes] [WebKit/WebKit] ff6a48: AX: Simplify AXObjectCache by making better use of...

Tyler Wilcock noreply at github.com
Sat Oct 22 20:51:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ff6a48ca8eab15201d359db8a0384edfc80f2997
      https://github.com/WebKit/WebKit/commit/ff6a48ca8eab15201d359db8a0384edfc80f2997
  Author: Tyler Wilcock <tyler_w at apple.com>
  Date:   2022-10-22 (Sat, 22 Oct 2022)

  Changed paths:
    M Source/WebCore/accessibility/AXObjectCache.cpp

  Log Message:
  -----------
  AX: Simplify AXObjectCache by making better use of AXIsolatedTree::treeForPageID(std::optional<PageIdentifier>)
https://bugs.webkit.org/show_bug.cgi?id=246904
rdar://problem/101462585

Reviewed by Chris Fleizach.

Several places in AXObjectCache manually check that m_pageID is not std::nullopt rather than using the existing
AXIsolatedTree::treeForPageID(std::optional<PageIdentifier>) method. This patch fixes that.

No test because there is no behavior change.

* Source/WebCore/accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::getOrCreateIsolatedTree const):
(WebCore::AXObjectCache::remove):
(WebCore::AXObjectCache::performDeferredCacheUpdate):
(WebCore::AXObjectCache::relationsNeedUpdate):

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




More information about the webkit-changes mailing list