RESOLVED WONTFIX 250280
Simplify computation of text selection top/bottom in Legacy Root Inline
https://bugs.webkit.org/show_bug.cgi?id=250280
Summary Simplify computation of text selection top/bottom in Legacy Root Inline
Ahmad Saleem
Reported 2023-01-07 14:39:58 PST
Hi Team, This is another Blink commit and it is with own merits and issue in terms of text selection but just wanted to raise it for input purposes before doing PR: Blink Commit - https://chromium.googlesource.com/chromium/src.git/+/e1ac96c0207dd18057fc1f385362b1bee52bb26f WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/rendering/LegacyRootInlineBox.cpp#513 & https://searchfox.org/wubkat/source/Source/WebCore/rendering/LegacyRootInlineBox.cpp#580 One of Test Case - https://jsfiddle.net/p7hged1y/show (from Bug Report) & https://jsfiddle.net/265wb09s/1/show (latter show that the text selection covers part of second line compared to Chrome Canary 111 and Firefox Nightly 110) in Safari 16.2. Appreciate if someone can share their input whether it is good idea to merge this or not because as per Chrome bug history, it is lesser devil's approach where neither solutions are perfect. Thanks!
Attachments
Radar WebKit Bug Importer
Comment 1 2023-01-14 14:40:16 PST
Ahmad Saleem
Comment 2 2024-08-31 15:18:30 PDT
276347@main <- tackled and removed the code.
Ahmad Saleem
Comment 3 2024-08-31 16:00:39 PDT
Although we can do still part of std::min() / std::max(): return std::max(selectionBottom, nextRootBox()->selectionTop()); but main clean-up is already done.
Note You need to log in before you can comment on or make changes to this bug.