mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Convert the remaining ElementHelpers methods to take self
This commit is contained in:
parent
ccc5d976f7
commit
1581c383bb
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue