Skip to content

Commit

Permalink
Convert the remaining ElementHelpers methods to take self
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Zwarich committed Oct 1, 2014
1 parent ccc5d97 commit 1581c38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/script/dom/element.rs
Expand Up @@ -239,8 +239,8 @@ impl LayoutElementHelpers for JS<Element> {

pub trait ElementHelpers<'a> {
fn html_element_in_html_document(self) -> bool;
fn get_local_name(&self) -> &'a Atom;
fn get_namespace(&self) -> &'a Namespace;
fn get_local_name(self) -> &'a Atom;
fn get_namespace(self) -> &'a Namespace;
fn summarize(self) -> Vec<AttrInfo>;
fn is_void(self) -> bool;
}
Expand All @@ -251,11 +251,11 @@ impl<'a> ElementHelpers<'a> for JSRef<'a, Element> {
self.namespace == ns!(HTML) && node.is_in_html_doc()
}

fn get_local_name(&self) -> &'a Atom {
fn get_local_name(self) -> &'a Atom {
&self.extended_deref().local_name
}

fn get_namespace(&self) -> &'a Namespace {
fn get_namespace(self) -> &'a Namespace {
&self.extended_deref().namespace
}

Expand Down

0 comments on commit 1581c38

Please sign in to comment.