mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
cangc fixes in several files + event.rs + rtcpeerconnection.rs (#34002)
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
3b5dc069ae
commit
7ad8822d94
37 changed files with 166 additions and 132 deletions
|
@ -24,16 +24,16 @@ pub struct FontFaceSet {
|
|||
}
|
||||
|
||||
impl FontFaceSet {
|
||||
pub fn new_inherited(global: &GlobalScope) -> Self {
|
||||
pub fn new_inherited(global: &GlobalScope, can_gc: CanGc) -> Self {
|
||||
FontFaceSet {
|
||||
target: EventTarget::new_inherited(),
|
||||
promise: Promise::new(global, CanGc::note()),
|
||||
promise: Promise::new(global, can_gc),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new(global: &GlobalScope, proto: Option<HandleObject>, can_gc: CanGc) -> DomRoot<Self> {
|
||||
reflect_dom_object_with_proto(
|
||||
Box::new(FontFaceSet::new_inherited(global)),
|
||||
Box::new(FontFaceSet::new_inherited(global, can_gc)),
|
||||
global,
|
||||
proto,
|
||||
can_gc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue