mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Address review comments.
This commit is contained in:
parent
7b3e6d1f21
commit
0f2d0b1dc3
99 changed files with 388 additions and 380 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
use dom::bindings::codegen::InheritTypes::{DocumentFragmentDerived, NodeCast};
|
||||
use dom::bindings::codegen::BindingDeclarations::DocumentFragmentBinding;
|
||||
use dom::bindings::js::{JS, JSRef, Temporary};
|
||||
use dom::bindings::js::{JSRef, Temporary};
|
||||
use dom::bindings::error::Fallible;
|
||||
use dom::document::Document;
|
||||
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
|
||||
|
@ -28,14 +28,14 @@ impl DocumentFragmentDerived for EventTarget {
|
|||
|
||||
impl DocumentFragment {
|
||||
/// Creates a new DocumentFragment.
|
||||
pub fn new_inherited(document: JS<Document>) -> DocumentFragment {
|
||||
pub fn new_inherited(document: &JSRef<Document>) -> DocumentFragment {
|
||||
DocumentFragment {
|
||||
node: Node::new_inherited(DocumentFragmentNodeTypeId, document),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new(document: &JSRef<Document>) -> Temporary<DocumentFragment> {
|
||||
let node = DocumentFragment::new_inherited(document.unrooted());
|
||||
let node = DocumentFragment::new_inherited(document);
|
||||
Node::reflect_node(~node, document, DocumentFragmentBinding::Wrap)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue