mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
Auto merge of #24644 - saschanaz:sequence-default, r=jdm
Use IDL sequence default value <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24643 <!-- Either: --> - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
commit
147c042c5a
13 changed files with 40 additions and 65 deletions
|
@ -21,7 +21,7 @@ dictionary BluetoothLEScanFilterInit {
|
|||
|
||||
dictionary RequestDeviceOptions {
|
||||
sequence<BluetoothLEScanFilterInit> filters;
|
||||
sequence<BluetoothServiceUUID> optionalServices /*= []*/;
|
||||
sequence<BluetoothServiceUUID> optionalServices = [];
|
||||
boolean acceptAllDevices = false;
|
||||
};
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ dictionary BluetoothPermissionDescriptor : PermissionDescriptor {
|
|||
DOMString deviceId;
|
||||
// These match RequestDeviceOptions.
|
||||
sequence<BluetoothLEScanFilterInit> filters;
|
||||
sequence<BluetoothServiceUUID> optionalServices/* = []*/;
|
||||
sequence<BluetoothServiceUUID> optionalServices = [];
|
||||
boolean acceptAllDevices = false;
|
||||
};
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ interface DissimilarOriginWindow : GlobalScope {
|
|||
|
||||
void close();
|
||||
readonly attribute boolean closed;
|
||||
[Throws] void postMessage(any message, USVString targetOrigin, optional sequence<object> transfer /*= []*/);
|
||||
[Throws] void postMessage(any message, USVString targetOrigin, optional sequence<object> transfer = []);
|
||||
[Throws] void postMessage(any message, optional WindowPostMessageOptions options = {});
|
||||
attribute any opener;
|
||||
void blur();
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface MessagePort : EventTarget {
|
||||
[Throws] void postMessage(any message, sequence<object> transfer /*= []*/);
|
||||
[Throws] void postMessage(any message, sequence<object> transfer);
|
||||
[Throws] void postMessage(any message, optional PostMessageOptions options = {});
|
||||
void start();
|
||||
void close();
|
||||
|
@ -19,5 +19,5 @@ interface MessagePort : EventTarget {
|
|||
};
|
||||
|
||||
dictionary PostMessageOptions {
|
||||
sequence<object> transfer;
|
||||
sequence<object> transfer = [];
|
||||
};
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
void cancelAnimationFrame(unsigned long handle);
|
||||
|
||||
[Throws]
|
||||
void postMessage(any message, USVString targetOrigin, optional sequence<object> transfer /*= []*/);
|
||||
void postMessage(any message, USVString targetOrigin, optional sequence<object> transfer = []);
|
||||
[Throws]
|
||||
void postMessage(any message, optional WindowPostMessageOptions options = {});
|
||||
|
||||
|
@ -175,7 +175,6 @@ partial interface Window {
|
|||
readonly attribute unsigned long runningAnimationCount;
|
||||
};
|
||||
|
||||
dictionary WindowPostMessageOptions {
|
||||
dictionary WindowPostMessageOptions : PostMessageOptions {
|
||||
USVString targetOrigin = "/";
|
||||
sequence<object> transfer;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue