diff options
author | Bogdan Cuza <bogdan.cuza@hotmail.com> | 2015-07-21 18:53:01 +0300 |
---|---|---|
committer | Bogdan <boghison22@gmail.com> | 2015-07-28 13:28:41 +0200 |
commit | 233a769c67738942a0ac47c15465e36891883c3b (patch) | |
tree | f271b64c29addb4826feb098a03a0c6ce07eb4b3 /components/script/dom/filereader.rs | |
parent | f039827dcd618d1731f9cc0d91202690c28f10d1 (diff) | |
download | servo-233a769c67738942a0ac47c15465e36891883c3b.tar.gz servo-233a769c67738942a0ac47c15465e36891883c3b.zip |
Add spec links
Diffstat (limited to 'components/script/dom/filereader.rs')
-rw-r--r-- | components/script/dom/filereader.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script/dom/filereader.rs b/components/script/dom/filereader.rs index 3c89875ff09..09f6c83a99e 100644 --- a/components/script/dom/filereader.rs +++ b/components/script/dom/filereader.rs @@ -280,7 +280,7 @@ impl<'a> FileReaderMethods for &'a FileReader { event_handler!(loadend, GetOnloadend, SetOnloadend); //TODO https://w3c.github.io/FileAPI/#dfn-readAsArrayBuffer - //https://w3c.github.io/FileAPI/#dfn-readAsDataURL + // https://w3c.github.io/FileAPI/#dfn-readAsDataURL fn ReadAsDataURL(self, blob: &Blob) -> ErrorResult { let global = self.global.root(); // Step 1 @@ -340,14 +340,17 @@ impl<'a> FileReaderMethods for &'a FileReader { self.dispatch_progress_event("loadend".to_owned(), 0, None); } + // https://w3c.github.io/FileAPI/#dfn-error fn GetError(self) -> Option<Root<DOMException>> { self.error.get().map(|error| error.root()) } + // https://w3c.github.io/FileAPI/#dfn-result fn GetResult(self) -> Option<DOMString> { self.result.borrow().clone() } + // https://w3c.github.io/FileAPI/#dfn-readyState fn ReadyState(self) -> u16 { self.ready_state.get() as u16 } |