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

Unified Diff: third_party/WebKit/Source/core/css/FontFace.h

Issue 2610593002: Make CSSFontFace::setLoadStatus post a task (Closed)
Patch Set: Run callbacks in a task Created 3 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
Index: third_party/WebKit/Source/core/css/FontFace.h
diff --git a/third_party/WebKit/Source/core/css/FontFace.h b/third_party/WebKit/Source/core/css/FontFace.h
index f4ed0f6019a8b60385c0e96022349c67dbcb0104..5daf3822976b6a538b9d061f13adda67fd4ef0df 100644
--- a/third_party/WebKit/Source/core/css/FontFace.h
+++ b/third_party/WebKit/Source/core/css/FontFace.h
@@ -54,6 +54,7 @@ class FontFaceDescriptors;
class StringOrArrayBufferOrArrayBufferView;
class StylePropertySet;
class StyleRuleFontFace;
+class WebTaskRunner;
class FontFace : public GarbageCollectedFinalized<FontFace>,
public ScriptWrappable,
@@ -155,6 +156,8 @@ class FontFace : public GarbageCollectedFinalized<FontFace>,
bool setFamilyValue(const CSSValue&);
void loadInternal(ExecutionContext*);
ScriptPromise fontStatusPromise(ScriptState*);
+ WebTaskRunner* getTaskRunner();
+ void runCallbacks();
using LoadedProperty = ScriptPromiseProperty<Member<FontFace>,
Member<FontFace>,

Powered by Google App Engine
This is Rietveld 408576698