mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Remove Reflectable::GetParentObject.
This commit is contained in:
parent
edd9c1d5eb
commit
80a6103f7d
23 changed files with 3 additions and 154 deletions
|
@ -6,8 +6,6 @@ use dom::bindings::codegen::ClientRectBinding;
|
|||
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
|
||||
use dom::window::Window;
|
||||
|
||||
use js::jsapi::JSContext;
|
||||
|
||||
pub struct ClientRect {
|
||||
reflector_: Reflector,
|
||||
top: f32,
|
||||
|
@ -71,8 +69,4 @@ impl Reflectable for ClientRect {
|
|||
fn mut_reflector<'a>(&'a mut self) -> &'a mut Reflector {
|
||||
&mut self.reflector_
|
||||
}
|
||||
|
||||
fn GetParentObject(&self, _cx: *JSContext) -> Option<@mut Reflectable> {
|
||||
Some(self.window as @mut Reflectable)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue