mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Unexpose CSSOM interfaces
This commit is contained in:
parent
67a68bd1f6
commit
71a2b379c8
15 changed files with 14 additions and 27 deletions
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue