mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Replaced DOMString constructor by conversion functions.
Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
This commit is contained in:
parent
736323a779
commit
84bde75b42
64 changed files with 256 additions and 254 deletions
|
@ -21,7 +21,6 @@ use dom::nodelist::NodeList;
|
|||
use dom::validitystate::ValidityState;
|
||||
use dom::virtualmethods::VirtualMethods;
|
||||
use selectors::states::*;
|
||||
use std::borrow::ToOwned;
|
||||
use string_cache::Atom;
|
||||
use util::str::DOMString;
|
||||
|
||||
|
@ -153,11 +152,11 @@ impl HTMLSelectElementMethods for HTMLSelectElement {
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-select-type
|
||||
fn Type(&self) -> DOMString {
|
||||
DOMString(if self.Multiple() {
|
||||
DOMString::from(if self.Multiple() {
|
||||
"select-multiple"
|
||||
} else {
|
||||
"select-one"
|
||||
}.to_owned())
|
||||
})
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-lfe-labels
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue