mirror of
https://github.com/servo/servo.git
synced 2025-09-20 20:00:13 +01:00
change comments to complete sentences
This commit is contained in:
parent
c26b80cf4f
commit
a918df9e6f
1 changed files with 3 additions and 3 deletions
|
@ -170,7 +170,7 @@ impl LayoutHTMLInputElementHelpers for LayoutJS<HTMLInputElement> {
|
||||||
InputType::InputReset => get_raw_attr_value(self).unwrap_or_else(|| DEFAULT_RESET_VALUE.to_owned()),
|
InputType::InputReset => get_raw_attr_value(self).unwrap_or_else(|| DEFAULT_RESET_VALUE.to_owned()),
|
||||||
InputType::InputPassword => {
|
InputType::InputPassword => {
|
||||||
let raw = get_raw_textinput_value(self);
|
let raw = get_raw_textinput_value(self);
|
||||||
// the implementation of get_insertion_point_index_for_layout expects a 1:1 mapping of chars
|
// The implementation of get_insertion_point_index_for_layout expects a 1:1 mapping of chars.
|
||||||
raw.chars().map(|_| '●').collect()
|
raw.chars().map(|_| '●').collect()
|
||||||
}
|
}
|
||||||
_ => get_raw_textinput_value(self),
|
_ => get_raw_textinput_value(self),
|
||||||
|
@ -193,8 +193,8 @@ impl LayoutHTMLInputElementHelpers for LayoutJS<HTMLInputElement> {
|
||||||
raw.char_indices()))
|
raw.char_indices()))
|
||||||
}
|
}
|
||||||
InputType::InputPassword => {
|
InputType::InputPassword => {
|
||||||
// use the raw textinput to get the index as long as we use a 1:1 char mapping
|
// Use the raw textinput to get the index as long as we use a 1:1 char mapping
|
||||||
// in get_input_value_for_layout
|
// in get_input_value_for_layout.
|
||||||
let raw = get_raw_textinput_value(self);
|
let raw = get_raw_textinput_value(self);
|
||||||
Some(search_index((*self.unsafe_get()).textinput.borrow_for_layout().edit_point.index,
|
Some(search_index((*self.unsafe_get()).textinput.borrow_for_layout().edit_point.index,
|
||||||
raw.char_indices()))
|
raw.char_indices()))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue