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

Unified Diff: third_party/WebKit/Source/core/css/FontFaceSet.idl

Issue 1409433003: CSS Font Loading: make FontFaceSet Setlike (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert forEach behavior (that makes it easy!) Created 5 years, 2 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
Index: third_party/WebKit/Source/core/css/FontFaceSet.idl
diff --git a/third_party/WebKit/Source/core/css/FontFaceSet.idl b/third_party/WebKit/Source/core/css/FontFaceSet.idl
index 50525e52f7b144de4d347bc4a3ab92f7f084668c..9e5fc9ccd048afb08ac246256b9d410eb16a9b05 100644
--- a/third_party/WebKit/Source/core/css/FontFaceSet.idl
+++ b/third_party/WebKit/Source/core/css/FontFaceSet.idl
@@ -39,10 +39,8 @@ enum FontFaceSetLoadStatus { "loading", "loaded" };
SetWrapperReferenceFrom=document,
NoInterfaceObject,
] interface FontFaceSet : EventTarget {
- // TODO(ksakamoto): Make FontFaceSet Set-like. crbug.com/392075
- // setlike<FontFace>;
- void forEach(FontFaceSetForEachCallback callback, optional any thisArg);
- [RaisesException] boolean has(FontFace fontFace);
+ // TODO(toyoshim): Drop 'readonly' to use setlike's add, delete, and clear.
+ readonly setlike<FontFace>;
readonly attribute unsigned long size;
// TODO(philipj): add() should return the FontFaceSet.
[RaisesException] void add(FontFace fontFace);

Powered by Google App Engine
This is Rietveld 408576698