mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update to string-cache 0.3
This commit is contained in:
parent
9fcc9d9d3f
commit
53b638c0e2
170 changed files with 1309 additions and 1050 deletions
|
@ -13,7 +13,7 @@ use dom::element::Element;
|
|||
use dom::eventtarget::EventTarget;
|
||||
use dom::htmlelement::HTMLElement;
|
||||
use dom::node::{Node, window_from_node};
|
||||
use string_cache::Atom;
|
||||
use html5ever_atoms::LocalName;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct HTMLDialogElement {
|
||||
|
@ -22,7 +22,7 @@ pub struct HTMLDialogElement {
|
|||
}
|
||||
|
||||
impl HTMLDialogElement {
|
||||
fn new_inherited(local_name: Atom,
|
||||
fn new_inherited(local_name: LocalName,
|
||||
prefix: Option<DOMString>,
|
||||
document: &Document) -> HTMLDialogElement {
|
||||
HTMLDialogElement {
|
||||
|
@ -33,7 +33,7 @@ impl HTMLDialogElement {
|
|||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
pub fn new(local_name: Atom,
|
||||
pub fn new(local_name: LocalName,
|
||||
prefix: Option<DOMString>,
|
||||
document: &Document) -> Root<HTMLDialogElement> {
|
||||
Node::reflect_node(box HTMLDialogElement::new_inherited(local_name, prefix, document),
|
||||
|
@ -67,7 +67,7 @@ impl HTMLDialogElementMethods for HTMLDialogElement {
|
|||
let win = window_from_node(self);
|
||||
|
||||
// Step 1 & 2
|
||||
if element.remove_attribute(&ns!(), &atom!("open")).is_none() {
|
||||
if element.remove_attribute(&ns!(), &local_name!("open")).is_none() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue