@@ -2769,14 +2769,20 @@ public class DOMMatrix: DOMMatrixReadOnly {
27692769 self.init(unsafelyWrapping: Self.constructor!.new(arguments: [_toJSValue(`init`)]))
27702770 }
27712771
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+ }
27742776
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+ }
27772781
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+ }
27802786
27812787 @usableFromInline let _a: ReadWriteAttribute<Double>
27822788 @inlinable override public var a: Double {
@@ -3377,8 +3383,10 @@ public class DOMPoint: DOMPointReadOnly {
33773383 self.init(unsafelyWrapping: Self.constructor!.new(arguments: [_toJSValue(x), _toJSValue(y), _toJSValue(z), _toJSValue(w)]))
33783384 }
33793385
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+ }
33823390
33833391 @usableFromInline let _x: ReadWriteAttribute<Double>
33843392 @inlinable override public var x: Double {
@@ -3577,8 +3585,10 @@ public class DOMRect: DOMRectReadOnly {
35773585 self.init(unsafelyWrapping: Self.constructor!.new(arguments: [_toJSValue(x), _toJSValue(y), _toJSValue(width), _toJSValue(height)]))
35783586 }
35793587
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+ }
35823592
35833593 @usableFromInline let _x: ReadWriteAttribute<Double>
35843594 @inlinable override public var x: Double {
0 commit comments