mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Format script component
This commit is contained in:
parent
2ca7a13473
commit
c37a345dc9
357 changed files with 25485 additions and 18076 deletions
|
@ -19,20 +19,30 @@ pub struct ProcessingInstruction {
|
|||
}
|
||||
|
||||
impl ProcessingInstruction {
|
||||
fn new_inherited(target: DOMString, data: DOMString, document: &Document) -> ProcessingInstruction {
|
||||
fn new_inherited(
|
||||
target: DOMString,
|
||||
data: DOMString,
|
||||
document: &Document,
|
||||
) -> ProcessingInstruction {
|
||||
ProcessingInstruction {
|
||||
characterdata: CharacterData::new_inherited(data, document),
|
||||
target: target
|
||||
target: target,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new(target: DOMString, data: DOMString, document: &Document) -> DomRoot<ProcessingInstruction> {
|
||||
Node::reflect_node(Box::new(ProcessingInstruction::new_inherited(target, data, document)),
|
||||
document, ProcessingInstructionBinding::Wrap)
|
||||
pub fn new(
|
||||
target: DOMString,
|
||||
data: DOMString,
|
||||
document: &Document,
|
||||
) -> DomRoot<ProcessingInstruction> {
|
||||
Node::reflect_node(
|
||||
Box::new(ProcessingInstruction::new_inherited(target, data, document)),
|
||||
document,
|
||||
ProcessingInstructionBinding::Wrap,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
impl ProcessingInstruction {
|
||||
pub fn target(&self) -> &DOMString {
|
||||
&self.target
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue