mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Merge BindingObject and Reflectable.
This commit is contained in:
parent
f585d218cb
commit
321e0373fa
23 changed files with 62 additions and 200 deletions
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use dom::bindings::utils::{Reflector, BindingObject, Reflectable};
|
||||
use dom::bindings::utils::{Reflectable, Reflector};
|
||||
use dom::bindings::codegen::BlobBinding;
|
||||
use script_task::{page_from_context};
|
||||
|
||||
|
@ -32,9 +32,7 @@ impl Reflectable for Blob {
|
|||
fn wrap_object_shared(@mut self, cx: *JSContext, scope: *JSObject) -> *JSObject {
|
||||
BlobBinding::Wrap(cx, scope, self)
|
||||
}
|
||||
}
|
||||
|
||||
impl BindingObject for Blob {
|
||||
fn GetParentObject(&self, cx: *JSContext) -> Option<@mut Reflectable> {
|
||||
let page = page_from_context(cx);
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue