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

Unified Diff: third_party/WebKit/Source/core/fetch/FontResource.cpp

Issue 1894953002: WebFonts: merge fontLoaded() to notifyFinished() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/fetch/FontResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/FontResource.cpp b/third_party/WebKit/Source/core/fetch/FontResource.cpp
index eb9da1f40a8a0eea29d37d227d7b2bd35de1e74c..44fae5e86312772783851cd1bb503b59e98fc961 100644
--- a/third_party/WebKit/Source/core/fetch/FontResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/FontResource.cpp
@@ -98,7 +98,7 @@ void FontResource::didAddClient(ResourceClient* c)
ASSERT(FontResourceClient::isExpectedType(c));
Resource::didAddClient(c);
if (isLoaded())
- static_cast<FontResourceClient*>(c)->fontLoaded(this);
+ c->notifyFinished(this);
Kunihiko Sakamoto 2016/04/18 08:18:59 This is called by above Resource::didAddClient(),
Takashi Toyoshima 2016/04/18 12:42:03 Done.
if (m_loadLimitState == ShortLimitExceeded || m_loadLimitState == LongLimitExceeded)
static_cast<FontResourceClient*>(c)->fontLoadShortLimitExceeded(this);
if (m_loadLimitState == LongLimitExceeded)
@@ -173,9 +173,8 @@ void FontResource::checkNotify()
{
m_fontLoadShortLimitTimer.stop();
m_fontLoadLongLimitTimer.stop();
- ResourceClientWalker<FontResourceClient> w(m_clients);
- while (FontResourceClient* c = w.next())
- c->fontLoaded(this);
+
+ Resource::checkNotify();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698