mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Update WebIDL.py (#32495)
* Update WebIDL.py * Update WebIDL.py * Add builtin-array.patch * Fix CodegenRust.py and Configuration.py * Fix missing downcasts * mach fmt * Update check and comment to explain why we need this check * Update Global of DissimilarOriginWindow.webidl
This commit is contained in:
parent
19067366df
commit
8eed3b442b
77 changed files with 1658 additions and 793 deletions
49
third_party/WebIDL/builtin-array.patch
vendored
Normal file
49
third_party/WebIDL/builtin-array.patch
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
--- WebIDL.py
|
||||
+++ WebIDL.py
|
||||
@@ -2549,6 +2549,17 @@ class IDLType(IDLObject):
|
||||
"object",
|
||||
# Funny stuff
|
||||
"interface",
|
||||
+ "int8array",
|
||||
+ "uint8array",
|
||||
+ "int16array",
|
||||
+ "uint16array",
|
||||
+ "int32array",
|
||||
+ "uint32array",
|
||||
+ "float32array",
|
||||
+ "float64array",
|
||||
+ "arrayBuffer",
|
||||
+ "arrayBufferView",
|
||||
+ "uint8clampedarray",
|
||||
"dictionary",
|
||||
"enum",
|
||||
"callback",
|
||||
@@ -3842,17 +3853,17 @@ class IDLBuiltinType(IDLType):
|
||||
Types.utf8string: IDLType.Tags.utf8string,
|
||||
Types.jsstring: IDLType.Tags.jsstring,
|
||||
Types.object: IDLType.Tags.object,
|
||||
- Types.ArrayBuffer: IDLType.Tags.interface,
|
||||
- Types.ArrayBufferView: IDLType.Tags.interface,
|
||||
- Types.Int8Array: IDLType.Tags.interface,
|
||||
- Types.Uint8Array: IDLType.Tags.interface,
|
||||
- Types.Uint8ClampedArray: IDLType.Tags.interface,
|
||||
- Types.Int16Array: IDLType.Tags.interface,
|
||||
- Types.Uint16Array: IDLType.Tags.interface,
|
||||
- Types.Int32Array: IDLType.Tags.interface,
|
||||
- Types.Uint32Array: IDLType.Tags.interface,
|
||||
- Types.Float32Array: IDLType.Tags.interface,
|
||||
- Types.Float64Array: IDLType.Tags.interface,
|
||||
+ Types.ArrayBuffer: IDLType.Tags.arrayBuffer,
|
||||
+ Types.ArrayBufferView: IDLType.Tags.arrayBufferView,
|
||||
+ Types.Int8Array: IDLType.Tags.int8array,
|
||||
+ Types.Uint8Array: IDLType.Tags.uint8array,
|
||||
+ Types.Uint8ClampedArray: IDLType.Tags.uint8clampedarray,
|
||||
+ Types.Int16Array: IDLType.Tags.int16array,
|
||||
+ Types.Uint16Array: IDLType.Tags.uint16array,
|
||||
+ Types.Int32Array: IDLType.Tags.int32array,
|
||||
+ Types.Uint32Array: IDLType.Tags.uint32array,
|
||||
+ Types.Float32Array: IDLType.Tags.float32array,
|
||||
+ Types.Float64Array: IDLType.Tags.float64array,
|
||||
Types.ReadableStream: IDLType.Tags.interface,
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue