Commit 19a26c71 authored by Gyuyoung Kim's avatar Gyuyoung Kim Committed by Commit Bot

IDL: Put [Exposed=Window] where it's not in Blink's renderer/core/css

Though Web IDL spec removed [PrimaryGlobal] and made [Exposed] required [1],
many blink's IDL files have not followed it yet. So, this CL adds the keyword
to the IDL files which don't have the keyword yet in the renderer/core/css
directory.

[1] https://github.com/heycam/webidl/issues/365

Bug: 963267
Change-Id: I667cab102b9b2cc7ea32ae60aa5de8545b56861d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1640301Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Cr-Commit-Position: refs/heads/master@{#665462}
parent 4aeee036
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
// https://drafts.csswg.org/css-conditional/#the-cssconditionrule-interface // https://drafts.csswg.org/css-conditional/#the-cssconditionrule-interface
interface CSSConditionRule : CSSGroupingRule { [
Exposed=Window
] interface CSSConditionRule : CSSGroupingRule {
// TODO(xing.xu): readonly should be removed. // TODO(xing.xu): readonly should be removed.
readonly attribute DOMString conditionText; readonly attribute DOMString conditionText;
}; };
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// https://drafts.csswg.org/css-fonts-4/#om-fontfeaturevalues
[ [
RuntimeEnabled=CSSFontFeatureValues RuntimeEnabled=CSSFontFeatureValues
] interface CSSFontFeatureValuesRule : CSSRule { ] interface CSSFontFeatureValuesRule : CSSRule {
......
...@@ -28,7 +28,9 @@ ...@@ -28,7 +28,9 @@
// https://drafts.csswg.org/css-animations/#interface-csskeyframerule // https://drafts.csswg.org/css-animations/#interface-csskeyframerule
interface CSSKeyframeRule : CSSRule { [
Exposed=Window
] interface CSSKeyframeRule : CSSRule {
[RaisesException=Setter] attribute DOMString keyText; [RaisesException=Setter] attribute DOMString keyText;
[SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style; [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
}; };
...@@ -28,7 +28,9 @@ ...@@ -28,7 +28,9 @@
// https://drafts.csswg.org/css-animations/#interface-csskeyframesrule // https://drafts.csswg.org/css-animations/#interface-csskeyframesrule
interface CSSKeyframesRule : CSSRule { [
Exposed=Window
] interface CSSKeyframesRule : CSSRule {
attribute DOMString name; attribute DOMString name;
readonly attribute CSSRuleList cssRules; readonly attribute CSSRuleList cssRules;
......
...@@ -28,5 +28,7 @@ ...@@ -28,5 +28,7 @@
// https://drafts.csswg.org/css-conditional/#the-csssupportsrule-interface // https://drafts.csswg.org/css-conditional/#the-csssupportsrule-interface
interface CSSSupportsRule : CSSConditionRule { [
Exposed=Window
] interface CSSSupportsRule : CSSConditionRule {
}; };
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
// https://drafts.csswg.org/css-device-adapt/#css-viewport-rule-interface // https://drafts.csswg.org/css-device-adapt/#css-viewport-rule-interface
[ [
RuntimeEnabled=CSSViewport RuntimeEnabled=CSSViewport,
Exposed=Window
] interface CSSViewportRule : CSSRule { ] interface CSSViewportRule : CSSRule {
readonly attribute CSSStyleDeclaration style; readonly attribute CSSStyleDeclaration style;
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment