mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
More CanGc fixes: Range, Event, gpu error, Header (#33774)
* Propagate CanGc parameter in Range Signed-off-by: webbeef <me@webbeef.org> * Propagate CanGc parameter in gpu code and dependencies Signed-off-by: webbeef <me@webbeef.org> * Propagate CanGc parameter in Header and dependencies Signed-off-by: webbeef <me@webbeef.org> * Propagate CanGc parameter in Event and dependencies Signed-off-by: webbeef <me@webbeef.org> * Propagate CanGc parameter in rtcdatachannel Signed-off-by: webbeef <me@webbeef.org> * Propagate CanGc parameter in servoparser Signed-off-by: webbeef <me@webbeef.org> --------- Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
parent
8c56cbdab2
commit
f9a06d62a2
17 changed files with 92 additions and 85 deletions
|
@ -75,8 +75,8 @@ impl Event {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new_uninitialized(global: &GlobalScope) -> DomRoot<Event> {
|
||||
Self::new_uninitialized_with_proto(global, None, CanGc::note())
|
||||
pub fn new_uninitialized(global: &GlobalScope, can_gc: CanGc) -> DomRoot<Event> {
|
||||
Self::new_uninitialized_with_proto(global, None, can_gc)
|
||||
}
|
||||
|
||||
pub fn new_uninitialized_with_proto(
|
||||
|
@ -92,8 +92,9 @@ impl Event {
|
|||
type_: Atom,
|
||||
bubbles: EventBubbles,
|
||||
cancelable: EventCancelable,
|
||||
can_gc: CanGc,
|
||||
) -> DomRoot<Event> {
|
||||
Self::new_with_proto(global, None, type_, bubbles, cancelable, CanGc::note())
|
||||
Self::new_with_proto(global, None, type_, bubbles, cancelable, can_gc)
|
||||
}
|
||||
|
||||
fn new_with_proto(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue