Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d49d59b1464d5196a8fafae70423b3e9ded4830b
      
https://github.com/WebKit/WebKit/commit/d49d59b1464d5196a8fafae70423b3e9ded4830b
  Author: Joshua Hoffman <jhoffma...@apple.com>
  Date:   2025-03-04 (Tue, 04 Mar 2025)

  Changed paths:
    A 
LayoutTests/accessibility/ax-thread-text-apis/range-from-webarea-expected.txt
    A LayoutTests/accessibility/ax-thread-text-apis/range-from-webarea.html
    M Source/WebCore/accessibility/AXCoreObject.cpp
    M Source/WebCore/accessibility/AXCoreObject.h
    M Source/WebCore/accessibility/AXTextMarker.cpp

  Log Message:
  -----------
  AX: Add fast path for text marker ordering when one marker is the start of 
the root web area
https://bugs.webkit.org/show_bug.cgi?id=289034
rdar://146075994

Reviewed by Tyler Wilcock.

When we have a text marker at the root web area with offset 0, nothing can come 
before it.
With this knowledge, we can add a fast path to partialOrderByTraversal, so that 
we don't
have to walk the entire AX tree to determine ordering.

* 
LayoutTests/accessibility/ax-thread-text-apis/range-from-webarea-expected.txt: 
Added.
* LayoutTests/accessibility/ax-thread-text-apis/range-from-webarea.html: Added.
* Source/WebCore/accessibility/AXCoreObject.cpp:
(WebCore::AXCoreObject::isRootWebArea const):
* Source/WebCore/accessibility/AXCoreObject.h:
* Source/WebCore/accessibility/AXTextMarker.cpp:
(WebCore::AXTextMarker::partialOrderByTraversal const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to