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


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

Reply via email to