[webkit-changes] [WebKit/WebKit] 3677b9: AX: Unify check for whether an Element can have AX...

AndresGonzalezApple noreply at github.com
Thu Aug 17 19:21:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3677b9c10c6233820181336eb0c787a4b4e988af
      https://github.com/WebKit/WebKit/commit/3677b9c10c6233820181336eb0c787a4b4e988af
  Author: Andres Gonzalez <andresg_22 at apple.com>
  Date:   2023-08-17 (Thu, 17 Aug 2023)

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

  Log Message:
  -----------
  AX: Unify check for whether an Element can have AX relations.
https://bugs.webkit.org/show_bug.cgi?id=260357
<rdar://problem/114035912>

Reviewed by Tyler Wilcock.

AXObjectCache::updateRelations and updateRelationsForTree had different set of Element's tag name to exclude Elements that we don't need to calculate AX releations for. This patch unifies this check in the canHaveRelations(Element&) function. This is an optimization for AXObjectCache::updateRelations.

* Source/WebCore/accessibility/AXObjectCache.cpp:
(WebCore::canHaveRelations):
(WebCore::AXObjectCache::updateRelationsForTree):
(WebCore::AXObjectCache::updateRelations):

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




More information about the webkit-changes mailing list