diff options
author | David Winslow <cdwinslow@gmail.com> | 2015-07-01 16:31:07 -0400 |
---|---|---|
committer | David Winslow <cdwinslow@gmail.com> | 2015-07-01 18:27:06 -0400 |
commit | 4cf46bff2d00f33a8866dc6880c8f6178fdf81a4 (patch) | |
tree | bfa5da23abf5d88edd40c26486e34b0cf40383d9 /components/script/textinput.rs | |
parent | e958d92be6c35234bcffce2d4e74ece585de02e4 (diff) | |
download | servo-4cf46bff2d00f33a8866dc6880c8f6178fdf81a4.tar.gz servo-4cf46bff2d00f33a8866dc6880c8f6178fdf81a4.zip |
Refactor #[jstraceable] to #[derive(JSTraceable)]
fixes #6524
Diffstat (limited to 'components/script/textinput.rs')
-rw-r--r-- | components/script/textinput.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/textinput.rs b/components/script/textinput.rs index 6c485ae2b96..c1fda44b5fb 100644 --- a/components/script/textinput.rs +++ b/components/script/textinput.rs @@ -21,8 +21,7 @@ pub enum Selection { NotSelected } -#[jstraceable] -#[derive(Copy, Clone)] +#[derive(JSTraceable, Copy, Clone)] pub struct TextPoint { /// 0-based line number pub line: usize, @@ -31,7 +30,7 @@ pub struct TextPoint { } /// Encapsulated state for handling keyboard input in a single or multiline text input control. -#[jstraceable] +#[derive(JSTraceable)] pub struct TextInput<T: ClipboardProvider> { /// Current text input content, split across lines without trailing '\n' lines: Vec<DOMString>, |