Move WebIDL methods to traits implemented by JSRef types.

This commit is contained in:
Josh Matthews 2014-04-10 21:29:54 -04:00
parent dfdda0098a
commit 76783b029e
106 changed files with 3644 additions and 1912 deletions

View file

@ -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()
}
}