mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
parent
e958d92be6
commit
4cf46bff2d
51 changed files with 97 additions and 137 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue