Unexpose CSSOM interfaces

This commit is contained in:
Manish Goregaokar 2016-11-14 12:08:32 -08:00
parent 67a68bd1f6
commit 71a2b379c8
15 changed files with 14 additions and 27 deletions

View file

@ -6,7 +6,7 @@
* http://dev.w3.org/csswg/cssom/#the-css-interface * http://dev.w3.org/csswg/cssom/#the-css-interface
*/ */
[Abstract, Exposed=(Window,Worker)] [Abstract, Exposed=Window]
interface CSS { interface CSS {
[Throws] [Throws]
static DOMString escape(DOMString ident); static DOMString escape(DOMString ident);

View file

@ -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://drafts.csswg.org/css-fonts/#cssfontfacerule // https://drafts.csswg.org/css-fonts/#cssfontfacerule
[Exposed=(Window,Worker)] [Exposed=Window]
interface CSSFontFaceRule : CSSRule { interface CSSFontFaceRule : CSSRule {
// attribute DOMString family; // attribute DOMString family;
// attribute DOMString src; // attribute DOMString src;

View file

@ -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://drafts.csswg.org/cssom/#the-cssgroupingrule-interface // https://drafts.csswg.org/cssom/#the-cssgroupingrule-interface
[Exposed=(Window,Worker)] [Exposed=Window]
interface CSSGroupingRule : CSSRule { interface CSSGroupingRule : CSSRule {
// [SameObject] readonly attribute CSSRuleList cssRules; // [SameObject] readonly attribute CSSRuleList cssRules;
// unsigned long insertRule(DOMString rule, unsigned long index); // unsigned long insertRule(DOMString rule, unsigned long index);

View file

@ -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://drafts.csswg.org/css-animations/#interface-csskeyframesrule // https://drafts.csswg.org/css-animations/#interface-csskeyframesrule
[Exposed=(Window,Worker)] [Exposed=Window]
interface CSSKeyframesRule : CSSRule { interface CSSKeyframesRule : CSSRule {
// attribute DOMString name; // attribute DOMString name;
// readonly attribute CSSRuleList cssRules; // readonly attribute CSSRuleList cssRules;

View file

@ -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://drafts.csswg.org/cssom/#the-cssmediarule-interface // https://drafts.csswg.org/cssom/#the-cssmediarule-interface
[Exposed=(Window,Worker)] [Exposed=Window]
interface CSSMediaRule : CSSGroupingRule { interface CSSMediaRule : CSSGroupingRule {
// [SameObject, PutForwards=mediaText] readonly attribute MediaList media; // [SameObject, PutForwards=mediaText] readonly attribute MediaList media;
}; };

View file

@ -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://drafts.csswg.org/cssom/#the-cssnamespacerule-interface // https://drafts.csswg.org/cssom/#the-cssnamespacerule-interface
[Exposed=(Window,Worker)] [Exposed=Window]
interface CSSNamespaceRule : CSSRule { interface CSSNamespaceRule : CSSRule {
// readonly attribute DOMString namespaceURI; // readonly attribute DOMString namespaceURI;
// readonly attribute DOMString prefix; // readonly attribute DOMString prefix;

View file

@ -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://drafts.csswg.org/cssom/#the-cssrule-interface // https://drafts.csswg.org/cssom/#the-cssrule-interface
[Exposed=(Window,Worker)] [Exposed=Window]
interface CSSRule { interface CSSRule {
const unsigned short STYLE_RULE = 1; const unsigned short STYLE_RULE = 1;
const unsigned short CHARSET_RULE = 2; // historical const unsigned short CHARSET_RULE = 2; // historical

View file

@ -4,7 +4,7 @@
// https://drafts.csswg.org/cssom/#cssrulelist // https://drafts.csswg.org/cssom/#cssrulelist
// [LegacyArrayClass] // [LegacyArrayClass]
[Exposed=(Window,Worker)] [Exposed=Window]
interface CSSRuleList { interface CSSRuleList {
getter CSSRule? item(unsigned long index); getter CSSRule? item(unsigned long index);
readonly attribute unsigned long length; readonly attribute unsigned long length;

View file

@ -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, Worker)]
interface CSSStyleDeclaration { interface CSSStyleDeclaration {
[SetterThrows] [SetterThrows]
attribute DOMString cssText; attribute DOMString cssText;

View file

@ -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://drafts.csswg.org/cssom/#the-cssstylerule-interface // https://drafts.csswg.org/cssom/#the-cssstylerule-interface
[Exposed=(Window,Worker)] [Exposed=Window]
interface CSSStyleRule : CSSRule { interface CSSStyleRule : CSSRule {
// attribute DOMString selectorText; // attribute DOMString selectorText;
// [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style; // [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;

View file

@ -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://drafts.csswg.org/cssom/#the-cssstylesheet-interface // https://drafts.csswg.org/cssom/#the-cssstylesheet-interface
[Exposed=(Window,Worker)] [Exposed=Window]
interface CSSStyleSheet : StyleSheet { interface CSSStyleSheet : StyleSheet {
// readonly attribute CSSRule? ownerRule; // readonly attribute CSSRule? ownerRule;
[SameObject] readonly attribute CSSRuleList cssRules; [SameObject] readonly attribute CSSRuleList cssRules;

View file

@ -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://drafts.csswg.org/css-device-adapt/#css-viewport-rule-interface // https://drafts.csswg.org/css-device-adapt/#css-viewport-rule-interface
[Exposed=(Window,Worker)] [Exposed=Window]
interface CSSViewportRule : CSSRule { interface CSSViewportRule : CSSRule {
// readonly attribute CSSStyleDeclaration style; // readonly attribute CSSStyleDeclaration style;
}; };

View file

@ -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://drafts.csswg.org/cssom/#the-stylesheet-interface // https://drafts.csswg.org/cssom/#the-stylesheet-interface
[Exposed=(Window,Worker)] [Exposed=Window]
interface StyleSheet { interface StyleSheet {
readonly attribute DOMString type_; readonly attribute DOMString type_;
readonly attribute DOMString? href; readonly attribute DOMString? href;

View file

@ -4,7 +4,7 @@
// https://drafts.csswg.org/cssom/#the-stylesheetlist-interface // https://drafts.csswg.org/cssom/#the-stylesheetlist-interface
// [ArrayClass] // [ArrayClass]
[Exposed=(Window,Worker)] [Exposed=Window]
interface StyleSheetList { interface StyleSheetList {
getter StyleSheet? item(unsigned long index); getter StyleSheet? item(unsigned long index);
readonly attribute unsigned long length; readonly attribute unsigned long length;

View file

@ -10,18 +10,7 @@ test_interfaces([
"BeforeUnloadEvent", "BeforeUnloadEvent",
"Blob", "Blob",
"CloseEvent", "CloseEvent",
"CSS",
"CSSFontFaceRule",
"CSSGroupingRule",
"CSSKeyframesRule",
"CSSMediaRule",
"CSSNamespaceRule",
"CSSRule",
"CSSRuleList",
"CSSStyleDeclaration", "CSSStyleDeclaration",
"CSSStyleRule",
"CSSStyleSheet",
"CSSViewportRule",
"DOMPoint", "DOMPoint",
"DOMPointReadOnly", "DOMPointReadOnly",
"DOMQuad", "DOMQuad",
@ -60,8 +49,6 @@ test_interfaces([
"Screen", "Screen",
"Storage", "Storage",
"StorageEvent", "StorageEvent",
"StyleSheet",
"StyleSheetList",
"TextDecoder", "TextDecoder",
"TextEncoder", "TextEncoder",
"URL", "URL",