Bug 196380

Summary: getBoundingClientRect always returns empty rect on a collapsed range
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, dbates, esprehn+autocc, ews-watchlist, hey.hgl, kangil.han, koivisto, mmaxfield, simon.fraser, thorton, wenson_hsieh, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=197042
Attachments:
Description Flags
Fixes the bug wenson_hsieh: review+

Description Ryosuke Niwa 2019-03-28 16:50:34 PDT
When Range is collapsed, we always return a rect at (0, 0) with zero width and height.

<rdar://problem/42257134>
Comment 1 Ryosuke Niwa 2019-03-28 16:56:53 PDT
Created attachment 366225 [details]
Fixes the bug
Comment 2 Ryosuke Niwa 2019-03-28 18:56:53 PDT
Committed r243635: <https://trac.webkit.org/changeset/243635>
Comment 3 Alexey Proskuryakov 2022-09-18 17:04:42 PDT
*** Bug 138949 has been marked as a duplicate of this bug. ***