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

Unified Diff: third_party/WebKit/Source/platform/testing/FontTestHelpers.cpp

Issue 2717123003: RemoteFontFaceSource should keep FontCustomPlatformData over FontResource revalidation (Closed)
Patch Set: test description Created 3 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
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/testing/FontTestHelpers.cpp
diff --git a/third_party/WebKit/Source/platform/testing/FontTestHelpers.cpp b/third_party/WebKit/Source/platform/testing/FontTestHelpers.cpp
index 0753de70274f485b73fc2f9dd2c27ddcf433b278..11c3f4dd018f7c43bde24175e60f57865035844c 100644
--- a/third_party/WebKit/Source/platform/testing/FontTestHelpers.cpp
+++ b/third_party/WebKit/Source/platform/testing/FontTestHelpers.cpp
@@ -11,7 +11,6 @@
#include "platform/testing/UnitTestHelpers.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
-#include <memory>
namespace blink {
namespace testing {
@@ -48,10 +47,10 @@ class TestFontSelector : public FontSelector {
void fontCacheInvalidated() override {}
private:
- TestFontSelector(std::unique_ptr<FontCustomPlatformData> customPlatformData)
- : m_customPlatformData(std::move(customPlatformData)) {}
+ TestFontSelector(PassRefPtr<FontCustomPlatformData> customPlatformData)
+ : m_customPlatformData(customPlatformData) {}
- std::unique_ptr<FontCustomPlatformData> m_customPlatformData;
+ RefPtr<FontCustomPlatformData> m_customPlatformData;
};
} // namespace
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698