mirror of
https://github.com/servo/servo.git
synced 2025-06-19 22:59:03 +01:00
Mark DecodeResolver as must_root
This commit is contained in:
parent
8a6ea00f58
commit
ebcbe2ff7d
2 changed files with 3 additions and 2 deletions
|
@ -51,8 +51,8 @@ pub enum BaseAudioContextOptions {
|
||||||
OfflineAudioContext(OfflineAudioContextOptions),
|
OfflineAudioContext(OfflineAudioContextOptions),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[must_root]
|
||||||
#[derive(JSTraceable)]
|
#[derive(JSTraceable)]
|
||||||
#[allow(unrooted_must_root)]
|
|
||||||
struct DecodeResolver {
|
struct DecodeResolver {
|
||||||
pub promise: Rc<Promise>,
|
pub promise: Rc<Promise>,
|
||||||
pub success_callback: Option<Rc<DecodeSuccessCallback>>,
|
pub success_callback: Option<Rc<DecodeSuccessCallback>>,
|
||||||
|
|
|
@ -628,4 +628,5 @@ macro_rules! handle_potential_webgl_error {
|
||||||
($context:expr, $call:expr) => {
|
($context:expr, $call:expr) => {
|
||||||
handle_potential_webgl_error!($context, $call, ());
|
handle_potential_webgl_error!($context, $call, ());
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue