mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
script: Rename CanGc::note() to CanGc::deprecated_note() (#44081)
Per the suggestion in https://servo.zulipchat.com/#narrow/channel/263398-general/topic/PSA.3A.20avoid.20new.20usages.20of.20CanGc.20whenever.20possible/near/583995807 to mark this method as deprecated and make clear it shouldn't be used anymore, as alternatives exist. Part of #40600 Testing: It compiles Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
committed by
GitHub
parent
55e586737b
commit
c8029ea092
@@ -1395,7 +1395,7 @@ impl HTMLImageElement {
|
||||
.dom_manipulation_task_source()
|
||||
.queue(task!(fulfill_image_decode_promises: move || {
|
||||
for trusted_promise in trusted_image_decode_promises {
|
||||
trusted_promise.root().resolve_native(&(), CanGc::note());
|
||||
trusted_promise.root().resolve_native(&(), CanGc::deprecated_note());
|
||||
}
|
||||
}));
|
||||
}
|
||||
@@ -1422,7 +1422,7 @@ impl HTMLImageElement {
|
||||
.dom_manipulation_task_source()
|
||||
.queue(task!(reject_image_decode_promises: move || {
|
||||
for trusted_promise in trusted_image_decode_promises {
|
||||
trusted_promise.root().reject_error(Error::Encoding(None), CanGc::note());
|
||||
trusted_promise.root().reject_error(Error::Encoding(None), CanGc::deprecated_note());
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user