diff options
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 102 |
1 files changed, 51 insertions, 51 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 8024f2a04a7..636c5c6e37e 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -6,55 +6,55 @@ use app_units::Au; use devtools_traits::NodeInfo; -use document_loader::DocumentLoader; -use dom::bindings::cell::DomRefCell; -use dom::bindings::codegen::Bindings::CharacterDataBinding::CharacterDataMethods; -use dom::bindings::codegen::Bindings::DocumentBinding::DocumentMethods; -use dom::bindings::codegen::Bindings::ElementBinding::ElementMethods; -use dom::bindings::codegen::Bindings::HTMLCollectionBinding::HTMLCollectionMethods; -use dom::bindings::codegen::Bindings::NodeBinding::{NodeConstants, NodeMethods}; -use dom::bindings::codegen::Bindings::NodeListBinding::NodeListMethods; -use dom::bindings::codegen::Bindings::ProcessingInstructionBinding::ProcessingInstructionMethods; -use dom::bindings::codegen::Bindings::WindowBinding::WindowMethods; -use dom::bindings::codegen::UnionTypes::NodeOrString; -use dom::bindings::conversions::{self, DerivedFrom}; -use dom::bindings::error::{Error, ErrorResult, Fallible}; -use dom::bindings::inheritance::{Castable, CharacterDataTypeId, ElementTypeId}; -use dom::bindings::inheritance::{EventTargetTypeId, HTMLElementTypeId, NodeTypeId}; -use dom::bindings::inheritance::{SVGElementTypeId, SVGGraphicsElementTypeId}; -use dom::bindings::reflector::{DomObject, reflect_dom_object}; -use dom::bindings::root::{Dom, DomRoot, LayoutDom, MutNullableDom, RootedReference}; -use dom::bindings::str::{DOMString, USVString}; -use dom::bindings::xmlname::namespace_from_domstring; -use dom::characterdata::{CharacterData, LayoutCharacterDataHelpers}; -use dom::cssstylesheet::CSSStyleSheet; -use dom::customelementregistry::{CallbackReaction, try_upgrade_element}; -use dom::document::{Document, DocumentSource, HasBrowsingContext, IsHTMLDocument}; -use dom::documentfragment::DocumentFragment; -use dom::documenttype::DocumentType; -use dom::element::{CustomElementCreationMode, Element, ElementCreator}; -use dom::eventtarget::EventTarget; -use dom::globalscope::GlobalScope; -use dom::htmlbodyelement::HTMLBodyElement; -use dom::htmlcanvaselement::{HTMLCanvasElement, LayoutHTMLCanvasElementHelpers}; -use dom::htmlcollection::HTMLCollection; -use dom::htmlelement::HTMLElement; -use dom::htmliframeelement::{HTMLIFrameElement, HTMLIFrameElementLayoutMethods}; -use dom::htmlimageelement::{HTMLImageElement, LayoutHTMLImageElementHelpers}; -use dom::htmlinputelement::{HTMLInputElement, LayoutHTMLInputElementHelpers}; -use dom::htmllinkelement::HTMLLinkElement; -use dom::htmlmediaelement::{HTMLMediaElement, LayoutHTMLMediaElementHelpers}; -use dom::htmlmetaelement::HTMLMetaElement; -use dom::htmlstyleelement::HTMLStyleElement; -use dom::htmltextareaelement::{HTMLTextAreaElement, LayoutHTMLTextAreaElementHelpers}; -use dom::mutationobserver::{Mutation, MutationObserver, RegisteredObserver}; -use dom::nodelist::NodeList; -use dom::processinginstruction::ProcessingInstruction; -use dom::range::WeakRangeVec; -use dom::svgsvgelement::{SVGSVGElement, LayoutSVGSVGElementHelpers}; -use dom::text::Text; -use dom::virtualmethods::{VirtualMethods, vtable_for}; -use dom::window::Window; +use crate::document_loader::DocumentLoader; +use crate::dom::bindings::cell::DomRefCell; +use crate::dom::bindings::codegen::Bindings::CharacterDataBinding::CharacterDataMethods; +use crate::dom::bindings::codegen::Bindings::DocumentBinding::DocumentMethods; +use crate::dom::bindings::codegen::Bindings::ElementBinding::ElementMethods; +use crate::dom::bindings::codegen::Bindings::HTMLCollectionBinding::HTMLCollectionMethods; +use crate::dom::bindings::codegen::Bindings::NodeBinding::{NodeConstants, NodeMethods}; +use crate::dom::bindings::codegen::Bindings::NodeListBinding::NodeListMethods; +use crate::dom::bindings::codegen::Bindings::ProcessingInstructionBinding::ProcessingInstructionMethods; +use crate::dom::bindings::codegen::Bindings::WindowBinding::WindowMethods; +use crate::dom::bindings::codegen::UnionTypes::NodeOrString; +use crate::dom::bindings::conversions::{self, DerivedFrom}; +use crate::dom::bindings::error::{Error, ErrorResult, Fallible}; +use crate::dom::bindings::inheritance::{Castable, CharacterDataTypeId, ElementTypeId}; +use crate::dom::bindings::inheritance::{EventTargetTypeId, HTMLElementTypeId, NodeTypeId}; +use crate::dom::bindings::inheritance::{SVGElementTypeId, SVGGraphicsElementTypeId}; +use crate::dom::bindings::reflector::{DomObject, reflect_dom_object}; +use crate::dom::bindings::root::{Dom, DomRoot, LayoutDom, MutNullableDom, RootedReference}; +use crate::dom::bindings::str::{DOMString, USVString}; +use crate::dom::bindings::xmlname::namespace_from_domstring; +use crate::dom::characterdata::{CharacterData, LayoutCharacterDataHelpers}; +use crate::dom::cssstylesheet::CSSStyleSheet; +use crate::dom::customelementregistry::{CallbackReaction, try_upgrade_element}; +use crate::dom::document::{Document, DocumentSource, HasBrowsingContext, IsHTMLDocument}; +use crate::dom::documentfragment::DocumentFragment; +use crate::dom::documenttype::DocumentType; +use crate::dom::element::{CustomElementCreationMode, Element, ElementCreator}; +use crate::dom::eventtarget::EventTarget; +use crate::dom::globalscope::GlobalScope; +use crate::dom::htmlbodyelement::HTMLBodyElement; +use crate::dom::htmlcanvaselement::{HTMLCanvasElement, LayoutHTMLCanvasElementHelpers}; +use crate::dom::htmlcollection::HTMLCollection; +use crate::dom::htmlelement::HTMLElement; +use crate::dom::htmliframeelement::{HTMLIFrameElement, HTMLIFrameElementLayoutMethods}; +use crate::dom::htmlimageelement::{HTMLImageElement, LayoutHTMLImageElementHelpers}; +use crate::dom::htmlinputelement::{HTMLInputElement, LayoutHTMLInputElementHelpers}; +use crate::dom::htmllinkelement::HTMLLinkElement; +use crate::dom::htmlmediaelement::{HTMLMediaElement, LayoutHTMLMediaElementHelpers}; +use crate::dom::htmlmetaelement::HTMLMetaElement; +use crate::dom::htmlstyleelement::HTMLStyleElement; +use crate::dom::htmltextareaelement::{HTMLTextAreaElement, LayoutHTMLTextAreaElementHelpers}; +use crate::dom::mutationobserver::{Mutation, MutationObserver, RegisteredObserver}; +use crate::dom::nodelist::NodeList; +use crate::dom::processinginstruction::ProcessingInstruction; +use crate::dom::range::WeakRangeVec; +use crate::dom::svgsvgelement::{SVGSVGElement, LayoutSVGSVGElementHelpers}; +use crate::dom::text::Text; +use crate::dom::virtualmethods::{VirtualMethods, vtable_for}; +use crate::dom::window::Window; use dom_struct::dom_struct; use euclid::{Point2D, Vector2D, Rect, Size2D}; use html5ever::{Prefix, Namespace, QualName}; @@ -67,7 +67,7 @@ use ref_slice::ref_slice; use script_layout_interface::{HTMLCanvasData, HTMLMediaData, LayoutElementType, LayoutNodeType}; use script_layout_interface::{OpaqueStyleAndLayoutData, SVGSVGData, TrustedNodeAddress}; use script_layout_interface::message::Msg; -use script_thread::ScriptThread; +use crate::script_thread::ScriptThread; use script_traits::DocumentActivity; use script_traits::UntrustedNodeAddress; use selectors::matching::{matches_selector_list, MatchingContext, MatchingMode}; @@ -1081,7 +1081,7 @@ pub trait LayoutNodeHelpers { unsafe fn children_count(&self) -> u32; unsafe fn get_style_and_layout_data(&self) -> Option<OpaqueStyleAndLayoutData>; - unsafe fn init_style_and_layout_data(&self, OpaqueStyleAndLayoutData); + unsafe fn init_style_and_layout_data(&self, _: OpaqueStyleAndLayoutData); unsafe fn take_style_and_layout_data(&self) -> OpaqueStyleAndLayoutData; fn text_content(&self) -> String; |