mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
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:
parent
1c46135c75
commit
65dfd6bf63
1 changed files with 1 additions and 2 deletions
|
@ -70,9 +70,8 @@ impl DissimilarOriginWindow {
|
||||||
unsafe { DissimilarOriginWindowBinding::Wrap(cx, win) }
|
unsafe { DissimilarOriginWindowBinding::Wrap(cx, win) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
|
||||||
pub fn origin(&self) -> &MutableOrigin {
|
pub fn origin(&self) -> &MutableOrigin {
|
||||||
self.globalscope.origin()
|
self.upcast::<GlobalScope>().origin()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue