Bug 196380 - getBoundingClientRect always returns empty rect on a collapsed range
Summary: getBoundingClientRect always returns empty rect on a collapsed range
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords: InRadar
: 138949 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-03-28 16:50 PDT by Ryosuke Niwa
Modified: 2022-09-18 17:04 PDT (History)
12 users (show)

See Also:


Attachments
Fixes the bug (4.13 KB, patch)
2019-03-28 16:56 PDT, Ryosuke Niwa
wenson_hsieh: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***