diff options
author | Florian Merz <flomerz@gmail.com> | 2015-11-03 21:55:41 +0100 |
---|---|---|
committer | Florian Merz <flomerz@gmail.com> | 2015-11-03 21:55:41 +0100 |
commit | c26b80cf4fce09755d3b97b982d4a1125e1c6c1d (patch) | |
tree | 38665b94c2f48d2f10b136b2e886958cfdd85af8 /components/script/dom/htmltableelement.rs | |
parent | 3fdaa6e3f32f6996c416e75119177b98d404adb2 (diff) | |
download | servo-c26b80cf4fce09755d3b97b982d4a1125e1c6c1d.tar.gz servo-c26b80cf4fce09755d3b97b982d4a1125e1c6c1d.zip |
add get_insertion_point_index_for_layout
This resolves #8107
Previously the index of the insetion point for a password input was
calculated using the scrambled string based on the edit point in the
raw string. That could lead to a wrong position of the caret. This
commit changes this behavior to calculate the insertion point using
the raw string.
This is done in
`HTMLInputElementHelpers::get_insertion_point_index_for_layout`
and relies on a 1:1 mapping of the chars in the raw input to the
scrambled chars (currently bullets) in the password input.
Diffstat (limited to 'components/script/dom/htmltableelement.rs')
0 files changed, 0 insertions, 0 deletions