mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Auto merge of #5800 - aweinstock314:x11-clipboard, r=jdm
...ed test_clipboard_paste to the "test-unit" suite. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5800) <!-- Reviewable:end -->
This commit is contained in:
commit
5cb1356e9e
11 changed files with 748 additions and 452 deletions
|
@ -30,6 +30,7 @@ use textinput::{TextInput, Lines, KeyReaction};
|
|||
use dom::virtualmethods::VirtualMethods;
|
||||
use dom::window::WindowHelpers;
|
||||
use script_task::{ScriptMsg, Runnable};
|
||||
use msg::constellation_msg::ConstellationChan;
|
||||
|
||||
use util::str::DOMString;
|
||||
use string_cache::Atom;
|
||||
|
@ -40,7 +41,7 @@ use std::cell::Cell;
|
|||
#[dom_struct]
|
||||
pub struct HTMLTextAreaElement {
|
||||
htmlelement: HTMLElement,
|
||||
textinput: DOMRefCell<TextInput>,
|
||||
textinput: DOMRefCell<TextInput<ConstellationChan>>,
|
||||
cols: Cell<u32>,
|
||||
rows: Cell<u32>,
|
||||
// https://html.spec.whatwg.org/multipage/#concept-textarea-dirty
|
||||
|
@ -95,7 +96,7 @@ impl HTMLTextAreaElement {
|
|||
let chan = document.window().root().r().constellation_chan();
|
||||
HTMLTextAreaElement {
|
||||
htmlelement: HTMLElement::new_inherited(HTMLElementTypeId::HTMLTextAreaElement, localName, prefix, document),
|
||||
textinput: DOMRefCell::new(TextInput::new(Lines::Multiple, "".to_owned(), Some(chan))),
|
||||
textinput: DOMRefCell::new(TextInput::new(Lines::Multiple, "".to_owned(), chan)),
|
||||
cols: Cell::new(DEFAULT_COLS),
|
||||
rows: Cell::new(DEFAULT_ROWS),
|
||||
value_changed: Cell::new(false),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue