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

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

Issue 2014533002: Move FontResourceClient to Oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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.h
diff --git a/third_party/WebKit/Source/core/fetch/FontResource.h b/third_party/WebKit/Source/core/fetch/FontResource.h
index 23be61c2a5664d8d6f542e2d86fb5fb42050cc98..27ceeb781b35c2d83065ff080a7e21e11f748b68 100644
--- a/third_party/WebKit/Source/core/fetch/FontResource.h
+++ b/third_party/WebKit/Source/core/fetch/FontResource.h
@@ -30,6 +30,7 @@
#include "core/fetch/ResourceClient.h"
#include "platform/Timer.h"
#include "platform/fonts/FontOrientation.h"
+#include "platform/heap/Handle.h"
#include "wtf/OwnPtr.h"
namespace blink {
@@ -95,13 +96,15 @@ private:
DEFINE_RESOURCE_TYPE_CASTS(Font);
-class FontResourceClient : public ResourceClient {
+class FontResourceClient : public GarbageCollectedMixin, public ResourceClient {
public:
~FontResourceClient() override {}
static bool isExpectedType(ResourceClient* client) { return client->getResourceClientType() == FontType; }
ResourceClientType getResourceClientType() const final { return FontType; }
virtual void fontLoadShortLimitExceeded(FontResource*) {}
virtual void fontLoadLongLimitExceeded(FontResource*) {}
+
+ DEFINE_INLINE_VIRTUAL_TRACE() {}
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp ('k') | third_party/WebKit/Source/core/fetch/ResourceOwner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698