mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Make GlobalScope.get_cx a static method.
This commit is contained in:
parent
4998c65c42
commit
f79e1e327d
39 changed files with 132 additions and 127 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue