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

Unified Diff: core/css/MediaList.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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 | « core/css/FontFaceSetLoadEventInit.idl ('k') | core/css/MediaQueryList.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/css/MediaList.idl
diff --git a/core/css/MediaList.idl b/core/css/MediaList.idl
index cae0768d347630efe52b102cf74ad9d71a532c40..ff714afc65bfef429cc20ecca5fe275652a82ff7 100644
--- a/core/css/MediaList.idl
+++ b/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;
-
- [TreatReturnedNullStringAs=Null] getter DOMString item(unsigned long index);
- [RaisesException] void deleteMedium(DOMString oldMedium);
- [RaisesException] void appendMedium(DOMString newMedium);
-
+ [Measure] getter DOMString? item(unsigned long index);
+ // TODO(philipj): appendMedium() and deleteMedium() should never throw.
+ [RaisesException] void appendMedium(DOMString medium);
+ [RaisesException] void deleteMedium(DOMString medium);
};
-
« no previous file with comments | « core/css/FontFaceSetLoadEventInit.idl ('k') | core/css/MediaQueryList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698