Clean up DissimilarOriginWindow::origin

It's not dead code, and it should use Castable instead of directly reaching
to the globascope field.
This commit is contained in:
Anthony Ramine 2017-09-13 10:46:03 +02:00
parent 1c46135c75
commit 65dfd6bf63

View file

@ -70,9 +70,8 @@ impl DissimilarOriginWindow {
unsafe { DissimilarOriginWindowBinding::Wrap(cx, win) }
}
#[allow(dead_code)]
pub fn origin(&self) -> &MutableOrigin {
self.globalscope.origin()
self.upcast::<GlobalScope>().origin()
}
}