AccessibilityObject::visibleCharacterRange sometimes returns content from the previous viewport boundary. This is a regression from https://bugs.webkit.org/show_bug.cgi?id=243286.
<rdar://problem/98153603>
Created attachment 461410 [details] Patch
rdar://96884540
Comment on attachment 461410 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=461410&action=review > Source/WebCore/accessibility/AccessibilityObject.cpp:848 > + if (lineStartBoundaryPoint && lineStartBoundaryPoint->container.ptr() == startBoundary.container.ptr()) { can you not do equality check on a RetainPtr ?
(In reply to chris fleizach from comment #4) > Comment on attachment 461410 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=461410&action=review > > > Source/WebCore/accessibility/AccessibilityObject.cpp:848 > > + if (lineStartBoundaryPoint && lineStartBoundaryPoint->container.ptr() == startBoundary.container.ptr()) { > > can you not do equality check on a RetainPtr ? These are Ref<Node>s, and unfortunately Ref's don't currently have an operator== implementation.
Committed 253385@main (2559a63f0d9c): <https://commits.webkit.org/253385@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 461410 [details].