@@ -2769,14 +2769,20 @@ public class DOMMatrix: DOMMatrixReadOnly {
2769
2769
self.init(unsafelyWrapping: Self.constructor!.new(arguments: [_toJSValue(`init`)]))
2770
2770
}
2771
2771
2772
- // XXX: illegal static override
2773
- // override public class func fromMatrix(other: DOMMatrixInit? = nil) -> Self
2772
+ @inlinable override public class func fromMatrix(other: DOMMatrixInit? = nil) -> Self {
2773
+ let this = constructor!
2774
+ return this[Strings.fromMatrix].function!(this: this, arguments: [_toJSValue(other)]).fromJSValue()!
2775
+ }
2774
2776
2775
- // XXX: illegal static override
2776
- // override public class func fromFloat32Array(array32: Float32Array) -> Self
2777
+ @inlinable override public class func fromFloat32Array(array32: Float32Array) -> Self {
2778
+ let this = constructor!
2779
+ return this[Strings.fromFloat32Array].function!(this: this, arguments: [_toJSValue(array32)]).fromJSValue()!
2780
+ }
2777
2781
2778
- // XXX: illegal static override
2779
- // override public class func fromFloat64Array(array64: Float64Array) -> Self
2782
+ @inlinable override public class func fromFloat64Array(array64: Float64Array) -> Self {
2783
+ let this = constructor!
2784
+ return this[Strings.fromFloat64Array].function!(this: this, arguments: [_toJSValue(array64)]).fromJSValue()!
2785
+ }
2780
2786
2781
2787
@usableFromInline let _a: ReadWriteAttribute<Double>
2782
2788
@inlinable override public var a: Double {
@@ -3377,8 +3383,10 @@ public class DOMPoint: DOMPointReadOnly {
3377
3383
self.init(unsafelyWrapping: Self.constructor!.new(arguments: [_toJSValue(x), _toJSValue(y), _toJSValue(z), _toJSValue(w)]))
3378
3384
}
3379
3385
3380
- // XXX: illegal static override
3381
- // override public class func fromPoint(other: DOMPointInit? = nil) -> Self
3386
+ @inlinable override public class func fromPoint(other: DOMPointInit? = nil) -> Self {
3387
+ let this = constructor!
3388
+ return this[Strings.fromPoint].function!(this: this, arguments: [_toJSValue(other)]).fromJSValue()!
3389
+ }
3382
3390
3383
3391
@usableFromInline let _x: ReadWriteAttribute<Double>
3384
3392
@inlinable override public var x: Double {
@@ -3577,8 +3585,10 @@ public class DOMRect: DOMRectReadOnly {
3577
3585
self.init(unsafelyWrapping: Self.constructor!.new(arguments: [_toJSValue(x), _toJSValue(y), _toJSValue(width), _toJSValue(height)]))
3578
3586
}
3579
3587
3580
- // XXX: illegal static override
3581
- // override public class func fromRect(other: DOMRectInit? = nil) -> Self
3588
+ @inlinable override public class func fromRect(other: DOMRectInit? = nil) -> Self {
3589
+ let this = constructor!
3590
+ return this[Strings.fromRect].function!(this: this, arguments: [_toJSValue(other)]).fromJSValue()!
3591
+ }
3582
3592
3583
3593
@usableFromInline let _x: ReadWriteAttribute<Double>
3584
3594
@inlinable override public var x: Double {
0 commit comments