mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -116,7 +116,7 @@ impl XRRayMethods for XRRay {
|
|||
// https://immersive-web.github.io/hit-test/#xrray-obtain-the-matrix
|
||||
// Step 1
|
||||
if self.matrix.get().is_null() {
|
||||
let cx = self.global().get_cx();
|
||||
let cx = GlobalScope::get_cx();
|
||||
// Step 2
|
||||
let z = Vector3D::new(0., 0., -1.);
|
||||
// Step 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue