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

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

Issue 2620293002: Remove CSSFontSelector argument and member from CSSSegmentedFontFace (Closed)
Patch Set: Update test for CL comments Created 3 years, 10 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 | « third_party/WebKit/Source/core/css/FontFace.h ('k') | third_party/WebKit/Source/core/css/FontFaceCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/FontFace.cpp
diff --git a/third_party/WebKit/Source/core/css/FontFace.cpp b/third_party/WebKit/Source/core/css/FontFace.cpp
index 8aabfcb5968809b684c282c448e42d6038d2a26c..bd1e80a18c2104eba51f69de5d17ff8740e65c9e 100644
--- a/third_party/WebKit/Source/core/css/FontFace.cpp
+++ b/third_party/WebKit/Source/core/css/FontFace.cpp
@@ -426,13 +426,14 @@ ScriptPromise FontFace::fontStatusPromise(ScriptState* scriptState) {
ScriptPromise FontFace::load(ScriptState* scriptState) {
if (m_status == Unloaded)
- m_cssFontFace->load();
+ m_cssFontFace->load(toDocument(scriptState->getExecutionContext()));
return fontStatusPromise(scriptState);
}
-void FontFace::loadWithCallback(LoadFontCallback* callback) {
+void FontFace::loadWithCallback(Document* document,
+ LoadFontCallback* callback) {
if (m_status == Unloaded)
- m_cssFontFace->load();
+ m_cssFontFace->load(document);
addCallback(callback);
}
« no previous file with comments | « third_party/WebKit/Source/core/css/FontFace.h ('k') | third_party/WebKit/Source/core/css/FontFaceCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698