mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
feat(script): add {DissimilarOriginWindow, PaintWorkletGlobalScope, TestWorkletGlobalScope}::origin
This commit is contained in:
parent
bfa2026220
commit
5959c2ef9b
4 changed files with 19 additions and 2 deletions
|
@ -84,6 +84,10 @@ impl WorkletGlobalScope {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn origin(&self) -> &MutableOrigin {
|
||||
self.globalscope.origin()
|
||||
}
|
||||
|
||||
/// Get the JS context.
|
||||
pub fn get_cx(&self) -> JSContext {
|
||||
self.globalscope.get_cx()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue