mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Add CanGc argument to reflect_dom_object (#34606)
* applied mach fmt Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com> Refinements Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com> Modified reflect_dom_object signature and all its calls Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com> * fix function calls when parameter is passed up Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com> --------- Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com>
This commit is contained in:
parent
471d3572b7
commit
0e9746fbbe
207 changed files with 570 additions and 101 deletions
|
@ -27,6 +27,7 @@ use crate::dom::webglobject::WebGLObject;
|
|||
use crate::dom::webglrenderingcontext::{Operation, WebGLRenderingContext};
|
||||
#[cfg(feature = "webxr")]
|
||||
use crate::dom::xrsession::XRSession;
|
||||
use crate::script_runtime::CanGc;
|
||||
|
||||
pub enum TexParameterValue {
|
||||
Float(f32),
|
||||
|
@ -116,6 +117,7 @@ impl WebGLTexture {
|
|||
None,
|
||||
)),
|
||||
&*context.global(),
|
||||
CanGc::note(),
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -128,6 +130,7 @@ impl WebGLTexture {
|
|||
reflect_dom_object(
|
||||
Box::new(WebGLTexture::new_inherited(context, id, Some(session))),
|
||||
&*context.global(),
|
||||
CanGc::note(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue