mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Introduce Reflectable::global_scope
This commit is contained in:
parent
27f100b1d4
commit
ae6af5172b
30 changed files with 116 additions and 120 deletions
|
@ -230,7 +230,7 @@ impl WebGLProgram {
|
|||
.unwrap();
|
||||
|
||||
receiver.recv().unwrap().map(|(size, ty, name)|
|
||||
WebGLActiveInfo::new(self.global().r().as_global_scope(), size, ty, DOMString::from(name)))
|
||||
WebGLActiveInfo::new(&self.global_scope(), size, ty, DOMString::from(name)))
|
||||
}
|
||||
|
||||
/// glGetActiveAttrib
|
||||
|
@ -244,7 +244,7 @@ impl WebGLProgram {
|
|||
.unwrap();
|
||||
|
||||
receiver.recv().unwrap().map(|(size, ty, name)|
|
||||
WebGLActiveInfo::new(self.global().r().as_global_scope(), size, ty, DOMString::from(name)))
|
||||
WebGLActiveInfo::new(&self.global_scope(), size, ty, DOMString::from(name)))
|
||||
}
|
||||
|
||||
/// glGetAttribLocation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue