mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
76c2cfb906
- Bug 1232902. Update ANGLE to chromium/2592 (89d3d3cfad) - Bug 1251375. Update to ANGLE/2653 (98691dfd84) - bits of Bug 1225280. Update ANGLE to chromium/2572. (b5eeadcb4e) - Bug 1251375 - Cross compilation fixup. r=upstream (737d8f8554) - rename back (e1ef46b16a) - Bug 1261129: Make VP9 sample data const. r=kentuckyfriedtakahe (811eead31b) - Bug 1263839 - WebM is now actually a VP9 sample; r=me (c6568d6d98) - Bug 1263839: P2. Force re-run of VP9 benchmark based on a version check. r=kentuckyfriedtakahe (358409a235) - Bug 1235503 - Fix -Wunreachable-code warnings in dom/media/. r=jya (dc6bebb141) - Bug 1251184: [quicktime] P1. Report video/quicktime mimetype when sniffing. r=cpearce (056dda066a) - Bug 1251184: [quicktime] P2. Use external plugin if available over native playback. r=cpearce (6f34c09ab6) - Bug 1255050 - [1.1] Restrict media plugin decoder usage to Android ICS. r=snorp (ae801e040c) - Bug 1229657: [MSE] Returns NotSupportedError if mimetype is invalid or not supported. r=gerald (a81df7babf) - change errors returns (18b81f684e) - rearrange to match gecko code (333c4c5f3a) - Bug 1239607 - Let platform layer decide which codec to support and how to configure it. r=sotaro (63812a44d1) - Bug 1248507 - p1. Pass DecoderDoctorDiagnostics to PDMs&more - r=jya (4175551833) - Bug 1248507 - p2. DecoderDoctorDiagnostics boilerplate - r=jya (cb25b71956) - Bug 1208371 - Forward declare DOMMediaStream in HTMLMediaElement.h. r=jesup (896080a020) - Bug 1248507 - p3. Use DecoderDoctorDiagnostics - r=jya,bz (181966589e) - Bug 1248507 - p4. DecoderDoctor base console message - r=bz (c5704ad2fe) - Bug 1055776 - Move namespaceURI, prefix, localName from Node to Element; r=bz (ba7a18385d) - Bug 842818 - Expose WebCrypto API to workers r=baku (966e5f3e75) - Bug 1227790 - Update MediaKeyStatuses to include "released", "output-restricted" and "status-pending". r=bz (d9e7ddb298) - Bug 1256046 - Hide MozPowerManager from the Web; r=khuey,bzbarsky (ec1da24251) - Bug 1259581: Remove MOZ_MEDIA_NAVIGATOR. r=jesup (023a114462) - Bug 1254956 - Implement Node.rootNode. r=Ms2ger,smaug (0133a41059) - Bug 1264409 - Make last transaction ID available via nsIDOMWindowUtils, and pass transaction ID through MozAfterPaint. r=mattwoodrow,mrbkap (51184de1af)
268 lines
8.9 KiB
Plaintext
268 lines
8.9 KiB
Plaintext
/* -*- 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/.
|
|
*
|
|
* The origin of this IDL file is
|
|
* http://dom.spec.whatwg.org/#element and
|
|
* http://domparsing.spec.whatwg.org/ and
|
|
* http://dev.w3.org/csswg/cssom-view/ and
|
|
* http://www.w3.org/TR/selectors-api/
|
|
*
|
|
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
* liability, trademark and document use rules apply.
|
|
*/
|
|
|
|
interface Element : Node {
|
|
[Constant]
|
|
readonly attribute DOMString? namespaceURI;
|
|
[Constant]
|
|
readonly attribute DOMString? prefix;
|
|
[Constant]
|
|
readonly attribute DOMString localName;
|
|
|
|
// Not [Constant] because it depends on which document we're in
|
|
[Pure]
|
|
readonly attribute DOMString tagName;
|
|
|
|
[Pure]
|
|
attribute DOMString id;
|
|
[Pure]
|
|
attribute DOMString className;
|
|
[Constant, PutForwards=value]
|
|
readonly attribute DOMTokenList classList;
|
|
|
|
[SameObject]
|
|
readonly attribute NamedNodeMap attributes;
|
|
[Pure]
|
|
sequence<DOMString> getAttributeNames();
|
|
[Pure]
|
|
DOMString? getAttribute(DOMString name);
|
|
[Pure]
|
|
DOMString? getAttributeNS(DOMString? namespace, DOMString localName);
|
|
[Throws]
|
|
boolean toggleAttribute(DOMString name, optional boolean force);
|
|
[Throws]
|
|
void setAttribute(DOMString name, DOMString value);
|
|
[Throws]
|
|
void setAttributeNS(DOMString? namespace, DOMString name, DOMString value);
|
|
[Throws]
|
|
void removeAttribute(DOMString name);
|
|
[Throws]
|
|
void removeAttributeNS(DOMString? namespace, DOMString localName);
|
|
[Pure]
|
|
boolean hasAttribute(DOMString name);
|
|
[Pure]
|
|
boolean hasAttributeNS(DOMString? namespace, DOMString localName);
|
|
[Pure]
|
|
boolean hasAttributes();
|
|
|
|
[Throws, Pure]
|
|
Element? closest(DOMString selector);
|
|
|
|
[Throws, Pure]
|
|
boolean matches(DOMString selector);
|
|
[Throws, Pure, BinaryName="matches"]
|
|
boolean webkitMatchesSelector(DOMString selector);
|
|
|
|
[Pure]
|
|
HTMLCollection getElementsByTagName(DOMString localName);
|
|
[Throws, Pure]
|
|
HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
|
|
[Pure]
|
|
HTMLCollection getElementsByClassName(DOMString classNames);
|
|
|
|
[Throws, Pure]
|
|
Element? insertAdjacentElement(DOMString where, Element element); // historical
|
|
|
|
[Throws]
|
|
void insertAdjacentText(DOMString where, DOMString data); // historical
|
|
|
|
/**
|
|
* The ratio of font-size-inflated text font size to computed font
|
|
* size for this element. This will query the element for its primary frame,
|
|
* and then use this to get font size inflation information about the frame.
|
|
* This will be 1.0 if font size inflation is not enabled, and -1.0 if an
|
|
* error occurred during the retrieval of the font size inflation.
|
|
*
|
|
* @note The font size inflation ratio that is returned is actually the
|
|
* font size inflation data for the element's _primary frame_, not the
|
|
* element itself, but for most purposes, this should be sufficient.
|
|
*/
|
|
[ChromeOnly]
|
|
readonly attribute float fontSizeInflation;
|
|
|
|
// Mozilla specific stuff
|
|
[Pure]
|
|
attribute EventHandler onwheel;
|
|
|
|
// Selectors API
|
|
/**
|
|
* Returns whether this element would be selected by the given selector
|
|
* string.
|
|
*
|
|
* See <http://dev.w3.org/2006/webapi/selectors-api2/#matchesselector>
|
|
*/
|
|
[Throws, Pure, BinaryName="matches"]
|
|
boolean mozMatchesSelector(DOMString selector);
|
|
|
|
// Pointer events methods.
|
|
[Throws, Pref="dom.w3c_pointer_events.enabled", UnsafeInPrerendering]
|
|
void setPointerCapture(long pointerId);
|
|
|
|
[Throws, Pref="dom.w3c_pointer_events.enabled"]
|
|
void releasePointerCapture(long pointerId);
|
|
|
|
// Proprietary extensions
|
|
/**
|
|
* Set this during a mousedown event to grab and retarget all mouse events
|
|
* to this element until the mouse button is released or releaseCapture is
|
|
* called. If retargetToElement is true, then all events are targetted at
|
|
* this element. If false, events can also fire at descendants of this
|
|
* element.
|
|
*
|
|
*/
|
|
void setCapture(optional boolean retargetToElement = false);
|
|
|
|
/**
|
|
* If this element has captured the mouse, release the capture. If another
|
|
* element has captured the mouse, this method has no effect.
|
|
*/
|
|
void releaseCapture();
|
|
|
|
// Mozilla extensions
|
|
/**
|
|
* Requests that this element be made the full-screen element, as per the DOM
|
|
* full-screen api.
|
|
*
|
|
* The options parameter is non-standard. In Gecko, it can be:
|
|
* a RequestFullscreenOptions object
|
|
*
|
|
* @see <https://wiki.mozilla.org/index.php?title=Gecko:FullScreenAPI>
|
|
*/
|
|
[Throws, UnsafeInPrerendering]
|
|
void mozRequestFullScreen(optional any options);
|
|
|
|
/**
|
|
* Requests that this element be made the pointer-locked element, as per the DOM
|
|
* pointer lock api.
|
|
*
|
|
* @see <http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html>
|
|
*/
|
|
[UnsafeInPrerendering]
|
|
void mozRequestPointerLock();
|
|
|
|
// Obsolete methods.
|
|
Attr? getAttributeNode(DOMString name);
|
|
[Throws]
|
|
Attr? setAttributeNode(Attr newAttr);
|
|
[Throws]
|
|
Attr? removeAttributeNode(Attr oldAttr);
|
|
Attr? getAttributeNodeNS(DOMString? namespaceURI, DOMString localName);
|
|
[Throws]
|
|
Attr? setAttributeNodeNS(Attr newAttr);
|
|
|
|
[ChromeOnly]
|
|
/**
|
|
* Scrolls the element by (dx, dy) CSS pixels without doing any
|
|
* layout flushing.
|
|
*/
|
|
boolean scrollByNoFlush(long dx, long dy);
|
|
};
|
|
|
|
// http://dev.w3.org/csswg/cssom-view/
|
|
enum ScrollLogicalPosition { "start", "end" };
|
|
dictionary ScrollIntoViewOptions : ScrollOptions {
|
|
ScrollLogicalPosition block = "start";
|
|
};
|
|
|
|
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-element-interface
|
|
partial interface Element {
|
|
DOMRectList getClientRects();
|
|
DOMRect getBoundingClientRect();
|
|
|
|
// scrolling
|
|
void scrollIntoView(boolean top);
|
|
void scrollIntoView(optional ScrollIntoViewOptions options);
|
|
// None of the CSSOM attributes are [Pure], because they flush
|
|
attribute long scrollTop; // scroll on setting
|
|
attribute long scrollLeft; // scroll on setting
|
|
readonly attribute long scrollWidth;
|
|
readonly attribute long scrollHeight;
|
|
|
|
void scroll(unrestricted double x, unrestricted double y);
|
|
void scroll(optional ScrollToOptions options);
|
|
void scrollTo(unrestricted double x, unrestricted double y);
|
|
void scrollTo(optional ScrollToOptions options);
|
|
void scrollBy(unrestricted double x, unrestricted double y);
|
|
void scrollBy(optional ScrollToOptions options);
|
|
// mozScrollSnap is used by chrome to perform scroll snapping after the
|
|
// user performs actions that may affect scroll position
|
|
// mozScrollSnap is deprecated, to be replaced by a web accessible API, such
|
|
// as an extension to the ScrollOptions dictionary. See bug 1137937.
|
|
[ChromeOnly] void mozScrollSnap();
|
|
|
|
readonly attribute long clientTop;
|
|
readonly attribute long clientLeft;
|
|
readonly attribute long clientWidth;
|
|
readonly attribute long clientHeight;
|
|
|
|
// Mozilla specific stuff
|
|
/* The minimum/maximum offset that the element can be scrolled to
|
|
(i.e., the value that scrollLeft/scrollTop would be clamped to if they were
|
|
set to arbitrarily large values. */
|
|
[ChromeOnly] readonly attribute long scrollTopMin;
|
|
readonly attribute long scrollTopMax;
|
|
[ChromeOnly] readonly attribute long scrollLeftMin;
|
|
readonly attribute long scrollLeftMax;
|
|
};
|
|
|
|
// http://dvcs.w3.org/hg/undomanager/raw-file/tip/undomanager.html
|
|
partial interface Element {
|
|
[Pref="dom.undo_manager.enabled"]
|
|
readonly attribute UndoManager? undoManager;
|
|
[SetterThrows,Pref="dom.undo_manager.enabled"]
|
|
attribute boolean undoScope;
|
|
};
|
|
|
|
// http://domparsing.spec.whatwg.org/#extensions-to-the-element-interface
|
|
partial interface Element {
|
|
[Pure,SetterThrows,TreatNullAs=EmptyString]
|
|
attribute DOMString innerHTML;
|
|
[Pure,SetterThrows,TreatNullAs=EmptyString]
|
|
attribute DOMString outerHTML;
|
|
[Throws]
|
|
void insertAdjacentHTML(DOMString position, DOMString text);
|
|
};
|
|
|
|
// http://www.w3.org/TR/selectors-api/#interface-definitions
|
|
partial interface Element {
|
|
[Throws, Pure]
|
|
Element? querySelector(DOMString selectors);
|
|
[Throws, Pure]
|
|
NodeList querySelectorAll(DOMString selectors);
|
|
};
|
|
|
|
// http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-interface
|
|
partial interface Element {
|
|
[Throws,Func="nsDocument::IsWebComponentsEnabled"]
|
|
ShadowRoot createShadowRoot();
|
|
[Func="nsDocument::IsWebComponentsEnabled"]
|
|
NodeList getDestinationInsertionPoints();
|
|
[Func="nsDocument::IsWebComponentsEnabled"]
|
|
readonly attribute ShadowRoot? shadowRoot;
|
|
};
|
|
|
|
Element implements ChildNode;
|
|
Element implements NonDocumentTypeChildNode;
|
|
Element implements ParentNode;
|
|
Element implements Animatable;
|
|
Element implements GeometryUtils;
|
|
|
|
// non-standard: allows passing options to Element.requestFullScreen
|
|
dictionary RequestFullscreenOptions {
|
|
// Which HMDVRDevice to go full screen on; also enables VR rendering.
|
|
// If null, normal fullscreen is entered.
|
|
HMDVRDevice? vrDisplay = null;
|
|
};
|