Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Unified Diff: Source/core/css/MediaList.idl

Issue 1054303004: Sync CSS interfaces with the specs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSViewportRule.idl ('k') | Source/core/css/MediaQueryList.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaList.idl
diff --git a/Source/core/css/MediaList.idl b/Source/core/css/MediaList.idl
index 647d10141999f16506954019e482c052d748b96e..65018cad7173287e092c59cbfa391a6f9c532ab1 100644
--- a/Source/core/css/MediaList.idl
+++ b/Source/core/css/MediaList.idl
@@ -23,17 +23,17 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// Introduced in DOM Level 2:
+// http://dev.w3.org/csswg/cssom/#the-medialist-interface
+
+// TODO(philipj): MediaList should be an [ArrayClass].
[
WillBeGarbageCollected
] interface MediaList {
-
- attribute DOMString? mediaText;
+ // TODO(philipj): [TreatNullAs=EmptyString] stringifier attribute DOMString mediaText;
+ attribute DOMString? mediaText;
readonly attribute unsigned long length;
-
getter DOMString? item(unsigned long index);
- [RaisesException] void deleteMedium(DOMString oldMedium);
- [RaisesException] void appendMedium(DOMString newMedium);
-
+ // TODO(philipj): appendMedium() and deleteMedium() should never throw.
+ [RaisesException] void appendMedium(DOMString medium);
+ [RaisesException] void deleteMedium(DOMString medium);
};
-
« no previous file with comments | « Source/core/css/CSSViewportRule.idl ('k') | Source/core/css/MediaQueryList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698