diff options
Diffstat (limited to 'components/script/dom/element.rs')
-rw-r--r-- | components/script/dom/element.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index 9b74c0cb5c9..943e4139dde 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -23,7 +23,7 @@ use dom::bindings::codegen::InheritTypes::{HTMLTableRowElementDerived, HTMLTextA use dom::bindings::codegen::InheritTypes::{HTMLTableSectionElementDerived, NodeCast}; use dom::bindings::error::{ErrorResult, Fallible}; use dom::bindings::error::Error::{NamespaceError, InvalidCharacter, Syntax}; -use dom::bindings::js::{MutNullableJS, JS, JSRef, Temporary, TemporaryPushable}; +use dom::bindings::js::{MutNullableJS, JS, JSRef, LayoutJS, Temporary, TemporaryPushable}; use dom::bindings::js::{OptionalRootable, Root}; use dom::bindings::utils::xml_name_type; use dom::bindings::utils::XMLName::{QName, Name, InvalidXMLName}; @@ -376,13 +376,13 @@ pub trait LayoutElementHelpers { unsafe fn has_attr_for_layout(&self, namespace: &Namespace, name: &Atom) -> bool; } -impl LayoutElementHelpers for JS<Element> { +impl LayoutElementHelpers for LayoutJS<Element> { #[inline] unsafe fn html_element_in_html_document_for_layout(&self) -> bool { if (*self.unsafe_get()).namespace != ns!(HTML) { return false } - let node: JS<Node> = self.transmute_copy(); + let node: LayoutJS<Node> = self.transmute_copy(); node.owner_doc_for_layout().is_html_document_for_layout() } |