mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
More CanGc fixes (#33888)
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
720d632170
commit
9c893c7f4d
25 changed files with 102 additions and 58 deletions
|
@ -37,8 +37,15 @@ impl DOMPointReadOnly {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(global: &GlobalScope, x: f64, y: f64, z: f64, w: f64) -> DomRoot<DOMPointReadOnly> {
|
||||
Self::new_with_proto(global, None, x, y, z, w, CanGc::note())
|
||||
pub fn new(
|
||||
global: &GlobalScope,
|
||||
x: f64,
|
||||
y: f64,
|
||||
z: f64,
|
||||
w: f64,
|
||||
can_gc: CanGc,
|
||||
) -> DomRoot<DOMPointReadOnly> {
|
||||
Self::new_with_proto(global, None, x, y, z, w, can_gc)
|
||||
}
|
||||
|
||||
fn new_with_proto(
|
||||
|
@ -77,8 +84,8 @@ impl DOMPointReadOnlyMethods for DOMPointReadOnly {
|
|||
}
|
||||
|
||||
// https://drafts.fxtf.org/geometry/#dom-dompointreadonly-frompoint
|
||||
fn FromPoint(global: &GlobalScope, init: &DOMPointInit) -> DomRoot<Self> {
|
||||
Self::new(global, init.x, init.y, init.z, init.w)
|
||||
fn FromPoint(global: &GlobalScope, init: &DOMPointInit, can_gc: CanGc) -> DomRoot<Self> {
|
||||
Self::new(global, init.x, init.y, init.z, init.w, can_gc)
|
||||
}
|
||||
|
||||
// https://dev.w3.org/fxtf/geometry/Overview.html#dom-dompointreadonly-x
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue