mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Move DOMString back to script
This entirely removes the 'non-geckolib' feature of the util crate.
This commit is contained in:
parent
7b467ee52d
commit
cdc7bca944
188 changed files with 501 additions and 529 deletions
|
@ -10,6 +10,7 @@ use dom::bindings::codegen::Bindings::HTMLTextAreaElementBinding::HTMLTextAreaEl
|
|||
use dom::bindings::codegen::Bindings::NodeBinding::NodeMethods;
|
||||
use dom::bindings::inheritance::Castable;
|
||||
use dom::bindings::js::{LayoutJS, Root};
|
||||
use dom::bindings::str::DOMString;
|
||||
use dom::document::Document;
|
||||
use dom::element::RawLayoutElementHelpers;
|
||||
use dom::element::{AttributeMutation, Element};
|
||||
|
@ -30,7 +31,6 @@ use std::ops::Range;
|
|||
use string_cache::Atom;
|
||||
use style::element_state::*;
|
||||
use textinput::{KeyReaction, Lines, TextInput, SelectionDirection};
|
||||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct HTMLTextAreaElement {
|
||||
|
@ -332,8 +332,8 @@ impl VirtualMethods for HTMLTextAreaElement {
|
|||
|
||||
fn parse_plain_attribute(&self, name: &Atom, value: DOMString) -> AttrValue {
|
||||
match *name {
|
||||
atom!("cols") => AttrValue::from_limited_u32(value, DEFAULT_COLS),
|
||||
atom!("rows") => AttrValue::from_limited_u32(value, DEFAULT_ROWS),
|
||||
atom!("cols") => AttrValue::from_limited_u32(value.into(), DEFAULT_COLS),
|
||||
atom!("rows") => AttrValue::from_limited_u32(value.into(), DEFAULT_ROWS),
|
||||
_ => self.super_type().unwrap().parse_plain_attribute(name, value),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue