Skip to content
Permalink
Browse files

Convert the remaining ElementHelpers methods to take self

  • Loading branch information
Cameron Zwarich
Cameron Zwarich committed Oct 1, 2014
1 parent ccc5d97 commit 1581c383bb5171198004bcd29227d0b7de080225
Showing with 4 additions and 4 deletions.
  1. +4 −4 components/script/dom/element.rs
@@ -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;
}
@@ -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
}

0 comments on commit 1581c38

Please sign in to comment.
You can’t perform that action at this time.