mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
cangc fixes in node.rs (#33984)
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
3ed778150f
commit
bb4932026c
97 changed files with 1038 additions and 534 deletions
|
@ -10,6 +10,7 @@ use crate::dom::bindings::str::DOMString;
|
|||
use crate::dom::characterdata::CharacterData;
|
||||
use crate::dom::document::Document;
|
||||
use crate::dom::node::Node;
|
||||
use crate::script_runtime::CanGc;
|
||||
|
||||
/// An HTML processing instruction node.
|
||||
#[dom_struct]
|
||||
|
@ -34,10 +35,12 @@ impl ProcessingInstruction {
|
|||
target: DOMString,
|
||||
data: DOMString,
|
||||
document: &Document,
|
||||
can_gc: CanGc,
|
||||
) -> DomRoot<ProcessingInstruction> {
|
||||
Node::reflect_node(
|
||||
Box::new(ProcessingInstruction::new_inherited(target, data, document)),
|
||||
document,
|
||||
can_gc,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue