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

Unified Diff: third_party/WebKit/Source/core/css/RemoteFontFaceSource.h

Issue 1667843003: Make Resource RefCountedWillBeGarbageCollectedFinalized, attempt #2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + address review comments Created 4 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
Index: third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
diff --git a/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h b/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
index 3faa5a71654fb77a15825727296b1ec3ffa213df..006213c099f5d729603c53417294ce44ca9e7145 100644
--- a/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
+++ b/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
@@ -7,7 +7,6 @@
#include "core/css/CSSFontFaceSource.h"
#include "core/fetch/FontResource.h"
-#include "core/fetch/ResourcePtr.h"
#include "wtf/Allocator.h"
namespace blink {
@@ -28,7 +27,7 @@ class RemoteFontFaceSource final : public CSSFontFaceSource, public FontResource
public:
enum DisplayPeriod { BlockPeriod, SwapPeriod, FailurePeriod };
- explicit RemoteFontFaceSource(FontResource*, PassRefPtrWillBeRawPtr<FontLoader>, FontDisplay);
+ explicit RemoteFontFaceSource(PassRefPtrWillBeRawPtr<FontResource>, PassRefPtrWillBeRawPtr<FontLoader>, FontDisplay);
~RemoteFontFaceSource() override;
void dispose();
@@ -80,7 +79,7 @@ private:
void switchToSwapPeriod();
void switchToFailurePeriod();
- ResourcePtr<FontResource> m_font;
+ RefPtrWillBeMember<FontResource> m_font;
RefPtrWillBeMember<FontLoader> m_fontLoader;
const FontDisplay m_display;
DisplayPeriod m_period;
« no previous file with comments | « third_party/WebKit/Source/core/css/FontLoader.cpp ('k') | third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698