Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ff6a48ca8eab15201d359db8a0384edfc80f2997
      
https://github.com/WebKit/WebKit/commit/ff6a48ca8eab15201d359db8a0384edfc80f2997
  Author: Tyler Wilcock <[email protected]>
  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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to