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

Unified Diff: Source/core/css/CSSFontSelector.cpp

Issue 321403003: Notify font loads via FontLoader (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/CSSFontFace.cpp ('k') | Source/core/css/CSSSegmentedFontFace.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSFontSelector.cpp
diff --git a/Source/core/css/CSSFontSelector.cpp b/Source/core/css/CSSFontSelector.cpp
index 83306aa55fd9e0282385c80886d4a9336505fb56..28610dca89c3614d07309327933a22b492d4dd5c 100644
--- a/Source/core/css/CSSFontSelector.cpp
+++ b/Source/core/css/CSSFontSelector.cpp
@@ -47,7 +47,7 @@ namespace WebCore {
CSSFontSelector::CSSFontSelector(Document* document)
: m_document(document)
- , m_fontLoader(FontLoader::create(document->fetcher()))
+ , m_fontLoader(FontLoader::create(this, document->fetcher()))
, m_genericFontFamilySettings(document->frame()->settings()->genericFontFamilySettings())
{
// FIXME: An old comment used to say there was no need to hold a reference to m_document
@@ -160,7 +160,7 @@ bool CSSFontSelector::isPlatformFontAvailable(const FontDescription& fontDescrip
#if !ENABLE(OILPAN)
void CSSFontSelector::clearDocument()
{
- m_fontLoader->clearResourceFetcher();
+ m_fontLoader->clearResourceFetcherAndFontSelector();
m_document = nullptr;
}
#endif
« no previous file with comments | « Source/core/css/CSSFontFace.cpp ('k') | Source/core/css/CSSSegmentedFontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698