mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove Reflectable::wrap_object_shared.
This commit is contained in:
parent
c693cb185c
commit
53731b62ae
23 changed files with 18 additions and 123 deletions
|
@ -5,7 +5,7 @@
|
|||
use dom::bindings::utils::{Reflectable, Reflector};
|
||||
use script_task::page_from_context;
|
||||
|
||||
use js::jsapi::{JSContext, JSObject};
|
||||
use js::jsapi::JSContext;
|
||||
|
||||
pub struct WindowProxy {
|
||||
reflector_: Reflector
|
||||
|
@ -17,10 +17,6 @@ impl WindowProxy {
|
|||
reflector_: Reflector::new()
|
||||
}
|
||||
}
|
||||
|
||||
pub fn init_wrapper(@mut self, cx: *JSContext, scope: *JSObject) {
|
||||
self.wrap_object_shared(cx, scope);
|
||||
}
|
||||
}
|
||||
|
||||
impl Reflectable for WindowProxy {
|
||||
|
@ -32,10 +28,6 @@ impl Reflectable for WindowProxy {
|
|||
&mut self.reflector_
|
||||
}
|
||||
|
||||
fn wrap_object_shared(@mut self, _cx: *JSContext, _scope: *JSObject) -> *JSObject {
|
||||
fail!("not yet implemented")
|
||||
}
|
||||
|
||||
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