Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6e28d9c0c7722d99f7ecde619c47f8652601bc14
      
https://github.com/WebKit/WebKit/commit/6e28d9c0c7722d99f7ecde619c47f8652601bc14
  Author: Dominic Mazzoni <[email protected]>
  Date:   2026-08-14 (Fri, 14 Aug 2026)

  Changed paths:
    A 
LayoutTests/accessibility/isolated-tree/mac/range-for-line-with-block-line-breaks-expected.txt
    A 
LayoutTests/accessibility/isolated-tree/mac/range-for-line-with-block-line-breaks.html
    A 
LayoutTests/accessibility/mac/range-for-line-with-block-line-breaks-expected.txt
    A LayoutTests/accessibility/mac/range-for-line-with-block-line-breaks.html
    M Source/WebCore/accessibility/AXTextMarker.cpp

  Log Message:
  -----------
  AX: AXRangeForLine and AXLineForIndex don't count lines consistently in 
contenteditables
https://bugs.webkit.org/show_bug.cgi?id=321681
rdar://184826408

Reviewed by Tyler Wilcock.

AXRangeForLine and AXLineForIndex weren't consistent in how they counted block 
boundaries and
emitted newlines, leading to bugs when VoiceOver round-trips from a position to 
a line index
to a line range.

Tests: 
accessibility/isolated-tree/mac/range-for-line-with-block-line-breaks.html
       accessibility/mac/range-for-line-with-block-line-breaks.html

* 
LayoutTests/accessibility/isolated-tree/mac/range-for-line-with-block-line-breaks-expected.txt:
 Added.
* 
LayoutTests/accessibility/isolated-tree/mac/range-for-line-with-block-line-breaks.html:
 Added.
* 
LayoutTests/accessibility/mac/range-for-line-with-block-line-breaks-expected.txt:
 Added.
* LayoutTests/accessibility/mac/range-for-line-with-block-line-breaks.html: 
Added.
* Source/WebCore/accessibility/AXTextMarker.cpp:
(WebCore::AXTextMarker::characterRangeForLine const):
(WebCore::AXTextMarker::lineNumberForIndex const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to