mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
added origin to globalscope
This commit is contained in:
parent
3af69cf9bf
commit
2c6bd51bef
8 changed files with 44 additions and 8 deletions
|
@ -12,6 +12,7 @@ use dom::bindings::str::DOMString;
|
|||
use dom::bindings::str::USVString;
|
||||
use dom::dissimilaroriginwindow::DissimilarOriginWindow;
|
||||
use dom_struct::dom_struct;
|
||||
use servo_url::MutableOrigin;
|
||||
|
||||
/// Represents a dissimilar-origin `Location` that exists in another script thread.
|
||||
///
|
||||
|
@ -43,6 +44,10 @@ impl DissimilarOriginLocation {
|
|||
window,
|
||||
DissimilarOriginLocationBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn origin(&self) -> &MutableOrigin {
|
||||
self.window.origin()
|
||||
}
|
||||
}
|
||||
|
||||
impl DissimilarOriginLocationMethods for DissimilarOriginLocation {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue