mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Move WebIDL methods to traits implemented by JSRef types.
This commit is contained in:
parent
dfdda0098a
commit
76783b029e
106 changed files with 3644 additions and 1912 deletions
|
@ -41,8 +41,13 @@ impl ProcessingInstruction {
|
|||
}
|
||||
}
|
||||
|
||||
impl ProcessingInstruction {
|
||||
pub fn Target(&self) -> DOMString {
|
||||
pub trait ProcessingInstructionMethods {
|
||||
fn Target(&self) -> DOMString;
|
||||
}
|
||||
|
||||
impl<'a> ProcessingInstructionMethods for JSRef<'a, ProcessingInstruction> {
|
||||
fn Target(&self) -> DOMString {
|
||||
self.target.clone()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue