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

Unified Diff: Source/WebCore/loader/cache/CachedFont.cpp

Issue 14210003: Simplify CachedResource::data (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Created 7 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
« no previous file with comments | « Source/WebCore/loader/cache/CachedFont.h ('k') | Source/WebCore/loader/cache/CachedImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/loader/cache/CachedFont.cpp
===================================================================
--- Source/WebCore/loader/cache/CachedFont.cpp (revision 148397)
+++ Source/WebCore/loader/cache/CachedFont.cpp (working copy)
@@ -75,17 +75,6 @@
static_cast<CachedFontClient*>(c)->fontLoaded(this);
}
-void CachedFont::data(PassRefPtr<ResourceBuffer> data, bool allDataReceived)
-{
- if (!allDataReceived)
- return;
-
- m_data = data;
- setEncodedSize(m_data.get() ? m_data->size() : 0);
- setLoading(false);
- checkNotify();
-}
-
void CachedFont::beginLoadIfNeeded(CachedResourceLoader* dl)
{
if (!m_loadInitiated) {
@@ -173,9 +162,6 @@
void CachedFont::checkNotify()
{
- if (isLoading())
- return;
-
CachedResourceClientWalker<CachedFontClient> w(m_clients);
while (CachedFontClient* c = w.next())
c->fontLoaded(this);
« no previous file with comments | « Source/WebCore/loader/cache/CachedFont.h ('k') | Source/WebCore/loader/cache/CachedImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698