diff options
author | Josh Matthews <josh@joshmatthews.net> | 2023-02-16 23:09:50 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2023-05-20 11:05:09 -0400 |
commit | f79e1e327dfdf047cab9652e1cc3e67a7667faa1 (patch) | |
tree | 43c1cf48c9a6448264722780e38315dafacf4a24 /components/script/dom/dissimilaroriginwindow.rs | |
parent | 4998c65c423f995149f4b314d8ff68024c24cc72 (diff) | |
download | servo-f79e1e327dfdf047cab9652e1cc3e67a7667faa1.tar.gz servo-f79e1e327dfdf047cab9652e1cc3e67a7667faa1.zip |
Make GlobalScope.get_cx a static method.
Diffstat (limited to 'components/script/dom/dissimilaroriginwindow.rs')
-rw-r--r-- | components/script/dom/dissimilaroriginwindow.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/dissimilaroriginwindow.rs b/components/script/dom/dissimilaroriginwindow.rs index 989aec3ff3d..13d836114c6 100644 --- a/components/script/dom/dissimilaroriginwindow.rs +++ b/components/script/dom/dissimilaroriginwindow.rs @@ -46,7 +46,7 @@ pub struct DissimilarOriginWindow { impl DissimilarOriginWindow { #[allow(unsafe_code)] pub fn new(global_to_clone_from: &GlobalScope, window_proxy: &WindowProxy) -> DomRoot<Self> { - let cx = global_to_clone_from.get_cx(); + let cx = GlobalScope::get_cx(); let win = Box::new(Self { globalscope: GlobalScope::new_inherited( PipelineId::new(), |