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+

Ryosuke Niwa
Reported 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>
Attachments
Fixes the bug (4.13 KB, patch)
2019-03-28 16:56 PDT, Ryosuke Niwa
wenson_hsieh: review+
Ryosuke Niwa
Comment 1 2019-03-28 16:56:53 PDT
Created attachment 366225 [details] Fixes the bug
Ryosuke Niwa
Comment 2 2019-03-28 18:56:53 PDT
Alexey Proskuryakov
Comment 3 2022-09-18 17:04:42 PDT
*** Bug 138949 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.