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
|
@ -40,12 +40,18 @@ impl HTMLQuoteElement {
|
|||
}
|
||||
}
|
||||
|
||||
impl HTMLQuoteElement {
|
||||
pub fn Cite(&self) -> DOMString {
|
||||
pub trait HTMLQuoteElementMethods {
|
||||
fn Cite(&self) -> DOMString;
|
||||
fn SetCite(&self, _cite: DOMString) -> ErrorResult;
|
||||
}
|
||||
|
||||
impl<'a> HTMLQuoteElementMethods for JSRef<'a, HTMLQuoteElement> {
|
||||
fn Cite(&self) -> DOMString {
|
||||
~""
|
||||
}
|
||||
|
||||
pub fn SetCite(&self, _cite: DOMString) -> ErrorResult {
|
||||
fn SetCite(&self, _cite: DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue