diff options
author | Florian Merz <flomerz@gmail.com> | 2015-11-03 23:53:34 +0100 |
---|---|---|
committer | Florian Merz <flomerz@gmail.com> | 2015-11-03 23:53:34 +0100 |
commit | a918df9e6f55be030f646ffc7f0dd38555367968 (patch) | |
tree | a921406350b9214f11a7a7a6ef482af2985222bd /components/script/dom/htmlinputelement.rs | |
parent | c26b80cf4fce09755d3b97b982d4a1125e1c6c1d (diff) | |
download | servo-a918df9e6f55be030f646ffc7f0dd38555367968.tar.gz servo-a918df9e6f55be030f646ffc7f0dd38555367968.zip |
change comments to complete sentences
Diffstat (limited to 'components/script/dom/htmlinputelement.rs')
-rw-r--r-- | components/script/dom/htmlinputelement.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs index 1b35fbdc468..c7b9dcbc435 100644 --- a/components/script/dom/htmlinputelement.rs +++ b/components/script/dom/htmlinputelement.rs @@ -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::InputPassword => { 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() } _ => get_raw_textinput_value(self), @@ -193,8 +193,8 @@ impl LayoutHTMLInputElementHelpers for LayoutJS<HTMLInputElement> { raw.char_indices())) } InputType::InputPassword => { - // use the raw textinput to get the index as long as we use a 1:1 char mapping - // in get_input_value_for_layout + // Use the raw textinput to get the index as long as we use a 1:1 char mapping + // in get_input_value_for_layout. let raw = get_raw_textinput_value(self); Some(search_index((*self.unsafe_get()).textinput.borrow_for_layout().edit_point.index, raw.char_indices())) |