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
Depends on:
Blocks:
 
Reported: 2019-03-28 16:50 PDT by Ryosuke Niwa
Modified: 2019-04-18 09:33 PDT (History)
11 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>