mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Rewrite Blob constructor interface
This commit is contained in:
parent
33fa63a3c5
commit
f43009333f
5 changed files with 60 additions and 50 deletions
|
@ -2,8 +2,9 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// http://dev.w3.org/2006/webapi/FileAPI/#dfn-Blob
|
||||
[Constructor(optional sequence<(/*ArrayBuffer or ArrayBufferView or */Blob or DOMString)> blobParts,
|
||||
// https://w3c.github.io/FileAPI/#blob
|
||||
|
||||
[Constructor(optional sequence<BlobPart> blobParts,
|
||||
optional BlobPropertyBag options),
|
||||
Exposed=Window/*,Worker*/]
|
||||
interface Blob {
|
||||
|
@ -26,3 +27,5 @@ dictionary BlobPropertyBag {
|
|||
DOMString type = "";
|
||||
|
||||
};
|
||||
|
||||
typedef (/*ArrayBuffer or ArrayBufferView or */Blob or DOMString) BlobPart;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue