mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Fixed tidy-test errors
This commit is contained in:
parent
83adc7b769
commit
b08d455b75
1 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
use dom::bindings::codegen::Bindings::HTMLAnchorElementBinding;
|
use dom::bindings::codegen::Bindings::HTMLAnchorElementBinding;
|
||||||
use dom::bindings::codegen::Bindings::HTMLAreaElementBinding;
|
use dom::bindings::codegen::Bindings::HTMLAreaElementBinding;
|
||||||
use dom::bindings::codegen::Bindings::HTMLAudioElementBinding;
|
use dom::bindings::codegen::Bindings::HTMLAudioElementBinding;
|
||||||
|
@ -73,12 +77,12 @@ use dom::customelementregistry::ConstructionStackEntry;
|
||||||
use dom::element::{CustomElementState, Element, ElementCreator};
|
use dom::element::{CustomElementState, Element, ElementCreator};
|
||||||
use dom::htmlelement::HTMLElement;
|
use dom::htmlelement::HTMLElement;
|
||||||
use dom::window::Window;
|
use dom::window::Window;
|
||||||
use html5ever::interface::QualName;
|
|
||||||
use html5ever::LocalName;
|
use html5ever::LocalName;
|
||||||
use js::glue::{UnwrapObject};
|
use html5ever::interface::QualName;
|
||||||
use js::jsapi::HandleObject;
|
use js::glue::UnwrapObject;
|
||||||
use js::jsapi::{CallArgs, CurrentGlobalOrNull};
|
use js::jsapi::{CallArgs, CurrentGlobalOrNull};
|
||||||
use js::jsapi::{JSAutoCompartment, JSContext};
|
use js::jsapi::{JSAutoCompartment, JSContext};
|
||||||
|
use js::jsapi::HandleObject;
|
||||||
use js::jsapi::MutableHandleObject;
|
use js::jsapi::MutableHandleObject;
|
||||||
use script_thread::ScriptThread;
|
use script_thread::ScriptThread;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
@ -169,8 +173,8 @@ pub unsafe fn html_constructor<T>(window: &Window, call_args: &CallArgs) -> Fall
|
||||||
Some(ConstructionStackEntry::AlreadyConstructedMarker) => Err(Error::InvalidState),
|
Some(ConstructionStackEntry::AlreadyConstructedMarker) => Err(Error::InvalidState),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the constructor object for the element associated with the given local name.
|
/// Returns the constructor object for the element associated with the given local name.
|
||||||
/// This list should only include elements marked with the [HTMLConstructor] extended attribute.
|
/// This list should only include elements marked with the [HTMLConstructor] extended attribute.
|
||||||
pub fn get_constructor_object_from_local_name(name: LocalName,
|
pub fn get_constructor_object_from_local_name(name: LocalName,
|
||||||
cx: *mut JSContext,
|
cx: *mut JSContext,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue