mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-05-10 04:47:15 +00:00
web-sys: Use mixins instead of [NoInterfaceObject]
interfaces and implements
I think these might all be from before WebIDL mixins existed. Either way, multiple inheritance of interfaces that don't have exposed interface objects is equivalent to mixins.
This commit is contained in:
parent
69cc7725d6
commit
b8afa0abde
@ -4,7 +4,7 @@
|
|||||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker,System)]
|
[Exposed=(Window,Worker,System)]
|
||||||
interface AbstractWorker {
|
interface mixin AbstractWorker {
|
||||||
attribute EventHandler onerror;
|
attribute EventHandler onerror;
|
||||||
};
|
};
|
||||||
|
@ -19,15 +19,13 @@ dictionary BrowserElementExecuteScriptOptions {
|
|||||||
DOMString? origin;
|
DOMString? origin;
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin BrowserElement {
|
||||||
interface BrowserElement {
|
|
||||||
};
|
};
|
||||||
|
|
||||||
BrowserElement implements BrowserElementCommon;
|
BrowserElement includes BrowserElementCommon;
|
||||||
BrowserElement implements BrowserElementPrivileged;
|
BrowserElement includes BrowserElementPrivileged;
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin BrowserElementCommon {
|
||||||
interface BrowserElementCommon {
|
|
||||||
[Throws,
|
[Throws,
|
||||||
Pref="dom.mozBrowserFramesEnabled",
|
Pref="dom.mozBrowserFramesEnabled",
|
||||||
ChromeOnly]
|
ChromeOnly]
|
||||||
@ -39,8 +37,7 @@ interface BrowserElementCommon {
|
|||||||
void removeNextPaintListener(BrowserElementNextPaintEventCallback listener);
|
void removeNextPaintListener(BrowserElementNextPaintEventCallback listener);
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin BrowserElementPrivileged {
|
||||||
interface BrowserElementPrivileged {
|
|
||||||
[Throws,
|
[Throws,
|
||||||
Pref="dom.mozBrowserFramesEnabled",
|
Pref="dom.mozBrowserFramesEnabled",
|
||||||
ChromeOnly]
|
ChromeOnly]
|
||||||
|
@ -22,4 +22,4 @@ interface CSSPseudoElement {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// https://drafts.csswg.org/web-animations/#extensions-to-the-pseudoelement-interface
|
// https://drafts.csswg.org/web-animations/#extensions-to-the-pseudoelement-interface
|
||||||
CSSPseudoElement implements Animatable;
|
CSSPseudoElement includes Animatable;
|
||||||
|
@ -107,33 +107,31 @@ interface CanvasRenderingContext2D {
|
|||||||
void demote();
|
void demote();
|
||||||
};
|
};
|
||||||
|
|
||||||
CanvasRenderingContext2D implements CanvasState;
|
CanvasRenderingContext2D includes CanvasState;
|
||||||
CanvasRenderingContext2D implements CanvasTransform;
|
CanvasRenderingContext2D includes CanvasTransform;
|
||||||
CanvasRenderingContext2D implements CanvasCompositing;
|
CanvasRenderingContext2D includes CanvasCompositing;
|
||||||
CanvasRenderingContext2D implements CanvasImageSmoothing;
|
CanvasRenderingContext2D includes CanvasImageSmoothing;
|
||||||
CanvasRenderingContext2D implements CanvasFillStrokeStyles;
|
CanvasRenderingContext2D includes CanvasFillStrokeStyles;
|
||||||
CanvasRenderingContext2D implements CanvasShadowStyles;
|
CanvasRenderingContext2D includes CanvasShadowStyles;
|
||||||
CanvasRenderingContext2D implements CanvasFilters;
|
CanvasRenderingContext2D includes CanvasFilters;
|
||||||
CanvasRenderingContext2D implements CanvasRect;
|
CanvasRenderingContext2D includes CanvasRect;
|
||||||
CanvasRenderingContext2D implements CanvasDrawPath;
|
CanvasRenderingContext2D includes CanvasDrawPath;
|
||||||
CanvasRenderingContext2D implements CanvasUserInterface;
|
CanvasRenderingContext2D includes CanvasUserInterface;
|
||||||
CanvasRenderingContext2D implements CanvasText;
|
CanvasRenderingContext2D includes CanvasText;
|
||||||
CanvasRenderingContext2D implements CanvasDrawImage;
|
CanvasRenderingContext2D includes CanvasDrawImage;
|
||||||
CanvasRenderingContext2D implements CanvasImageData;
|
CanvasRenderingContext2D includes CanvasImageData;
|
||||||
CanvasRenderingContext2D implements CanvasPathDrawingStyles;
|
CanvasRenderingContext2D includes CanvasPathDrawingStyles;
|
||||||
CanvasRenderingContext2D implements CanvasTextDrawingStyles;
|
CanvasRenderingContext2D includes CanvasTextDrawingStyles;
|
||||||
CanvasRenderingContext2D implements CanvasPathMethods;
|
CanvasRenderingContext2D includes CanvasPathMethods;
|
||||||
CanvasRenderingContext2D implements CanvasHitRegions;
|
CanvasRenderingContext2D includes CanvasHitRegions;
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin CanvasState {
|
||||||
interface CanvasState {
|
|
||||||
// state
|
// state
|
||||||
void save(); // push state on state stack
|
void save(); // push state on state stack
|
||||||
void restore(); // pop state stack and restore state
|
void restore(); // pop state stack and restore state
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin CanvasTransform {
|
||||||
interface CanvasTransform {
|
|
||||||
// transformations (default transform is the identity matrix)
|
// transformations (default transform is the identity matrix)
|
||||||
// NOT IMPLEMENTED attribute SVGMatrix currentTransform;
|
// NOT IMPLEMENTED attribute SVGMatrix currentTransform;
|
||||||
[Throws, LenientFloat]
|
[Throws, LenientFloat]
|
||||||
@ -151,20 +149,18 @@ interface CanvasTransform {
|
|||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
[NoInterfaceObject]
|
||||||
interface CanvasCompositing {
|
interface mixin CanvasCompositing {
|
||||||
attribute unrestricted double globalAlpha; // (default 1.0)
|
attribute unrestricted double globalAlpha; // (default 1.0)
|
||||||
[Throws]
|
[Throws]
|
||||||
attribute DOMString globalCompositeOperation; // (default source-over)
|
attribute DOMString globalCompositeOperation; // (default source-over)
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin CanvasImageSmoothing {
|
||||||
interface CanvasImageSmoothing {
|
|
||||||
// drawing images
|
// drawing images
|
||||||
attribute boolean imageSmoothingEnabled;
|
attribute boolean imageSmoothingEnabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin CanvasFillStrokeStyles {
|
||||||
interface CanvasFillStrokeStyles {
|
|
||||||
// colors and styles (see also the CanvasPathDrawingStyles interface)
|
// colors and styles (see also the CanvasPathDrawingStyles interface)
|
||||||
attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (default black)
|
attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (default black)
|
||||||
attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (default black)
|
attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (default black)
|
||||||
@ -176,8 +172,7 @@ interface CanvasFillStrokeStyles {
|
|||||||
CanvasPattern? createPattern(CanvasImageSource image, [TreatNullAs=EmptyString] DOMString repetition);
|
CanvasPattern? createPattern(CanvasImageSource image, [TreatNullAs=EmptyString] DOMString repetition);
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin CanvasShadowStyles {
|
||||||
interface CanvasShadowStyles {
|
|
||||||
[LenientFloat]
|
[LenientFloat]
|
||||||
attribute double shadowOffsetX; // (default 0)
|
attribute double shadowOffsetX; // (default 0)
|
||||||
[LenientFloat]
|
[LenientFloat]
|
||||||
@ -187,14 +182,12 @@ interface CanvasShadowStyles {
|
|||||||
attribute DOMString shadowColor; // (default transparent black)
|
attribute DOMString shadowColor; // (default transparent black)
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin CanvasFilters {
|
||||||
interface CanvasFilters {
|
|
||||||
[Pref="canvas.filters.enabled", SetterThrows]
|
[Pref="canvas.filters.enabled", SetterThrows]
|
||||||
attribute DOMString filter; // (default empty string = no filter)
|
attribute DOMString filter; // (default empty string = no filter)
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin CanvasRect {
|
||||||
interface CanvasRect {
|
|
||||||
[LenientFloat]
|
[LenientFloat]
|
||||||
void clearRect(double x, double y, double w, double h);
|
void clearRect(double x, double y, double w, double h);
|
||||||
[LenientFloat]
|
[LenientFloat]
|
||||||
@ -203,8 +196,7 @@ interface CanvasRect {
|
|||||||
void strokeRect(double x, double y, double w, double h);
|
void strokeRect(double x, double y, double w, double h);
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin CanvasDrawPath {
|
||||||
interface CanvasDrawPath {
|
|
||||||
// path API (see also CanvasPathMethods)
|
// path API (see also CanvasPathMethods)
|
||||||
void beginPath();
|
void beginPath();
|
||||||
void fill(optional CanvasWindingRule winding = "nonzero");
|
void fill(optional CanvasWindingRule winding = "nonzero");
|
||||||
@ -224,8 +216,7 @@ interface CanvasDrawPath {
|
|||||||
boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted double y);
|
boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted double y);
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin CanvasUserInterface {
|
||||||
interface CanvasUserInterface {
|
|
||||||
[Pref="canvas.focusring.enabled", Throws] void drawFocusIfNeeded(Element element);
|
[Pref="canvas.focusring.enabled", Throws] void drawFocusIfNeeded(Element element);
|
||||||
// NOT IMPLEMENTED void drawSystemFocusRing(Path path, HTMLElement element);
|
// NOT IMPLEMENTED void drawSystemFocusRing(Path path, HTMLElement element);
|
||||||
[Pref="canvas.customfocusring.enabled"] boolean drawCustomFocusRing(Element element);
|
[Pref="canvas.customfocusring.enabled"] boolean drawCustomFocusRing(Element element);
|
||||||
@ -234,8 +225,7 @@ interface CanvasUserInterface {
|
|||||||
// NOT IMPLEMENTED void scrollPathIntoView(Path path);
|
// NOT IMPLEMENTED void scrollPathIntoView(Path path);
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin CanvasText {
|
||||||
interface CanvasText {
|
|
||||||
// text (see also the CanvasPathDrawingStyles interface)
|
// text (see also the CanvasPathDrawingStyles interface)
|
||||||
[Throws, LenientFloat]
|
[Throws, LenientFloat]
|
||||||
void fillText(DOMString text, double x, double y, optional double maxWidth);
|
void fillText(DOMString text, double x, double y, optional double maxWidth);
|
||||||
@ -245,8 +235,7 @@ interface CanvasText {
|
|||||||
TextMetrics measureText(DOMString text);
|
TextMetrics measureText(DOMString text);
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin CanvasDrawImage {
|
||||||
interface CanvasDrawImage {
|
|
||||||
[Throws, LenientFloat]
|
[Throws, LenientFloat]
|
||||||
void drawImage(CanvasImageSource image, double dx, double dy);
|
void drawImage(CanvasImageSource image, double dx, double dy);
|
||||||
[Throws, LenientFloat]
|
[Throws, LenientFloat]
|
||||||
@ -255,8 +244,7 @@ interface CanvasDrawImage {
|
|||||||
void drawImage(CanvasImageSource image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh);
|
void drawImage(CanvasImageSource image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh);
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin CanvasImageData {
|
||||||
interface CanvasImageData {
|
|
||||||
// pixel manipulation
|
// pixel manipulation
|
||||||
[NewObject, Throws]
|
[NewObject, Throws]
|
||||||
ImageData createImageData(double sw, double sh);
|
ImageData createImageData(double sw, double sh);
|
||||||
@ -270,8 +258,7 @@ interface CanvasImageData {
|
|||||||
void putImageData(ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight);
|
void putImageData(ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight);
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin CanvasPathDrawingStyles {
|
||||||
interface CanvasPathDrawingStyles {
|
|
||||||
// line caps/joins
|
// line caps/joins
|
||||||
[LenientFloat]
|
[LenientFloat]
|
||||||
attribute double lineWidth; // (default 1)
|
attribute double lineWidth; // (default 1)
|
||||||
@ -287,8 +274,7 @@ interface CanvasPathDrawingStyles {
|
|||||||
[LenientFloat] attribute double lineDashOffset;
|
[LenientFloat] attribute double lineDashOffset;
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin CanvasTextDrawingStyles {
|
||||||
interface CanvasTextDrawingStyles {
|
|
||||||
// text
|
// text
|
||||||
[SetterThrows]
|
[SetterThrows]
|
||||||
attribute DOMString font; // (default 10px sans-serif)
|
attribute DOMString font; // (default 10px sans-serif)
|
||||||
@ -296,8 +282,7 @@ interface CanvasTextDrawingStyles {
|
|||||||
attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic", "ideographic", "bottom" (default: "alphabetic")
|
attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic", "ideographic", "bottom" (default: "alphabetic")
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin CanvasPathMethods {
|
||||||
interface CanvasPathMethods {
|
|
||||||
// shared path API methods
|
// shared path API methods
|
||||||
void closePath();
|
void closePath();
|
||||||
[LenientFloat]
|
[LenientFloat]
|
||||||
@ -324,8 +309,7 @@ interface CanvasPathMethods {
|
|||||||
void ellipse(double x, double y, double radiusX, double radiusY, double rotation, double startAngle, double endAngle, optional boolean anticlockwise = false);
|
void ellipse(double x, double y, double radiusX, double radiusY, double rotation, double startAngle, double endAngle, optional boolean anticlockwise = false);
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin CanvasHitRegions {
|
||||||
interface CanvasHitRegions {
|
|
||||||
// hit regions
|
// hit regions
|
||||||
[Pref="canvas.hitregions.enabled", Throws] void addHitRegion(optional HitRegionOptions options);
|
[Pref="canvas.hitregions.enabled", Throws] void addHitRegion(optional HitRegionOptions options);
|
||||||
[Pref="canvas.hitregions.enabled"] void removeHitRegion(DOMString id);
|
[Pref="canvas.hitregions.enabled"] void removeHitRegion(DOMString id);
|
||||||
@ -381,4 +365,4 @@ interface Path2D
|
|||||||
{
|
{
|
||||||
void addPath(Path2D path, optional SVGMatrix transformation);
|
void addPath(Path2D path, optional SVGMatrix transformation);
|
||||||
};
|
};
|
||||||
Path2D implements CanvasPathMethods;
|
Path2D includes CanvasPathMethods;
|
||||||
|
@ -27,5 +27,5 @@ interface CharacterData : Node {
|
|||||||
void replaceData(unsigned long offset, unsigned long count, DOMString data);
|
void replaceData(unsigned long offset, unsigned long count, DOMString data);
|
||||||
};
|
};
|
||||||
|
|
||||||
CharacterData implements ChildNode;
|
CharacterData includes ChildNode;
|
||||||
CharacterData implements NonDocumentTypeChildNode;
|
CharacterData includes NonDocumentTypeChildNode;
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
* http://dom.spec.whatwg.org/#interface-childnode
|
* http://dom.spec.whatwg.org/#interface-childnode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin ChildNode {
|
||||||
interface ChildNode {
|
|
||||||
[CEReactions, Throws, Unscopable]
|
[CEReactions, Throws, Unscopable]
|
||||||
void before((Node or DOMString)... nodes);
|
void before((Node or DOMString)... nodes);
|
||||||
[CEReactions, Throws, Unscopable]
|
[CEReactions, Throws, Unscopable]
|
||||||
@ -19,8 +18,7 @@ interface ChildNode {
|
|||||||
void remove();
|
void remove();
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin NonDocumentTypeChildNode {
|
||||||
interface NonDocumentTypeChildNode {
|
|
||||||
[Pure]
|
[Pure]
|
||||||
readonly attribute Element? previousElementSibling;
|
readonly attribute Element? previousElementSibling;
|
||||||
[Pure]
|
[Pure]
|
||||||
|
4
crates/web-sys/webidls/enabled/Crypto.webidl
vendored
4
crates/web-sys/webidls/enabled/Crypto.webidl
vendored
@ -7,8 +7,8 @@
|
|||||||
* https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#crypto-interface
|
* https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#crypto-interface
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[Exposed=(Window,Worker)]
|
||||||
interface GlobalCrypto {
|
interface mixin GlobalCrypto {
|
||||||
[Throws] readonly attribute Crypto crypto;
|
[Throws] readonly attribute Crypto crypto;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -16,9 +16,8 @@
|
|||||||
// invalid widl
|
// invalid widl
|
||||||
//interface StackFrame;
|
//interface StackFrame;
|
||||||
|
|
||||||
[NoInterfaceObject,
|
[Exposed=(Window,Worker,System)]
|
||||||
Exposed=(Window,Worker,System)]
|
interface mixin ExceptionMembers
|
||||||
interface ExceptionMembers
|
|
||||||
{
|
{
|
||||||
// The nsresult associated with this exception.
|
// The nsresult associated with this exception.
|
||||||
readonly attribute unsigned long result;
|
readonly attribute unsigned long result;
|
||||||
@ -34,7 +33,7 @@ interface ExceptionMembers
|
|||||||
readonly attribute DOMString filename;
|
readonly attribute DOMString filename;
|
||||||
// Valid line numbers begin at '1'. '0' indicates unknown.
|
// Valid line numbers begin at '1'. '0' indicates unknown.
|
||||||
readonly attribute unsigned long lineNumber;
|
readonly attribute unsigned long lineNumber;
|
||||||
// Valid column numbers begin at 0.
|
// Valid column numbers begin at 0.
|
||||||
// We don't have an unambiguous indicator for unknown.
|
// We don't have an unambiguous indicator for unknown.
|
||||||
readonly attribute unsigned long columnNumber;
|
readonly attribute unsigned long columnNumber;
|
||||||
|
|
||||||
@ -62,7 +61,7 @@ interface Exception {
|
|||||||
stringifier;
|
stringifier;
|
||||||
};
|
};
|
||||||
|
|
||||||
Exception implements ExceptionMembers;
|
Exception includes ExceptionMembers;
|
||||||
|
|
||||||
// XXXkhuey this is an 'exception', not an interface, but we don't have any
|
// XXXkhuey this is an 'exception', not an interface, but we don't have any
|
||||||
// parser or codegen mechanisms for dealing with exceptions.
|
// parser or codegen mechanisms for dealing with exceptions.
|
||||||
@ -105,4 +104,4 @@ interface DOMException {
|
|||||||
|
|
||||||
// XXXkhuey copy all of Gecko's non-standard stuff onto DOMException, but leave
|
// XXXkhuey copy all of Gecko's non-standard stuff onto DOMException, but leave
|
||||||
// the prototype chain sane.
|
// the prototype chain sane.
|
||||||
DOMException implements ExceptionMembers;
|
DOMException includes ExceptionMembers;
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
enum DOMRequestReadyState { "pending", "done" };
|
enum DOMRequestReadyState { "pending", "done" };
|
||||||
|
|
||||||
[Exposed=(Window,Worker,System), NoInterfaceObject]
|
[Exposed=(Window,Worker,System)]
|
||||||
interface DOMRequestShared {
|
interface mixin DOMRequestShared {
|
||||||
readonly attribute DOMRequestReadyState readyState;
|
readonly attribute DOMRequestReadyState readyState;
|
||||||
|
|
||||||
readonly attribute any result;
|
readonly attribute any result;
|
||||||
@ -29,4 +29,4 @@ interface DOMRequest : EventTarget {
|
|||||||
void fireDetailedError(DOMException aError);
|
void fireDetailedError(DOMException aError);
|
||||||
};
|
};
|
||||||
|
|
||||||
DOMRequest implements DOMRequestShared;
|
DOMRequest includes DOMRequestShared;
|
||||||
|
18
crates/web-sys/webidls/enabled/Document.webidl
vendored
18
crates/web-sys/webidls/enabled/Document.webidl
vendored
@ -435,12 +435,12 @@ partial interface Document {
|
|||||||
readonly attribute FlashClassification documentFlashClassification;
|
readonly attribute FlashClassification documentFlashClassification;
|
||||||
};
|
};
|
||||||
|
|
||||||
Document implements XPathEvaluator;
|
Document includes XPathEvaluator;
|
||||||
Document implements GlobalEventHandlers;
|
Document includes GlobalEventHandlers;
|
||||||
Document implements DocumentAndElementEventHandlers;
|
Document includes DocumentAndElementEventHandlers;
|
||||||
Document implements TouchEventHandlers;
|
Document includes TouchEventHandlers;
|
||||||
Document implements ParentNode;
|
Document includes ParentNode;
|
||||||
Document implements OnErrorEventHandlerForNodes;
|
Document includes OnErrorEventHandlerForNodes;
|
||||||
Document implements GeometryUtils;
|
Document includes GeometryUtils;
|
||||||
Document implements FontFaceSource;
|
Document includes FontFaceSource;
|
||||||
Document implements DocumentOrShadowRoot;
|
Document includes DocumentOrShadowRoot;
|
||||||
|
@ -24,4 +24,4 @@ partial interface DocumentFragment {
|
|||||||
NodeList querySelectorAll(DOMString selectors);
|
NodeList querySelectorAll(DOMString selectors);
|
||||||
};
|
};
|
||||||
|
|
||||||
DocumentFragment implements ParentNode;
|
DocumentFragment includes ParentNode;
|
||||||
|
@ -8,8 +8,7 @@
|
|||||||
* http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-the-documentorshadowroot-mixin
|
* http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-the-documentorshadowroot-mixin
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin DocumentOrShadowRoot {
|
||||||
interface DocumentOrShadowRoot {
|
|
||||||
// Not implemented yet: bug 1430308.
|
// Not implemented yet: bug 1430308.
|
||||||
// Selection? getSelection();
|
// Selection? getSelection();
|
||||||
Element? elementFromPoint (float x, float y);
|
Element? elementFromPoint (float x, float y);
|
||||||
|
@ -16,4 +16,4 @@ interface DocumentType : Node {
|
|||||||
readonly attribute DOMString systemId;
|
readonly attribute DOMString systemId;
|
||||||
};
|
};
|
||||||
|
|
||||||
DocumentType implements ChildNode;
|
DocumentType includes ChildNode;
|
||||||
|
10
crates/web-sys/webidls/enabled/Element.webidl
vendored
10
crates/web-sys/webidls/enabled/Element.webidl
vendored
@ -265,11 +265,11 @@ partial interface Element {
|
|||||||
attribute DOMString slot;
|
attribute DOMString slot;
|
||||||
};
|
};
|
||||||
|
|
||||||
Element implements ChildNode;
|
Element includes ChildNode;
|
||||||
Element implements NonDocumentTypeChildNode;
|
Element includes NonDocumentTypeChildNode;
|
||||||
Element implements ParentNode;
|
Element includes ParentNode;
|
||||||
Element implements Animatable;
|
Element includes Animatable;
|
||||||
Element implements GeometryUtils;
|
Element includes GeometryUtils;
|
||||||
|
|
||||||
// https://fullscreen.spec.whatwg.org/#api
|
// https://fullscreen.spec.whatwg.org/#api
|
||||||
partial interface Element {
|
partial interface Element {
|
||||||
|
@ -22,8 +22,7 @@ typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler;
|
|||||||
callback OnErrorEventHandlerNonNull = any ((Event or DOMString) event, optional DOMString source, optional unsigned long lineno, optional unsigned long column, optional any error);
|
callback OnErrorEventHandlerNonNull = any ((Event or DOMString) event, optional DOMString source, optional unsigned long lineno, optional unsigned long column, optional any error);
|
||||||
typedef OnErrorEventHandlerNonNull? OnErrorEventHandler;
|
typedef OnErrorEventHandlerNonNull? OnErrorEventHandler;
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin GlobalEventHandlers {
|
||||||
interface GlobalEventHandlers {
|
|
||||||
attribute EventHandler onabort;
|
attribute EventHandler onabort;
|
||||||
attribute EventHandler onblur;
|
attribute EventHandler onblur;
|
||||||
// We think the spec is wrong here. See OnErrorEventHandlerForNodes/Window
|
// We think the spec is wrong here. See OnErrorEventHandlerForNodes/Window
|
||||||
@ -134,8 +133,7 @@ interface GlobalEventHandlers {
|
|||||||
attribute EventHandler onwebkittransitionend;
|
attribute EventHandler onwebkittransitionend;
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin WindowEventHandlers {
|
||||||
interface WindowEventHandlers {
|
|
||||||
attribute EventHandler onafterprint;
|
attribute EventHandler onafterprint;
|
||||||
attribute EventHandler onbeforeprint;
|
attribute EventHandler onbeforeprint;
|
||||||
attribute OnBeforeUnloadEventHandler onbeforeunload;
|
attribute OnBeforeUnloadEventHandler onbeforeunload;
|
||||||
@ -152,8 +150,7 @@ interface WindowEventHandlers {
|
|||||||
attribute EventHandler onunload;
|
attribute EventHandler onunload;
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin DocumentAndElementEventHandlers {
|
||||||
interface DocumentAndElementEventHandlers {
|
|
||||||
attribute EventHandler oncopy;
|
attribute EventHandler oncopy;
|
||||||
attribute EventHandler oncut;
|
attribute EventHandler oncut;
|
||||||
attribute EventHandler onpaste;
|
attribute EventHandler onpaste;
|
||||||
@ -164,12 +161,10 @@ interface DocumentAndElementEventHandlers {
|
|||||||
// whether an ErrorEvent was fired. We don't do that, and until we do we'll
|
// whether an ErrorEvent was fired. We don't do that, and until we do we'll
|
||||||
// need to distinguish between onerror on Window or on nodes.
|
// need to distinguish between onerror on Window or on nodes.
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin OnErrorEventHandlerForNodes {
|
||||||
interface OnErrorEventHandlerForNodes {
|
|
||||||
attribute EventHandler onerror;
|
attribute EventHandler onerror;
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin OnErrorEventHandlerForWindow {
|
||||||
interface OnErrorEventHandlerForWindow {
|
|
||||||
attribute OnErrorEventHandler onerror;
|
attribute OnErrorEventHandler onerror;
|
||||||
};
|
};
|
||||||
|
4
crates/web-sys/webidls/enabled/Fetch.webidl
vendored
4
crates/web-sys/webidls/enabled/Fetch.webidl
vendored
@ -10,8 +10,8 @@
|
|||||||
typedef object JSON;
|
typedef object JSON;
|
||||||
typedef (Blob or BufferSource or FormData or URLSearchParams or USVString) BodyInit;
|
typedef (Blob or BufferSource or FormData or URLSearchParams or USVString) BodyInit;
|
||||||
|
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[Exposed=(Window,Worker)]
|
||||||
interface Body {
|
interface mixin Body {
|
||||||
readonly attribute boolean bodyUsed;
|
readonly attribute boolean bodyUsed;
|
||||||
[Throws]
|
[Throws]
|
||||||
Promise<ArrayBuffer> arrayBuffer();
|
Promise<ArrayBuffer> arrayBuffer();
|
||||||
|
@ -10,9 +10,7 @@
|
|||||||
* liability, trademark and document use rules apply.
|
* liability, trademark and document use rules apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin FontFaceSource {
|
||||||
interface FontFaceSource {
|
|
||||||
|
|
||||||
[Pref="layout.css.font-loading-api.enabled"]
|
[Pref="layout.css.font-loading-api.enabled"]
|
||||||
readonly attribute FontFaceSet fonts;
|
readonly attribute FontFaceSet fonts;
|
||||||
};
|
};
|
||||||
|
@ -209,12 +209,11 @@ interface FrameLoader {
|
|||||||
* The nsIWebBrowserPersistDocumentReceiver is a callback that
|
* The nsIWebBrowserPersistDocumentReceiver is a callback that
|
||||||
* will be fired once the document is ready for persisting.
|
* will be fired once the document is ready for persisting.
|
||||||
*/
|
*/
|
||||||
[NoInterfaceObject]
|
interface mixin WebBrowserPersistable
|
||||||
interface WebBrowserPersistable
|
|
||||||
{
|
{
|
||||||
[Throws]
|
[Throws]
|
||||||
void startPersistence(unsigned long long aOuterWindowID,
|
void startPersistence(unsigned long long aOuterWindowID,
|
||||||
nsIWebBrowserPersistDocumentReceiver aRecv);
|
nsIWebBrowserPersistDocumentReceiver aRecv);
|
||||||
};
|
};
|
||||||
|
|
||||||
FrameLoader implements WebBrowserPersistable;
|
FrameLoader includes WebBrowserPersistable;
|
||||||
|
@ -21,8 +21,7 @@ dictionary ConvertCoordinateOptions {
|
|||||||
CSSBoxType toBox = "border";
|
CSSBoxType toBox = "border";
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin GeometryUtils {
|
||||||
interface GeometryUtils {
|
|
||||||
[Throws, Func="nsINode::HasBoxQuadsSupport", NeedsCallerType]
|
[Throws, Func="nsINode::HasBoxQuadsSupport", NeedsCallerType]
|
||||||
sequence<DOMQuad> getBoxQuads(optional BoxQuadOptions options);
|
sequence<DOMQuad> getBoxQuads(optional BoxQuadOptions options);
|
||||||
[Throws, Pref="layout.css.convertFromNode.enabled", NeedsCallerType]
|
[Throws, Pref="layout.css.convertFromNode.enabled", NeedsCallerType]
|
||||||
@ -33,6 +32,6 @@ interface GeometryUtils {
|
|||||||
DOMPoint convertPointFromNode(DOMPointInit point, GeometryNode from, optional ConvertCoordinateOptions options);
|
DOMPoint convertPointFromNode(DOMPointInit point, GeometryNode from, optional ConvertCoordinateOptions options);
|
||||||
};
|
};
|
||||||
|
|
||||||
// PseudoElement implements GeometryUtils;
|
// PseudoElement includes GeometryUtils;
|
||||||
|
|
||||||
typedef (Text or Element /* or PseudoElement */ or Document) GeometryNode;
|
typedef (Text or Element /* or PseudoElement */ or Document) GeometryNode;
|
||||||
|
@ -35,7 +35,7 @@ interface HTMLAnchorElement : HTMLElement {
|
|||||||
attribute DOMString text;
|
attribute DOMString text;
|
||||||
};
|
};
|
||||||
|
|
||||||
HTMLAnchorElement implements HTMLHyperlinkElementUtils;
|
HTMLAnchorElement includes HTMLHyperlinkElementUtils;
|
||||||
|
|
||||||
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
||||||
partial interface HTMLAnchorElement {
|
partial interface HTMLAnchorElement {
|
||||||
|
@ -35,7 +35,7 @@ interface HTMLAreaElement : HTMLElement {
|
|||||||
readonly attribute DOMTokenList relList;
|
readonly attribute DOMTokenList relList;
|
||||||
};
|
};
|
||||||
|
|
||||||
HTMLAreaElement implements HTMLHyperlinkElementUtils;
|
HTMLAreaElement includes HTMLHyperlinkElementUtils;
|
||||||
|
|
||||||
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
||||||
partial interface HTMLAreaElement {
|
partial interface HTMLAreaElement {
|
||||||
|
@ -30,4 +30,4 @@ partial interface HTMLBodyElement {
|
|||||||
attribute DOMString background;
|
attribute DOMString background;
|
||||||
};
|
};
|
||||||
|
|
||||||
HTMLBodyElement implements WindowEventHandlers;
|
HTMLBodyElement includes WindowEventHandlers;
|
||||||
|
@ -80,8 +80,7 @@ partial interface HTMLElement {
|
|||||||
readonly attribute long offsetHeight;
|
readonly attribute long offsetHeight;
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin TouchEventHandlers {
|
||||||
interface TouchEventHandlers {
|
|
||||||
[Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
[Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
||||||
attribute EventHandler ontouchstart;
|
attribute EventHandler ontouchstart;
|
||||||
[Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
[Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
||||||
@ -92,9 +91,9 @@ interface TouchEventHandlers {
|
|||||||
attribute EventHandler ontouchcancel;
|
attribute EventHandler ontouchcancel;
|
||||||
};
|
};
|
||||||
|
|
||||||
HTMLElement implements GlobalEventHandlers;
|
HTMLElement includes GlobalEventHandlers;
|
||||||
HTMLElement implements DocumentAndElementEventHandlers;
|
HTMLElement includes DocumentAndElementEventHandlers;
|
||||||
HTMLElement implements TouchEventHandlers;
|
HTMLElement includes TouchEventHandlers;
|
||||||
HTMLElement implements OnErrorEventHandlerForNodes;
|
HTMLElement includes OnErrorEventHandlerForNodes;
|
||||||
|
|
||||||
interface HTMLUnknownElement : HTMLElement {};
|
interface HTMLUnknownElement : HTMLElement {};
|
||||||
|
@ -39,6 +39,6 @@ partial interface HTMLEmbedElement {
|
|||||||
Document? getSVGDocument();
|
Document? getSVGDocument();
|
||||||
};
|
};
|
||||||
|
|
||||||
HTMLEmbedElement implements MozImageLoadingContent;
|
HTMLEmbedElement includes MozImageLoadingContent;
|
||||||
HTMLEmbedElement implements MozFrameLoaderOwner;
|
HTMLEmbedElement includes MozFrameLoaderOwner;
|
||||||
HTMLEmbedElement implements MozObjectLoadingContent;
|
HTMLEmbedElement includes MozObjectLoadingContent;
|
||||||
|
@ -35,4 +35,4 @@ interface HTMLFrameElement : HTMLElement {
|
|||||||
attribute DOMString marginWidth;
|
attribute DOMString marginWidth;
|
||||||
};
|
};
|
||||||
|
|
||||||
HTMLFrameElement implements MozFrameLoaderOwner;
|
HTMLFrameElement includes MozFrameLoaderOwner;
|
||||||
|
@ -19,4 +19,4 @@ interface HTMLFrameSetElement : HTMLElement {
|
|||||||
attribute DOMString rows;
|
attribute DOMString rows;
|
||||||
};
|
};
|
||||||
|
|
||||||
HTMLFrameSetElement implements WindowEventHandlers;
|
HTMLFrameSetElement includes WindowEventHandlers;
|
||||||
|
@ -65,5 +65,5 @@ partial interface HTMLIFrameElement {
|
|||||||
attribute boolean mozbrowser;
|
attribute boolean mozbrowser;
|
||||||
};
|
};
|
||||||
|
|
||||||
HTMLIFrameElement implements MozFrameLoaderOwner;
|
HTMLIFrameElement includes MozFrameLoaderOwner;
|
||||||
HTMLIFrameElement implements BrowserElement;
|
HTMLIFrameElement includes BrowserElement;
|
||||||
|
@ -67,55 +67,3 @@ partial interface HTMLImageElement {
|
|||||||
attribute DOMString sizes;
|
attribute DOMString sizes;
|
||||||
readonly attribute DOMString currentSrc;
|
readonly attribute DOMString currentSrc;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
[NoInterfaceObject]
|
|
||||||
interface MozImageLoadingContent {
|
|
||||||
// Mirrored chrome-only nsIImageLoadingContent methods. Please make sure
|
|
||||||
// to update this list if nsIImageLoadingContent changes.
|
|
||||||
[ChromeOnly]
|
|
||||||
const long UNKNOWN_REQUEST = -1;
|
|
||||||
[ChromeOnly]
|
|
||||||
const long CURRENT_REQUEST = 0;
|
|
||||||
[ChromeOnly]
|
|
||||||
const long PENDING_REQUEST = 1;
|
|
||||||
|
|
||||||
[ChromeOnly]
|
|
||||||
attribute boolean loadingEnabled;
|
|
||||||
[ChromeOnly]
|
|
||||||
readonly attribute short imageBlockingStatus;
|
|
||||||
/**
|
|
||||||
* Same as addNativeObserver but intended for scripted observers or observers
|
|
||||||
* from another or without a document.
|
|
||||||
*/
|
|
||||||
[ChromeOnly]
|
|
||||||
void addObserver(imgINotificationObserver aObserver);
|
|
||||||
/**
|
|
||||||
* Same as removeNativeObserver but intended for scripted observers or
|
|
||||||
* observers from another or without a document.
|
|
||||||
*/
|
|
||||||
[ChromeOnly]
|
|
||||||
void removeObserver(imgINotificationObserver aObserver);
|
|
||||||
[ChromeOnly,Throws]
|
|
||||||
imgIRequest? getRequest(long aRequestType);
|
|
||||||
[ChromeOnly,Throws]
|
|
||||||
long getRequestType(imgIRequest aRequest);
|
|
||||||
[ChromeOnly,Throws]
|
|
||||||
readonly attribute URI? currentURI;
|
|
||||||
// Gets the final URI of the current request, if available.
|
|
||||||
// Otherwise, returns null.
|
|
||||||
[ChromeOnly]
|
|
||||||
readonly attribute URI? currentRequestFinalURI;
|
|
||||||
/**
|
|
||||||
* forceReload forces reloading of the image pointed to by currentURI
|
|
||||||
*
|
|
||||||
* @param aNotify request should notify
|
|
||||||
* @throws NS_ERROR_NOT_AVAILABLE if there is no current URI to reload
|
|
||||||
*/
|
|
||||||
[ChromeOnly,Throws]
|
|
||||||
void forceReload(optional boolean aNotify = true);
|
|
||||||
[ChromeOnly]
|
|
||||||
void forceImageState(boolean aForce, unsigned long long aState);
|
|
||||||
};
|
|
||||||
|
|
||||||
HTMLImageElement implements MozImageLoadingContent;
|
|
||||||
|
@ -147,7 +147,7 @@ partial interface HTMLInputElement {
|
|||||||
attribute DOMString useMap;
|
attribute DOMString useMap;
|
||||||
};
|
};
|
||||||
|
|
||||||
HTMLInputElement implements MozEditableElement;
|
HTMLInputElement includes MozEditableElement;
|
||||||
|
|
||||||
/*Non standard
|
/*Non standard
|
||||||
partial interface HTMLInputElement {
|
partial interface HTMLInputElement {
|
||||||
@ -168,7 +168,7 @@ partial interface HTMLInputElement {
|
|||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
|
|
||||||
HTMLInputElement implements MozImageLoadingContent;
|
HTMLInputElement includes MozImageLoadingContent;
|
||||||
|
|
||||||
// Webkit/Blink
|
// Webkit/Blink
|
||||||
partial interface HTMLInputElement {
|
partial interface HTMLInputElement {
|
||||||
|
@ -34,7 +34,7 @@ interface HTMLLinkElement : HTMLElement {
|
|||||||
attribute DOMString referrerPolicy;
|
attribute DOMString referrerPolicy;
|
||||||
[PutForwards=value] readonly attribute DOMTokenList sizes;
|
[PutForwards=value] readonly attribute DOMTokenList sizes;
|
||||||
};
|
};
|
||||||
HTMLLinkElement implements LinkStyle;
|
HTMLLinkElement includes LinkStyle;
|
||||||
|
|
||||||
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
||||||
partial interface HTMLLinkElement {
|
partial interface HTMLLinkElement {
|
||||||
|
@ -78,145 +78,6 @@ partial interface HTMLObjectElement {
|
|||||||
Document? getSVGDocument();
|
Document? getSVGDocument();
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
|
||||||
interface MozObjectLoadingContent {
|
|
||||||
// Mirrored chrome-only scriptable nsIObjectLoadingContent methods. Please
|
|
||||||
// make sure to update this list if nsIObjectLoadingContent changes. Also,
|
|
||||||
// make sure everything on here is [ChromeOnly].
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long TYPE_LOADING = 0;
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long TYPE_IMAGE = 1;
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long TYPE_PLUGIN = 2;
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long TYPE_FAKE_PLUGIN = 3;
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long TYPE_DOCUMENT = 4;
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long TYPE_NULL = 5;
|
|
||||||
|
|
||||||
// The content type is not supported (e.g. plugin not installed)
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long PLUGIN_UNSUPPORTED = 0;
|
|
||||||
// Showing alternate content
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long PLUGIN_ALTERNATE = 1;
|
|
||||||
// The plugin exists, but is disabled
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long PLUGIN_DISABLED = 2;
|
|
||||||
// The plugin is blocklisted and disabled
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long PLUGIN_BLOCKLISTED = 3;
|
|
||||||
// The plugin is considered outdated, but not disabled
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long PLUGIN_OUTDATED = 4;
|
|
||||||
// The plugin has crashed
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long PLUGIN_CRASHED = 5;
|
|
||||||
// Suppressed by security policy
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long PLUGIN_SUPPRESSED = 6;
|
|
||||||
// Blocked by content policy
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long PLUGIN_USER_DISABLED = 7;
|
|
||||||
/// ** All values >= PLUGIN_CLICK_TO_PLAY are plugin placeholder types that
|
|
||||||
/// would be replaced by a real plugin if activated (playPlugin())
|
|
||||||
/// ** Furthermore, values >= PLUGIN_CLICK_TO_PLAY and
|
|
||||||
/// <= PLUGIN_VULNERABLE_NO_UPDATE are click-to-play types.
|
|
||||||
// The plugin is disabled until the user clicks on it
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long PLUGIN_CLICK_TO_PLAY = 8;
|
|
||||||
// The plugin is vulnerable (update available)
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long PLUGIN_VULNERABLE_UPDATABLE = 9;
|
|
||||||
// The plugin is vulnerable (no update available)
|
|
||||||
[ChromeOnly]
|
|
||||||
const unsigned long PLUGIN_VULNERABLE_NO_UPDATE = 10;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The actual mime type (the one we got back from the network
|
|
||||||
* request) for the element.
|
|
||||||
*/
|
|
||||||
[ChromeOnly]
|
|
||||||
readonly attribute DOMString actualType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the type of the content that's currently loaded. See
|
|
||||||
* the constants above for the list of possible values.
|
|
||||||
*/
|
|
||||||
[ChromeOnly]
|
|
||||||
readonly attribute unsigned long displayedType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the content type that corresponds to the give MIME type. See the
|
|
||||||
* constants above for the list of possible values. If nothing else fits,
|
|
||||||
* TYPE_NULL will be returned.
|
|
||||||
*/
|
|
||||||
[ChromeOnly]
|
|
||||||
unsigned long getContentTypeForMIMEType(DOMString aMimeType);
|
|
||||||
|
|
||||||
|
|
||||||
[ChromeOnly]
|
|
||||||
sequence<MozPluginParameter> getPluginAttributes();
|
|
||||||
|
|
||||||
[ChromeOnly]
|
|
||||||
sequence<MozPluginParameter> getPluginParameters();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method will play a plugin that has been stopped by the click-to-play
|
|
||||||
* feature.
|
|
||||||
*/
|
|
||||||
[ChromeOnly, Throws, NeedsCallerType]
|
|
||||||
void playPlugin();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Forces a re-evaluation and reload of the tag, optionally invalidating its
|
|
||||||
* click-to-play state. This can be used when the MIME type that provides a
|
|
||||||
* type has changed, for instance, to force the tag to re-evalulate the
|
|
||||||
* handler to use.
|
|
||||||
*/
|
|
||||||
[ChromeOnly, Throws]
|
|
||||||
void reload(boolean aClearActivation);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This attribute will return true if the current content type has been
|
|
||||||
* activated, either explicitly or by passing checks that would have it be
|
|
||||||
* click-to-play.
|
|
||||||
*/
|
|
||||||
[ChromeOnly]
|
|
||||||
readonly attribute boolean activated;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The URL of the data/src loaded in the object. This may be null (i.e.
|
|
||||||
* an <embed> with no src).
|
|
||||||
*/
|
|
||||||
[ChromeOnly]
|
|
||||||
readonly attribute URI? srcURI;
|
|
||||||
|
|
||||||
[ChromeOnly]
|
|
||||||
readonly attribute unsigned long defaultFallbackType;
|
|
||||||
|
|
||||||
[ChromeOnly]
|
|
||||||
readonly attribute unsigned long pluginFallbackType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* If this object currently owns a running plugin, regardless of whether or
|
|
||||||
* not one is pending spawn/despawn.
|
|
||||||
*/
|
|
||||||
[ChromeOnly]
|
|
||||||
readonly attribute boolean hasRunningPlugin;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Disable the use of fake plugins and reload the tag if necessary
|
|
||||||
*/
|
|
||||||
[ChromeOnly, Throws]
|
|
||||||
void skipFakePlugins();
|
|
||||||
|
|
||||||
[ChromeOnly, Throws, NeedsCallerType]
|
|
||||||
readonly attribute unsigned long runID;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name:Value pair type used for passing parameters to NPAPI or javascript
|
* Name:Value pair type used for passing parameters to NPAPI or javascript
|
||||||
* plugins.
|
* plugins.
|
||||||
@ -226,6 +87,6 @@ dictionary MozPluginParameter {
|
|||||||
DOMString value = "";
|
DOMString value = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
HTMLObjectElement implements MozImageLoadingContent;
|
HTMLObjectElement includes MozImageLoadingContent;
|
||||||
HTMLObjectElement implements MozFrameLoaderOwner;
|
HTMLObjectElement includes MozFrameLoaderOwner;
|
||||||
HTMLObjectElement implements MozObjectLoadingContent;
|
HTMLObjectElement includes MozObjectLoadingContent;
|
||||||
|
@ -17,5 +17,4 @@ interface HTMLStyleElement : HTMLElement {
|
|||||||
[CEReactions, SetterThrows, Pure]
|
[CEReactions, SetterThrows, Pure]
|
||||||
attribute DOMString type;
|
attribute DOMString type;
|
||||||
};
|
};
|
||||||
HTMLStyleElement implements LinkStyle;
|
HTMLStyleElement includes LinkStyle;
|
||||||
|
|
||||||
|
@ -81,4 +81,4 @@ interface HTMLTextAreaElement : HTMLElement {
|
|||||||
void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
|
void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
|
||||||
};
|
};
|
||||||
|
|
||||||
HTMLTextAreaElement implements MozEditableElement;
|
HTMLTextAreaElement includes MozEditableElement;
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
||||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
* 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/.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// invalid widl
|
|
||||||
//interface nsISupports;
|
|
||||||
//interface IID;
|
|
||||||
|
|
||||||
[NoInterfaceObject,
|
|
||||||
// Need Exposed here, because this is a mixin onto things like Event
|
|
||||||
// that are exposed in workers.
|
|
||||||
Exposed=(Window,Worker,System)]
|
|
||||||
interface LegacyQueryInterface {
|
|
||||||
// Legacy QueryInterface, only exposed to chrome code on the main thread.
|
|
||||||
[Exposed=(Window,System), ChromeOnly]
|
|
||||||
nsISupports QueryInterface(IID iid);
|
|
||||||
};
|
|
||||||
|
|
||||||
BoxObject implements LegacyQueryInterface;
|
|
||||||
DOMParser implements LegacyQueryInterface;
|
|
||||||
Document implements LegacyQueryInterface;
|
|
||||||
DocumentFragment implements LegacyQueryInterface;
|
|
||||||
Element implements LegacyQueryInterface;
|
|
||||||
Event implements LegacyQueryInterface;
|
|
||||||
Selection implements LegacyQueryInterface;
|
|
||||||
TreeColumns implements LegacyQueryInterface;
|
|
||||||
TreeContentView implements LegacyQueryInterface;
|
|
||||||
Window implements LegacyQueryInterface;
|
|
||||||
XMLHttpRequest implements LegacyQueryInterface;
|
|
@ -7,8 +7,6 @@
|
|||||||
* http://dev.w3.org/csswg/cssom/#the-linkstyle-interface
|
* http://dev.w3.org/csswg/cssom/#the-linkstyle-interface
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin LinkStyle {
|
||||||
interface LinkStyle {
|
|
||||||
readonly attribute StyleSheet? sheet;
|
readonly attribute StyleSheet? sheet;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -19,4 +19,4 @@ interface MessagePort : EventTarget {
|
|||||||
attribute EventHandler onmessage;
|
attribute EventHandler onmessage;
|
||||||
attribute EventHandler onmessageerror;
|
attribute EventHandler onmessageerror;
|
||||||
};
|
};
|
||||||
// MessagePort implements Transferable;
|
// MessagePort includes Transferable;
|
||||||
|
47
crates/web-sys/webidls/enabled/Navigator.webidl
vendored
47
crates/web-sys/webidls/enabled/Navigator.webidl
vendored
@ -28,17 +28,17 @@
|
|||||||
interface Navigator {
|
interface Navigator {
|
||||||
// objects implementing this interface also implement the interfaces given below
|
// objects implementing this interface also implement the interfaces given below
|
||||||
};
|
};
|
||||||
Navigator implements NavigatorID;
|
Navigator includes NavigatorID;
|
||||||
Navigator implements NavigatorLanguage;
|
Navigator includes NavigatorLanguage;
|
||||||
Navigator implements NavigatorOnLine;
|
Navigator includes NavigatorOnLine;
|
||||||
Navigator implements NavigatorContentUtils;
|
Navigator includes NavigatorContentUtils;
|
||||||
Navigator implements NavigatorStorageUtils;
|
Navigator includes NavigatorStorageUtils;
|
||||||
Navigator implements NavigatorConcurrentHardware;
|
Navigator includes NavigatorConcurrentHardware;
|
||||||
Navigator implements NavigatorStorage;
|
Navigator includes NavigatorStorage;
|
||||||
Navigator implements NavigatorAutomationInformation;
|
Navigator includes NavigatorAutomationInformation;
|
||||||
|
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[Exposed=(Window,Worker)]
|
||||||
interface NavigatorID {
|
interface mixin NavigatorID {
|
||||||
// WebKit/Blink/Trident/Presto support this (hardcoded "Mozilla").
|
// WebKit/Blink/Trident/Presto support this (hardcoded "Mozilla").
|
||||||
[Constant, Cached, Throws]
|
[Constant, Cached, Throws]
|
||||||
readonly attribute DOMString appCodeName; // constant "Mozilla"
|
readonly attribute DOMString appCodeName; // constant "Mozilla"
|
||||||
@ -58,8 +58,8 @@ interface NavigatorID {
|
|||||||
boolean taintEnabled(); // constant false
|
boolean taintEnabled(); // constant false
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[Exposed=(Window,Worker)]
|
||||||
interface NavigatorLanguage {
|
interface mixin NavigatorLanguage {
|
||||||
|
|
||||||
// These two attributes are cached because this interface is also implemented
|
// These two attributes are cached because this interface is also implemented
|
||||||
// by Workernavigator and this way we don't have to go back to the
|
// by Workernavigator and this way we don't have to go back to the
|
||||||
@ -72,13 +72,12 @@ interface NavigatorLanguage {
|
|||||||
readonly attribute sequence<DOMString> languages;
|
readonly attribute sequence<DOMString> languages;
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[Exposed=(Window,Worker)]
|
||||||
interface NavigatorOnLine {
|
interface mixin NavigatorOnLine {
|
||||||
readonly attribute boolean onLine;
|
readonly attribute boolean onLine;
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin NavigatorContentUtils {
|
||||||
interface NavigatorContentUtils {
|
|
||||||
// content handler registration
|
// content handler registration
|
||||||
[Throws, Func="nsGlobalWindowInner::RegisterProtocolHandlerAllowedForContext"]
|
[Throws, Func="nsGlobalWindowInner::RegisterProtocolHandlerAllowedForContext"]
|
||||||
void registerProtocolHandler(DOMString scheme, DOMString url, DOMString title);
|
void registerProtocolHandler(DOMString scheme, DOMString url, DOMString title);
|
||||||
@ -91,14 +90,13 @@ interface NavigatorContentUtils {
|
|||||||
//void unregisterContentHandler(DOMString mimeType, DOMString url);
|
//void unregisterContentHandler(DOMString mimeType, DOMString url);
|
||||||
};
|
};
|
||||||
|
|
||||||
[SecureContext, NoInterfaceObject, Exposed=(Window,Worker)]
|
[SecureContext, Exposed=(Window,Worker)]
|
||||||
interface NavigatorStorage {
|
interface mixin NavigatorStorage {
|
||||||
[Func="mozilla::dom::DOMPrefs::StorageManagerEnabled"]
|
[Func="mozilla::dom::DOMPrefs::StorageManagerEnabled"]
|
||||||
readonly attribute StorageManager storage;
|
readonly attribute StorageManager storage;
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin NavigatorStorageUtils {
|
||||||
interface NavigatorStorageUtils {
|
|
||||||
// NOT IMPLEMENTED
|
// NOT IMPLEMENTED
|
||||||
//void yieldForStorageUpdates();
|
//void yieldForStorageUpdates();
|
||||||
};
|
};
|
||||||
@ -123,12 +121,11 @@ partial interface Navigator {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// http://www.w3.org/TR/geolocation-API/#geolocation_interface
|
// http://www.w3.org/TR/geolocation-API/#geolocation_interface
|
||||||
[NoInterfaceObject]
|
interface mixin NavigatorGeolocation {
|
||||||
interface NavigatorGeolocation {
|
|
||||||
[Throws, Pref="geo.enabled"]
|
[Throws, Pref="geo.enabled"]
|
||||||
readonly attribute Geolocation geolocation;
|
readonly attribute Geolocation geolocation;
|
||||||
};
|
};
|
||||||
Navigator implements NavigatorGeolocation;
|
Navigator includes NavigatorGeolocation;
|
||||||
|
|
||||||
// http://www.w3.org/TR/battery-status/#navigatorbattery-interface
|
// http://www.w3.org/TR/battery-status/#navigatorbattery-interface
|
||||||
partial interface Navigator {
|
partial interface Navigator {
|
||||||
@ -262,8 +259,8 @@ partial interface Navigator {
|
|||||||
sequence<MediaKeySystemConfiguration> supportedConfigurations);
|
sequence<MediaKeySystemConfiguration> supportedConfigurations);
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[Exposed=(Window,Worker)]
|
||||||
interface NavigatorConcurrentHardware {
|
interface mixin NavigatorConcurrentHardware {
|
||||||
readonly attribute unsigned long long hardwareConcurrency;
|
readonly attribute unsigned long long hardwareConcurrency;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -27,4 +27,4 @@ interface OffscreenCanvas : EventTarget {
|
|||||||
optional any encoderOptions);
|
optional any encoderOptions);
|
||||||
};
|
};
|
||||||
|
|
||||||
// OffscreenCanvas implements Transferable;
|
// OffscreenCanvas includes Transferable;
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
* http://dom.spec.whatwg.org/#interface-parentnode
|
* http://dom.spec.whatwg.org/#interface-parentnode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin ParentNode {
|
||||||
interface ParentNode {
|
|
||||||
[Constant]
|
[Constant]
|
||||||
readonly attribute HTMLCollection children;
|
readonly attribute HTMLCollection children;
|
||||||
[Pure]
|
[Pure]
|
||||||
|
@ -17,4 +17,4 @@ interface ProcessingInstruction : CharacterData {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// https://drafts.csswg.org/cssom/#requirements-on-user-agents-implementing-the-xml-stylesheet-processing-instruction
|
// https://drafts.csswg.org/cssom/#requirements-on-user-agents-implementing-the-xml-stylesheet-processing-instruction
|
||||||
ProcessingInstruction implements LinkStyle;
|
ProcessingInstruction includes LinkStyle;
|
||||||
|
@ -41,7 +41,7 @@ interface Request {
|
|||||||
[ChromeOnly]
|
[ChromeOnly]
|
||||||
void overrideContentPolicyType(nsContentPolicyType context);
|
void overrideContentPolicyType(nsContentPolicyType context);
|
||||||
};
|
};
|
||||||
Request implements Body;
|
Request includes Body;
|
||||||
|
|
||||||
dictionary RequestInit {
|
dictionary RequestInit {
|
||||||
ByteString method;
|
ByteString method;
|
||||||
|
@ -30,7 +30,7 @@ interface Response {
|
|||||||
|
|
||||||
[ChromeOnly, NewObject, Throws] Response cloneUnfiltered();
|
[ChromeOnly, NewObject, Throws] Response cloneUnfiltered();
|
||||||
};
|
};
|
||||||
Response implements Body;
|
Response includes Body;
|
||||||
|
|
||||||
// This should be part of Body but we don't want to expose body to request yet.
|
// This should be part of Body but we don't want to expose body to request yet.
|
||||||
// See bug 1387483.
|
// See bug 1387483.
|
||||||
|
@ -32,5 +32,4 @@ interface SVGAElement : SVGGraphicsElement {
|
|||||||
attribute DOMString text;
|
attribute DOMString text;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGAElement implements SVGURIReference;
|
SVGAElement includes SVGURIReference;
|
||||||
|
|
||||||
|
@ -10,11 +10,9 @@
|
|||||||
* liability, trademark and document use rules apply.
|
* liability, trademark and document use rules apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin SVGAnimatedPathData {
|
||||||
interface SVGAnimatedPathData {
|
|
||||||
readonly attribute SVGPathSegList pathSegList;
|
readonly attribute SVGPathSegList pathSegList;
|
||||||
//readonly attribute SVGPathSegList normalizedPathSegList;
|
//readonly attribute SVGPathSegList normalizedPathSegList;
|
||||||
readonly attribute SVGPathSegList animatedPathSegList;
|
readonly attribute SVGPathSegList animatedPathSegList;
|
||||||
//readonly attribute SVGPathSegList animatedNormalizedPathSegList;
|
//readonly attribute SVGPathSegList animatedNormalizedPathSegList;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -10,11 +10,9 @@
|
|||||||
* liability, trademark and document use rules apply.
|
* liability, trademark and document use rules apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin SVGAnimatedPoints {
|
||||||
interface SVGAnimatedPoints {
|
|
||||||
[Constant]
|
[Constant]
|
||||||
readonly attribute SVGPointList points;
|
readonly attribute SVGPointList points;
|
||||||
[Constant]
|
[Constant]
|
||||||
readonly attribute SVGPointList animatedPoints;
|
readonly attribute SVGPointList animatedPoints;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -30,5 +30,4 @@ interface SVGAnimationElement : SVGElement {
|
|||||||
void endElementAt(float offset);
|
void endElementAt(float offset);
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGAnimationElement implements SVGTests;
|
SVGAnimationElement includes SVGTests;
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ interface SVGElement : Element {
|
|||||||
[Throws] void blur();
|
[Throws] void blur();
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGElement implements GlobalEventHandlers;
|
SVGElement includes GlobalEventHandlers;
|
||||||
SVGElement implements DocumentAndElementEventHandlers;
|
SVGElement includes DocumentAndElementEventHandlers;
|
||||||
SVGElement implements TouchEventHandlers;
|
SVGElement includes TouchEventHandlers;
|
||||||
SVGElement implements OnErrorEventHandlerForNodes;
|
SVGElement includes OnErrorEventHandlerForNodes;
|
||||||
|
@ -38,4 +38,4 @@ interface SVGFEBlendElement : SVGElement {
|
|||||||
readonly attribute SVGAnimatedEnumeration mode;
|
readonly attribute SVGAnimatedEnumeration mode;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFEBlendElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFEBlendElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
|
@ -27,4 +27,4 @@ interface SVGFEColorMatrixElement : SVGElement {
|
|||||||
readonly attribute SVGAnimatedNumberList values;
|
readonly attribute SVGAnimatedNumberList values;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFEColorMatrixElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFEColorMatrixElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
|
@ -15,4 +15,4 @@ interface SVGFEComponentTransferElement : SVGElement {
|
|||||||
readonly attribute SVGAnimatedString in1;
|
readonly attribute SVGAnimatedString in1;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFEComponentTransferElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFEComponentTransferElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
|
@ -37,4 +37,4 @@ interface SVGFECompositeElement : SVGElement {
|
|||||||
readonly attribute SVGAnimatedNumber k4;
|
readonly attribute SVGAnimatedNumber k4;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFECompositeElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFECompositeElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
|
@ -44,4 +44,4 @@ interface SVGFEConvolveMatrixElement : SVGElement {
|
|||||||
readonly attribute SVGAnimatedBoolean preserveAlpha;
|
readonly attribute SVGAnimatedBoolean preserveAlpha;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFEConvolveMatrixElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFEConvolveMatrixElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
|
@ -23,4 +23,4 @@ interface SVGFEDiffuseLightingElement : SVGElement {
|
|||||||
readonly attribute SVGAnimatedNumber kernelUnitLengthY;
|
readonly attribute SVGAnimatedNumber kernelUnitLengthY;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFEDiffuseLightingElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFEDiffuseLightingElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
|
@ -31,4 +31,4 @@ interface SVGFEDisplacementMapElement : SVGElement {
|
|||||||
readonly attribute SVGAnimatedEnumeration yChannelSelector;
|
readonly attribute SVGAnimatedEnumeration yChannelSelector;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFEDisplacementMapElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFEDisplacementMapElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
|
@ -25,4 +25,4 @@ interface SVGFEDropShadowElement : SVGElement {
|
|||||||
void setStdDeviation(float stdDeviationX, float stdDeviationY);
|
void setStdDeviation(float stdDeviationX, float stdDeviationY);
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFEDropShadowElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFEDropShadowElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
|
@ -13,4 +13,4 @@
|
|||||||
interface SVGFEFloodElement : SVGElement {
|
interface SVGFEFloodElement : SVGElement {
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFEFloodElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFEFloodElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
|
@ -21,4 +21,4 @@ interface SVGFEGaussianBlurElement : SVGElement {
|
|||||||
void setStdDeviation(float stdDeviationX, float stdDeviationY);
|
void setStdDeviation(float stdDeviationX, float stdDeviationY);
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFEGaussianBlurElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFEGaussianBlurElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
|
@ -15,5 +15,5 @@ interface SVGFEImageElement : SVGElement {
|
|||||||
readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio;
|
readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFEImageElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFEImageElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
SVGFEImageElement implements SVGURIReference;
|
SVGFEImageElement includes SVGURIReference;
|
||||||
|
@ -13,4 +13,4 @@
|
|||||||
interface SVGFEMergeElement : SVGElement {
|
interface SVGFEMergeElement : SVGElement {
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFEMergeElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFEMergeElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
|
@ -27,4 +27,4 @@ interface SVGFEMorphologyElement : SVGElement {
|
|||||||
readonly attribute SVGAnimatedNumber radiusY;
|
readonly attribute SVGAnimatedNumber radiusY;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFEMorphologyElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFEMorphologyElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
|
@ -19,4 +19,4 @@ interface SVGFEOffsetElement : SVGElement {
|
|||||||
readonly attribute SVGAnimatedNumber dy;
|
readonly attribute SVGAnimatedNumber dy;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFEOffsetElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFEOffsetElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
|
@ -25,4 +25,4 @@ interface SVGFESpecularLightingElement : SVGElement {
|
|||||||
readonly attribute SVGAnimatedNumber kernelUnitLengthY;
|
readonly attribute SVGAnimatedNumber kernelUnitLengthY;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFESpecularLightingElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFESpecularLightingElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
|
@ -15,4 +15,4 @@ interface SVGFETileElement : SVGElement {
|
|||||||
readonly attribute SVGAnimatedString in1;
|
readonly attribute SVGAnimatedString in1;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFETileElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFETileElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
|
@ -36,4 +36,4 @@ interface SVGFETurbulenceElement : SVGElement {
|
|||||||
readonly attribute SVGAnimatedEnumeration type;
|
readonly attribute SVGAnimatedEnumeration type;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFETurbulenceElement implements SVGFilterPrimitiveStandardAttributes;
|
SVGFETurbulenceElement includes SVGFilterPrimitiveStandardAttributes;
|
||||||
|
@ -27,5 +27,4 @@ interface SVGFilterElement : SVGElement {
|
|||||||
// ImageData apply(ImageData source);
|
// ImageData apply(ImageData source);
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGFilterElement implements SVGURIReference;
|
SVGFilterElement includes SVGURIReference;
|
||||||
|
|
||||||
|
@ -10,8 +10,7 @@
|
|||||||
* liability, trademark and document use rules apply.
|
* liability, trademark and document use rules apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin SVGFilterPrimitiveStandardAttributes {
|
||||||
interface SVGFilterPrimitiveStandardAttributes {
|
|
||||||
[Constant]
|
[Constant]
|
||||||
readonly attribute SVGAnimatedLength x;
|
readonly attribute SVGAnimatedLength x;
|
||||||
[Constant]
|
[Constant]
|
||||||
|
@ -10,11 +10,9 @@
|
|||||||
* liability, trademark and document use rules apply.
|
* liability, trademark and document use rules apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin SVGFitToViewBox {
|
||||||
interface SVGFitToViewBox {
|
|
||||||
[Constant]
|
[Constant]
|
||||||
readonly attribute SVGAnimatedRect viewBox;
|
readonly attribute SVGAnimatedRect viewBox;
|
||||||
[Constant]
|
[Constant]
|
||||||
readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio;
|
readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -26,4 +26,4 @@ interface SVGGradientElement : SVGElement {
|
|||||||
readonly attribute SVGAnimatedEnumeration spreadMethod;
|
readonly attribute SVGAnimatedEnumeration spreadMethod;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGGradientElement implements SVGURIReference;
|
SVGGradientElement includes SVGURIReference;
|
||||||
|
@ -33,4 +33,4 @@ interface SVGGraphicsElement : SVGElement {
|
|||||||
SVGMatrix getTransformToElement(SVGGraphicsElement element);
|
SVGMatrix getTransformToElement(SVGGraphicsElement element);
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGGraphicsElement implements SVGTests;
|
SVGGraphicsElement includes SVGTests;
|
||||||
|
@ -23,6 +23,5 @@ interface SVGImageElement : SVGGraphicsElement {
|
|||||||
readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio;
|
readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGImageElement implements MozImageLoadingContent;
|
SVGImageElement includes MozImageLoadingContent;
|
||||||
SVGImageElement implements SVGURIReference;
|
SVGImageElement includes SVGURIReference;
|
||||||
|
|
||||||
|
@ -13,5 +13,4 @@
|
|||||||
interface SVGMPathElement : SVGElement {
|
interface SVGMPathElement : SVGElement {
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGMPathElement implements SVGURIReference;
|
SVGMPathElement includes SVGURIReference;
|
||||||
|
|
||||||
|
@ -42,5 +42,4 @@ interface SVGMarkerElement : SVGElement {
|
|||||||
void setOrientToAngle(SVGAngle angle);
|
void setOrientToAngle(SVGAngle angle);
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGMarkerElement implements SVGFitToViewBox;
|
SVGMarkerElement includes SVGFitToViewBox;
|
||||||
|
|
||||||
|
@ -14,5 +14,4 @@ interface SVGPathElement : SVGGeometryElement {
|
|||||||
unsigned long getPathSegAtLength(float distance);
|
unsigned long getPathSegAtLength(float distance);
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGPathElement implements SVGAnimatedPathData;
|
SVGPathElement includes SVGAnimatedPathData;
|
||||||
|
|
||||||
|
@ -27,5 +27,5 @@ interface SVGPatternElement : SVGElement {
|
|||||||
readonly attribute SVGAnimatedLength height;
|
readonly attribute SVGAnimatedLength height;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGPatternElement implements SVGFitToViewBox;
|
SVGPatternElement includes SVGFitToViewBox;
|
||||||
SVGPatternElement implements SVGURIReference;
|
SVGPatternElement includes SVGURIReference;
|
||||||
|
@ -13,5 +13,4 @@
|
|||||||
interface SVGPolygonElement : SVGGeometryElement {
|
interface SVGPolygonElement : SVGGeometryElement {
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGPolygonElement implements SVGAnimatedPoints;
|
SVGPolygonElement includes SVGAnimatedPoints;
|
||||||
|
|
||||||
|
@ -13,5 +13,4 @@
|
|||||||
interface SVGPolylineElement : SVGGeometryElement {
|
interface SVGPolylineElement : SVGGeometryElement {
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGPolylineElement implements SVGAnimatedPoints;
|
SVGPolylineElement includes SVGAnimatedPoints;
|
||||||
|
|
||||||
|
@ -68,6 +68,5 @@ interface SVGSVGElement : SVGGraphicsElement {
|
|||||||
Element? getElementById(DOMString elementId);
|
Element? getElementById(DOMString elementId);
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGSVGElement implements SVGFitToViewBox;
|
SVGSVGElement includes SVGFitToViewBox;
|
||||||
SVGSVGElement implements SVGZoomAndPanValues;
|
SVGSVGElement includes SVGZoomAndPanValues;
|
||||||
|
|
||||||
|
@ -19,5 +19,4 @@ interface SVGScriptElement : SVGElement {
|
|||||||
attribute DOMString? crossOrigin;
|
attribute DOMString? crossOrigin;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGScriptElement implements SVGURIReference;
|
SVGScriptElement includes SVGURIReference;
|
||||||
|
|
||||||
|
@ -20,5 +20,4 @@ interface SVGStyleElement : SVGElement {
|
|||||||
[SetterThrows]
|
[SetterThrows]
|
||||||
attribute DOMString title;
|
attribute DOMString title;
|
||||||
};
|
};
|
||||||
SVGStyleElement implements LinkStyle;
|
SVGStyleElement includes LinkStyle;
|
||||||
|
|
||||||
|
@ -13,5 +13,5 @@
|
|||||||
interface SVGSymbolElement : SVGElement {
|
interface SVGSymbolElement : SVGElement {
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGSymbolElement implements SVGFitToViewBox;
|
SVGSymbolElement includes SVGFitToViewBox;
|
||||||
SVGSymbolElement implements SVGTests;
|
SVGSymbolElement includes SVGTests;
|
||||||
|
@ -10,8 +10,7 @@
|
|||||||
* liability, trademark and document use rules apply.
|
* liability, trademark and document use rules apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin SVGTests {
|
||||||
interface SVGTests {
|
|
||||||
|
|
||||||
readonly attribute SVGStringList requiredFeatures;
|
readonly attribute SVGStringList requiredFeatures;
|
||||||
readonly attribute SVGStringList requiredExtensions;
|
readonly attribute SVGStringList requiredExtensions;
|
||||||
@ -19,4 +18,3 @@ interface SVGTests {
|
|||||||
|
|
||||||
boolean hasExtension(DOMString extension);
|
boolean hasExtension(DOMString extension);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -30,5 +30,4 @@ interface SVGTextPathElement : SVGTextContentElement {
|
|||||||
readonly attribute SVGAnimatedEnumeration spacing;
|
readonly attribute SVGAnimatedEnumeration spacing;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGTextPathElement implements SVGURIReference;
|
SVGTextPathElement includes SVGURIReference;
|
||||||
|
|
||||||
|
@ -10,9 +10,7 @@
|
|||||||
* liability, trademark and document use rules apply.
|
* liability, trademark and document use rules apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin SVGURIReference {
|
||||||
interface SVGURIReference {
|
|
||||||
[Constant]
|
[Constant]
|
||||||
readonly attribute SVGAnimatedString href;
|
readonly attribute SVGAnimatedString href;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -23,4 +23,4 @@ interface SVGUseElement : SVGGraphicsElement {
|
|||||||
//readonly attribute SVGElementInstance animatedInstanceRoot;
|
//readonly attribute SVGElementInstance animatedInstanceRoot;
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGUseElement implements SVGURIReference;
|
SVGUseElement includes SVGURIReference;
|
||||||
|
@ -13,6 +13,5 @@
|
|||||||
interface SVGViewElement : SVGElement {
|
interface SVGViewElement : SVGElement {
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGViewElement implements SVGFitToViewBox;
|
SVGViewElement includes SVGFitToViewBox;
|
||||||
SVGViewElement implements SVGZoomAndPanValues;
|
SVGViewElement includes SVGZoomAndPanValues;
|
||||||
|
|
||||||
|
@ -13,4 +13,4 @@
|
|||||||
interface SVGZoomAndPan {
|
interface SVGZoomAndPan {
|
||||||
};
|
};
|
||||||
|
|
||||||
SVGZoomAndPan implements SVGZoomAndPanValues;
|
SVGZoomAndPan includes SVGZoomAndPanValues;
|
||||||
|
@ -10,8 +10,7 @@
|
|||||||
* liability, trademark and document use rules apply.
|
* liability, trademark and document use rules apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin SVGZoomAndPanValues {
|
||||||
interface SVGZoomAndPanValues {
|
|
||||||
|
|
||||||
// Zoom and Pan Types
|
// Zoom and Pan Types
|
||||||
const unsigned short SVG_ZOOMANDPAN_UNKNOWN = 0;
|
const unsigned short SVG_ZOOMANDPAN_UNKNOWN = 0;
|
||||||
@ -21,4 +20,3 @@ interface SVGZoomAndPanValues {
|
|||||||
[SetterThrows]
|
[SetterThrows]
|
||||||
attribute unsigned short zoomAndPan;
|
attribute unsigned short zoomAndPan;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ interface ServiceWorker : EventTarget {
|
|||||||
void postMessage(any message, optional sequence<object> transferable = []);
|
void postMessage(any message, optional sequence<object> transferable = []);
|
||||||
};
|
};
|
||||||
|
|
||||||
ServiceWorker implements AbstractWorker;
|
ServiceWorker includes AbstractWorker;
|
||||||
|
|
||||||
enum ServiceWorkerState {
|
enum ServiceWorkerState {
|
||||||
// https://github.com/w3c/ServiceWorker/issues/1162
|
// https://github.com/w3c/ServiceWorker/issues/1162
|
||||||
|
@ -33,4 +33,4 @@ interface ShadowRoot : DocumentFragment
|
|||||||
attribute DOMString innerHTML;
|
attribute DOMString innerHTML;
|
||||||
};
|
};
|
||||||
|
|
||||||
ShadowRoot implements DocumentOrShadowRoot;
|
ShadowRoot includes DocumentOrShadowRoot;
|
||||||
|
@ -9,4 +9,4 @@ interface SharedWorker : EventTarget {
|
|||||||
readonly attribute MessagePort port;
|
readonly attribute MessagePort port;
|
||||||
};
|
};
|
||||||
|
|
||||||
SharedWorker implements AbstractWorker;
|
SharedWorker includes AbstractWorker;
|
||||||
|
2
crates/web-sys/webidls/enabled/Text.webidl
vendored
2
crates/web-sys/webidls/enabled/Text.webidl
vendored
@ -23,4 +23,4 @@ partial interface Text {
|
|||||||
readonly attribute HTMLSlotElement? assignedSlot;
|
readonly attribute HTMLSlotElement? assignedSlot;
|
||||||
};
|
};
|
||||||
|
|
||||||
Text implements GeometryUtils;
|
Text includes GeometryUtils;
|
||||||
|
3
crates/web-sys/webidls/enabled/U2F.webidl
vendored
3
crates/web-sys/webidls/enabled/U2F.webidl
vendored
@ -9,8 +9,7 @@
|
|||||||
* https://www.fidoalliance.org/specs/fido-u2f-v1.1-id-20160915/fido-u2f-javascript-api-v1.1-id-20160915.html
|
* https://www.fidoalliance.org/specs/fido-u2f-v1.1-id-20160915/fido-u2f-javascript-api-v1.1-id-20160915.html
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject]
|
interface mixin GlobalU2F {
|
||||||
interface GlobalU2F {
|
|
||||||
[SecureContext, Throws, Pref="security.webauth.u2f"]
|
[SecureContext, Throws, Pref="security.webauth.u2f"]
|
||||||
readonly attribute U2F u2f;
|
readonly attribute U2F u2f;
|
||||||
};
|
};
|
||||||
|
3
crates/web-sys/webidls/enabled/WebGPU.webidl
vendored
3
crates/web-sys/webidls/enabled/WebGPU.webidl
vendored
@ -632,8 +632,7 @@ interface WebGPU {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Add a "webgpu" member to Window that contains the global instance of a "WebGPU"
|
// Add a "webgpu" member to Window that contains the global instance of a "WebGPU"
|
||||||
[NoInterfaceObject]
|
interface mixin WebGPUProvider {
|
||||||
interface WebGPUProvider {
|
|
||||||
[SameObject, Replaceable, Pref="dom.webgpu.enable"] readonly attribute WebGPU webgpu;
|
[SameObject, Replaceable, Pref="dom.webgpu.enable"] readonly attribute WebGPU webgpu;
|
||||||
};
|
};
|
||||||
//Window includes WebGPUProvider;
|
//Window includes WebGPUProvider;
|
||||||
|
31
crates/web-sys/webidls/enabled/Window.webidl
vendored
31
crates/web-sys/webidls/enabled/Window.webidl
vendored
@ -88,8 +88,8 @@
|
|||||||
|
|
||||||
// also has obsolete members
|
// also has obsolete members
|
||||||
};
|
};
|
||||||
Window implements GlobalEventHandlers;
|
Window includes GlobalEventHandlers;
|
||||||
Window implements WindowEventHandlers;
|
Window includes WindowEventHandlers;
|
||||||
|
|
||||||
// https://www.w3.org/TR/appmanifest/#onappinstalled-attribute
|
// https://www.w3.org/TR/appmanifest/#onappinstalled-attribute
|
||||||
partial interface Window {
|
partial interface Window {
|
||||||
@ -98,19 +98,17 @@ partial interface Window {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// http://www.whatwg.org/specs/web-apps/current-work/
|
// http://www.whatwg.org/specs/web-apps/current-work/
|
||||||
[NoInterfaceObject]
|
interface mixin WindowSessionStorage {
|
||||||
interface WindowSessionStorage {
|
|
||||||
//[Throws] readonly attribute Storage sessionStorage;
|
//[Throws] readonly attribute Storage sessionStorage;
|
||||||
[Throws] readonly attribute Storage? sessionStorage;
|
[Throws] readonly attribute Storage? sessionStorage;
|
||||||
};
|
};
|
||||||
Window implements WindowSessionStorage;
|
Window includes WindowSessionStorage;
|
||||||
|
|
||||||
// http://www.whatwg.org/specs/web-apps/current-work/
|
// http://www.whatwg.org/specs/web-apps/current-work/
|
||||||
[NoInterfaceObject]
|
interface mixin WindowLocalStorage {
|
||||||
interface WindowLocalStorage {
|
|
||||||
[Throws] readonly attribute Storage? localStorage;
|
[Throws] readonly attribute Storage? localStorage;
|
||||||
};
|
};
|
||||||
Window implements WindowLocalStorage;
|
Window includes WindowLocalStorage;
|
||||||
|
|
||||||
// http://www.whatwg.org/specs/web-apps/current-work/
|
// http://www.whatwg.org/specs/web-apps/current-work/
|
||||||
partial interface Window {
|
partial interface Window {
|
||||||
@ -215,24 +213,23 @@ partial interface Window {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html
|
// https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html
|
||||||
Window implements GlobalCrypto;
|
Window includes GlobalCrypto;
|
||||||
|
|
||||||
// https://fidoalliance.org/specifications/download/
|
// https://fidoalliance.org/specifications/download/
|
||||||
Window implements GlobalU2F;
|
Window includes GlobalU2F;
|
||||||
|
|
||||||
//#ifdef MOZ_WEBSPEECH
|
//#ifdef MOZ_WEBSPEECH
|
||||||
// http://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
|
// http://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
|
||||||
[NoInterfaceObject]
|
interface mixin SpeechSynthesisGetter {
|
||||||
interface SpeechSynthesisGetter {
|
|
||||||
[Throws, Pref="media.webspeech.synth.enabled"] readonly attribute SpeechSynthesis speechSynthesis;
|
[Throws, Pref="media.webspeech.synth.enabled"] readonly attribute SpeechSynthesis speechSynthesis;
|
||||||
};
|
};
|
||||||
|
|
||||||
Window implements SpeechSynthesisGetter;
|
Window includes SpeechSynthesisGetter;
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
Window implements TouchEventHandlers;
|
Window includes TouchEventHandlers;
|
||||||
|
|
||||||
Window implements OnErrorEventHandlerForWindow;
|
Window includes OnErrorEventHandlerForWindow;
|
||||||
|
|
||||||
//#if defined(MOZ_WIDGET_ANDROID)
|
//#if defined(MOZ_WIDGET_ANDROID)
|
||||||
// https://compat.spec.whatwg.org/#windoworientation-interface
|
// https://compat.spec.whatwg.org/#windoworientation-interface
|
||||||
@ -264,7 +261,7 @@ partial interface Window {
|
|||||||
readonly attribute Worklet paintWorklet;
|
readonly attribute Worklet paintWorklet;
|
||||||
};
|
};
|
||||||
|
|
||||||
Window implements WindowOrWorkerGlobalScope;
|
Window includes WindowOrWorkerGlobalScope;
|
||||||
|
|
||||||
partial interface Window {
|
partial interface Window {
|
||||||
[Throws, Func="nsGlobalWindowInner::IsRequestIdleCallbackEnabled"]
|
[Throws, Func="nsGlobalWindowInner::IsRequestIdleCallbackEnabled"]
|
||||||
@ -280,4 +277,4 @@ dictionary IdleRequestOptions {
|
|||||||
|
|
||||||
callback IdleRequestCallback = void (IdleDeadline deadline);
|
callback IdleRequestCallback = void (IdleDeadline deadline);
|
||||||
|
|
||||||
Window implements WebGPUProvider;
|
Window includes WebGPUProvider;
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope-mixin
|
// https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope-mixin
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[Exposed=(Window,Worker)]
|
||||||
interface WindowOrWorkerGlobalScope {
|
interface mixin WindowOrWorkerGlobalScope {
|
||||||
[Replaceable] readonly attribute USVString origin;
|
[Replaceable] readonly attribute USVString origin;
|
||||||
|
|
||||||
// base64 utility methods
|
// base64 utility methods
|
||||||
|
2
crates/web-sys/webidls/enabled/Worker.webidl
vendored
2
crates/web-sys/webidls/enabled/Worker.webidl
vendored
@ -24,7 +24,7 @@ interface Worker : EventTarget {
|
|||||||
attribute EventHandler onmessageerror;
|
attribute EventHandler onmessageerror;
|
||||||
};
|
};
|
||||||
|
|
||||||
Worker implements AbstractWorker;
|
Worker includes AbstractWorker;
|
||||||
|
|
||||||
dictionary WorkerOptions {
|
dictionary WorkerOptions {
|
||||||
// WorkerType type = "classic"; TODO: Bug 1247687
|
// WorkerType type = "classic"; TODO: Bug 1247687
|
||||||
|
@ -29,8 +29,8 @@ interface WorkerGlobalScope : EventTarget {
|
|||||||
// also has additional members in a partial interface
|
// also has additional members in a partial interface
|
||||||
};
|
};
|
||||||
|
|
||||||
WorkerGlobalScope implements GlobalCrypto;
|
WorkerGlobalScope includes GlobalCrypto;
|
||||||
WorkerGlobalScope implements WindowOrWorkerGlobalScope;
|
WorkerGlobalScope includes WindowOrWorkerGlobalScope;
|
||||||
|
|
||||||
// Not implemented yet: bug 1072107.
|
// Not implemented yet: bug 1072107.
|
||||||
// WorkerGlobalScope implements FontFaceSource;
|
// WorkerGlobalScope includes FontFaceSource;
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
interface WorkerNavigator {
|
interface WorkerNavigator {
|
||||||
};
|
};
|
||||||
|
|
||||||
WorkerNavigator implements NavigatorID;
|
WorkerNavigator includes NavigatorID;
|
||||||
WorkerNavigator implements NavigatorLanguage;
|
WorkerNavigator includes NavigatorLanguage;
|
||||||
WorkerNavigator implements NavigatorOnLine;
|
WorkerNavigator includes NavigatorOnLine;
|
||||||
WorkerNavigator implements NavigatorConcurrentHardware;
|
WorkerNavigator includes NavigatorConcurrentHardware;
|
||||||
WorkerNavigator implements NavigatorStorage;
|
WorkerNavigator includes NavigatorStorage;
|
||||||
|
|
||||||
// http://wicg.github.io/netinfo/#extensions-to-the-navigator-interface
|
// http://wicg.github.io/netinfo/#extensions-to-the-navigator-interface
|
||||||
[Exposed=Worker]
|
[Exposed=Worker]
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
[Constructor]
|
[Constructor]
|
||||||
interface XPathEvaluator {
|
interface mixin XPathEvaluator {
|
||||||
[NewObject, Throws]
|
[NewObject, Throws]
|
||||||
XPathExpression createExpression(DOMString expression,
|
XPathExpression createExpression(DOMString expression,
|
||||||
optional XPathNSResolver? resolver = null);
|
optional XPathNSResolver? resolver = null);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user