mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Expose interfaces only where they should be. #12415 - Partial
This commit is contained in:
parent
cd0a6b98f4
commit
d5c6c24d2a
7 changed files with 8 additions and 10 deletions
|
@ -8,7 +8,7 @@
|
||||||
* Copyright © 2013 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved.
|
* Copyright © 2013 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Exposed=(Window, Worker)]
|
[Exposed=Window]
|
||||||
interface CSSStyleDeclaration {
|
interface CSSStyleDeclaration {
|
||||||
[SetterThrows]
|
[SetterThrows]
|
||||||
attribute DOMString cssText;
|
attribute DOMString cssText;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
// https://w3c.github.io/ServiceWorker/#client
|
// https://w3c.github.io/ServiceWorker/#client
|
||||||
|
|
||||||
[Pref="dom.serviceworker.enabled", Exposed=(Window,Worker)]
|
[Pref="dom.serviceworker.enabled", Exposed=ServiceWorker]
|
||||||
interface Client {
|
interface Client {
|
||||||
readonly attribute USVString url;
|
readonly attribute USVString url;
|
||||||
readonly attribute FrameType frameType;
|
readonly attribute FrameType frameType;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
//http://dev.w3.org/csswg/cssom/#elementcssinlinestyle
|
//http://dev.w3.org/csswg/cssom/#elementcssinlinestyle
|
||||||
|
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[NoInterfaceObject, Exposed=Window]
|
||||||
interface ElementCSSInlineStyle {
|
interface ElementCSSInlineStyle {
|
||||||
[SameObject/*, PutForwards=cssText*/] readonly attribute CSSStyleDeclaration style;
|
[SameObject/*, PutForwards=cssText*/] readonly attribute CSSStyleDeclaration style;
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#elementcontenteditable
|
// https://html.spec.whatwg.org/multipage/#elementcontenteditable
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[NoInterfaceObject, Exposed=Window]
|
||||||
interface ElementContentEditable {
|
interface ElementContentEditable {
|
||||||
// attribute DOMString contentEditable;
|
// attribute DOMString contentEditable;
|
||||||
// readonly attribute boolean isContentEditable;
|
// readonly attribute boolean isContentEditable;
|
||||||
|
|
|
@ -25,7 +25,7 @@ callback OnBeforeUnloadEventHandlerNonNull = DOMString? (Event event);
|
||||||
typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler;
|
typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler;
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#globaleventhandlers
|
// https://html.spec.whatwg.org/multipage/#globaleventhandlers
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[NoInterfaceObject, Exposed=Window]
|
||||||
interface GlobalEventHandlers {
|
interface GlobalEventHandlers {
|
||||||
attribute EventHandler onabort;
|
attribute EventHandler onabort;
|
||||||
attribute EventHandler onblur;
|
attribute EventHandler onblur;
|
||||||
|
@ -95,7 +95,7 @@ partial interface GlobalEventHandlers {
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#windoweventhandlers
|
// https://html.spec.whatwg.org/multipage/#windoweventhandlers
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[NoInterfaceObject, Exposed=Window]
|
||||||
interface WindowEventHandlers {
|
interface WindowEventHandlers {
|
||||||
attribute EventHandler onafterprint;
|
attribute EventHandler onafterprint;
|
||||||
attribute EventHandler onbeforeprint;
|
attribute EventHandler onbeforeprint;
|
||||||
|
@ -115,7 +115,7 @@ interface WindowEventHandlers {
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#documentandelementeventhandlers
|
// https://html.spec.whatwg.org/multipage/#documentandelementeventhandlers
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[NoInterfaceObject, Exposed=Window]
|
||||||
interface DocumentAndElementEventHandlers {
|
interface DocumentAndElementEventHandlers {
|
||||||
attribute EventHandler oncopy;
|
attribute EventHandler oncopy;
|
||||||
attribute EventHandler oncut;
|
attribute EventHandler oncut;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// http://dev.w3.org/csswg/cssom-view/#the-screen-interface
|
// http://dev.w3.org/csswg/cssom-view/#the-screen-interface
|
||||||
[Exposed=(Window,Worker)]
|
[Exposed=Window]
|
||||||
interface Screen {
|
interface Screen {
|
||||||
//readonly attribute double availWidth;
|
//readonly attribute double availWidth;
|
||||||
//readonly attribute double availHeight;
|
//readonly attribute double availHeight;
|
||||||
|
|
|
@ -9,7 +9,6 @@ importScripts("interfaces.js");
|
||||||
test_interfaces([
|
test_interfaces([
|
||||||
"Blob",
|
"Blob",
|
||||||
"CloseEvent",
|
"CloseEvent",
|
||||||
"CSSStyleDeclaration",
|
|
||||||
"DOMMatrix",
|
"DOMMatrix",
|
||||||
"DOMMatrixReadOnly",
|
"DOMMatrixReadOnly",
|
||||||
"DOMPoint",
|
"DOMPoint",
|
||||||
|
@ -38,7 +37,6 @@ test_interfaces([
|
||||||
"ProgressEvent",
|
"ProgressEvent",
|
||||||
"Request",
|
"Request",
|
||||||
"Response",
|
"Response",
|
||||||
"Screen",
|
|
||||||
"Storage",
|
"Storage",
|
||||||
"StorageEvent",
|
"StorageEvent",
|
||||||
"TextDecoder",
|
"TextDecoder",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue