|
| 1 | +diff --git a/Sources/CSSOM/Generated.swift b/Sources/CSSOM/Generated.swift |
| 2 | +index 9cd2fb3..7aec5a8 100644 |
1 | 3 | --- a/Sources/CSSOM/Generated.swift |
2 | 4 | +++ b/Sources/CSSOM/Generated.swift |
3 | | -@@ -379,7 +379,8 @@ public class CSSColorValue: CSSStyleValue { |
4 | | - super.init(unsafelyWrapping: jsObject) |
5 | | - } |
| 5 | +@@ -411,7 +411,7 @@ public class CSSColorValue: CSSStyleValue { |
| 6 | + |
| 7 | + public required init(unsafelyWrapping jsObject: JSObject) { super.init(unsafelyWrapping: jsObject) } |
6 | 8 |
|
7 | 9 | - @inlinable override public class func parse(cssText: String) -> CSSColorValue_or_CSSStyleValue { |
8 | | -+ // returns CSSStyleValue | CSSColorValue |
9 | | -+ @inlinable public class func parse(cssText: String) -> CSSStyleValue { |
| 10 | ++ @inlinable public class func parse(cssText: String) -> CSSColorValue { |
10 | 11 | let this = constructor! |
11 | 12 | return this[Strings.parse].function!(this: this, arguments: [_toJSValue(cssText)]).fromJSValue()! |
12 | 13 | } |
13 | | -@@ -944,7 +945,7 @@ public class CSSNumericValue: CSSStyleValue { |
| 14 | +@@ -947,7 +947,7 @@ public class CSSNumericValue: CSSStyleValue { |
14 | 15 | return this[Strings.type].function!(this: this, arguments: []).fromJSValue()! |
15 | 16 | } |
16 | 17 |
|
17 | | -- @inlinable override public class func parse(cssText: String) -> Self { |
18 | | -+ @inlinable public class func parse(cssText: String) -> Self { |
| 18 | +- @inlinable override public class func parse(cssText: String) -> CSSNumericValue { |
| 19 | ++ @inlinable public class func parse(cssText: String) -> CSSNumericValue { |
19 | 20 | let this = constructor! |
20 | 21 | return this[Strings.parse].function!(this: this, arguments: [_toJSValue(cssText)]).fromJSValue()! |
21 | 22 | } |
22 | | -@@ -1974,9 +1975,10 @@ public class StylePropertyMapReadOnly: JSBridgedClass, Sequence { |
| 23 | +@@ -2072,9 +2072,10 @@ public class StylePropertyMapReadOnly: JSBridgedClass, Sequence { |
23 | 24 | ValueIterableIterator(sequence: self) |
24 | 25 | } |
25 | 26 |
|
26 | | -- @inlinable public func get(property: String) -> CSSStyleValue_or_Void { |
| 27 | +- @inlinable final public func get(property: String) -> CSSStyleValue_or_Void { |
27 | 28 | + // TODO: remove patch once https://github.com/w3c/css-houdini-drafts/issues/1095 is fixed |
28 | | -+ @inlinable public func get(property: String) -> CSSStyleValue? { |
| 29 | ++ @inlinable final public func get(property: String) -> CSSStyleValue? { |
29 | 30 | let this = jsObject |
30 | 31 | - return this[Strings.get].function!(this: this, arguments: [_toJSValue(property)]).fromJSValue()! |
31 | 32 | + return this[Strings.get].function!(this: this, arguments: [_toJSValue(property)]).fromJSValue() |
32 | 33 | } |
33 | 34 |
|
34 | | - @inlinable public func getAll(property: String) -> [CSSStyleValue] { |
35 | | -@@ -2646,58 +2648,6 @@ public enum CSSStyleValue_or_String: JSValueCompatible, Any_CSSStyleValue_or_Str |
| 35 | + @inlinable final public func getAll(property: String) -> [CSSStyleValue] { |
| 36 | +@@ -2706,49 +2707,6 @@ public enum CSSStyleValue_or_String: JSValueCompatible, Any_CSSStyleValue_or_Str |
| 37 | + } |
36 | 38 | } |
37 | 39 | } |
38 | | - |
39 | 40 | -public protocol Any_CSSStyleValue_or_Void: ConvertibleToJSValue {} |
40 | 41 | -extension CSSStyleValue: Any_CSSStyleValue_or_Void {} |
41 | 42 | -extension Void: Any_CSSStyleValue_or_Void {} |
|
44 | 45 | - case cssStyleValue(CSSStyleValue) |
45 | 46 | - case void(Void) |
46 | 47 | - |
47 | | -- init(_ cssStyleValue: CSSStyleValue) { |
| 48 | +- public init(_ cssStyleValue: CSSStyleValue) { |
48 | 49 | - let val: CSSStyleValue_or_Void = .cssStyleValue(cssStyleValue) |
49 | 50 | - self = val |
50 | 51 | - } |
51 | | -- |
52 | | -- init(_ void: Void) { |
| 52 | +- public init(_ void: Void) { |
53 | 53 | - let val: CSSStyleValue_or_Void = .void(void) |
54 | 54 | - self = val |
55 | 55 | - } |
|
60 | 60 | - default: return nil |
61 | 61 | - } |
62 | 62 | - } |
63 | | -- |
64 | 63 | - public var void: Void? { |
65 | 64 | - switch self { |
66 | 65 | - case let .void(void): return void |
|
0 commit comments