mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
Implement the no-argument Blob constructor.
This commit is contained in:
parent
9046085506
commit
40fde80e1a
2 changed files with 10 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use dom::bindings::utils::{Reflectable, Reflector};
|
||||
use dom::bindings::utils::Fallible;
|
||||
use dom::bindings::codegen::BlobBinding;
|
||||
use dom::window::Window;
|
||||
|
||||
|
@ -33,6 +34,12 @@ impl Blob {
|
|||
}
|
||||
}
|
||||
|
||||
impl Blob {
|
||||
pub fn Constructor(window: @mut Window) -> Fallible<@mut Blob> {
|
||||
Ok(Blob::new(window))
|
||||
}
|
||||
}
|
||||
|
||||
impl Reflectable for Blob {
|
||||
fn reflector<'a>(&'a self) -> &'a Reflector {
|
||||
&self.reflector_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue