[webkit-changes] [WebKit/WebKit] 02e30d: AX: AccessibilityRenderObject::computeAccessibilit...

Tyler Wilcock noreply at github.com
Wed Nov 15 20:59:33 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 02e30d0b0337a54008f527863d9b14625c3ac725
      https://github.com/WebKit/WebKit/commit/02e30d0b0337a54008f527863d9b14625c3ac725
  Author: Tyler Wilcock <tyler_w at apple.com>
  Date:   2023-11-15 (Wed, 15 Nov 2023)

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

  Log Message:
  -----------
  AX: AccessibilityRenderObject::computeAccessibilityIsIgnored performs an unnecessary ancestry traversal for RenderTexts
https://bugs.webkit.org/show_bug.cgi?id=264861
rdar://problem/118437052

Reviewed by Chris Fleizach and Andres Gonzalez.

AccessibilityRenderObject::computeAccessibilityIsIgnored for RenderTexts traverses the ancestry twice.
We can combine this into one traversal. Also modernizes some nearby code to use dynamicDowncast instead
of is + downcast.

* Source/WebCore/accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored const):

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




More information about the webkit-changes mailing list