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

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

Issue 1100873004: FontFace sync (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: final touches Created 5 years, 7 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/DocumentFontFaceSet.idl ('k') | Source/core/css/FontFaceDescriptors.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/FontFace.idl
diff --git a/Source/core/css/FontFace.idl b/Source/core/css/FontFace.idl
index 0665df83390463004900baf9e26af78ad6ba0ec2..37e45c44d39a9f48b7555e1cb112e77d69cc267c 100644
--- a/Source/core/css/FontFace.idl
+++ b/Source/core/css/FontFace.idl
@@ -28,7 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// http://dev.w3.org/csswg/css-font-loading/#dom-fontface
+// http://dev.w3.org/csswg/css-font-loading/#fontface-interface
enum FontFaceLoadStatus {
"unloaded",
@@ -37,6 +37,7 @@ enum FontFaceLoadStatus {
"error"
};
+// TODO(philipj): This interface should be [Exposed=Window,Worker].
[
ActiveDOMObject,
// FIXME: This should be (DOMString or BinaryData), where BinaryData is typedef of (ArrayBuffer or ArrayBufferView)
@@ -44,7 +45,6 @@ enum FontFaceLoadStatus {
ConstructorCallWith=ExecutionContext,
WillBeGarbageCollected,
] interface FontFace {
-
[RaisesException=Setter, SetterCallWith=ExecutionContext] attribute DOMString family;
[RaisesException=Setter, SetterCallWith=ExecutionContext] attribute DOMString style;
[RaisesException=Setter, SetterCallWith=ExecutionContext] attribute DOMString weight;
@@ -54,7 +54,7 @@ enum FontFaceLoadStatus {
[RaisesException=Setter, SetterCallWith=ExecutionContext] attribute DOMString featureSettings;
readonly attribute FontFaceLoadStatus status;
- [CallWith=ScriptState] readonly attribute Promise loaded;
- [CallWith=ScriptState] Promise load();
+ [CallWith=ScriptState] Promise<FontFace> load();
+ [CallWith=ScriptState] readonly attribute Promise<FontFace> loaded;
};
« no previous file with comments | « Source/core/css/DocumentFontFaceSet.idl ('k') | Source/core/css/FontFaceDescriptors.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698