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::BindingDeclarations::ProcessingInstructionBinding;
|
||||
use dom::bindings::codegen::InheritTypes::ProcessingInstructionDerived;
|
||||
use dom::bindings::js::{JS, JSRef, Temporary};
|
||||
use dom::bindings::js::{JSRef, Temporary};
|
||||
use dom::characterdata::CharacterData;
|
||||
use dom::document::Document;
|
||||
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
|
||||
|
@ -28,7 +28,7 @@ impl ProcessingInstructionDerived for EventTarget {
|
|||
}
|
||||
|
||||
impl ProcessingInstruction {
|
||||
pub fn new_inherited(target: DOMString, data: DOMString, document: JS<Document>) -> ProcessingInstruction {
|
||||
pub fn new_inherited(target: DOMString, data: DOMString, document: &JSRef<Document>) -> ProcessingInstruction {
|
||||
ProcessingInstruction {
|
||||
characterdata: CharacterData::new_inherited(ProcessingInstructionNodeTypeId, data, document),
|
||||
target: target
|
||||
|
@ -36,7 +36,7 @@ impl ProcessingInstruction {
|
|||
}
|
||||
|
||||
pub fn new(target: DOMString, data: DOMString, document: &JSRef<Document>) -> Temporary<ProcessingInstruction> {
|
||||
let node = ProcessingInstruction::new_inherited(target, data, document.unrooted());
|
||||
let node = ProcessingInstruction::new_inherited(target, data, document);
|
||||
Node::reflect_node(~node, document, ProcessingInstructionBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue