Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c42679e83219179f24c70a0a11464dad91f08cd0
      
https://github.com/WebKit/WebKit/commit/c42679e83219179f24c70a0a11464dad91f08cd0
  Author: Wenson Hsieh <wenson_hs...@apple.com>
  Date:   2025-08-19 (Tue, 19 Aug 2025)

  Changed paths:
    M Source/WebCore/page/text-extraction/TextExtraction.cpp

  Log Message:
  -----------
  REGRESSION(298609@main): Broke 
TestWebKitAPI.WKWebView.RequestAllTextRunsWithSubframes on Debug
https://bugs.webkit.org/show_bug.cgi?id=297605
rdar://158698208

Reviewed by Abrar Rahman Protyasha.

`RenderObject::absoluteTextRects` currently ignores both `UseVisibleBounds` and 
`IgnoreTinyRects`,
which `extractAllTextAndRectsRecursive` attempts to use (resulting in a debug 
assertion). Avoid this
assertion by using `absoluteBorderAndTextRects` instead.

* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::extractAllTextAndRectsRecursive):

Also, use `unionRectIgnoringZeroRects` here instead of iterating through the 
vector and calling
`unite`.

Canonical link: https://commits.webkit.org/298930@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