Index: Source/platform/fonts/mac/FontCacheMac.mm |
diff --git a/Source/platform/fonts/mac/FontCacheMac.mm b/Source/platform/fonts/mac/FontCacheMac.mm |
index fae31d6e713ec2db93e883c8ecf0eacded0ef18d..e94805fa3ed2ce4b22f3f533bd0a7a7fc7a34e18 100644 |
--- a/Source/platform/fonts/mac/FontCacheMac.mm |
+++ b/Source/platform/fonts/mac/FontCacheMac.mm |
@@ -39,6 +39,7 @@ |
#include "platform/fonts/SimpleFontData.h" |
#include "platform/fonts/mac/FontFamilyMatcherMac.h" |
#include "public/platform/Platform.h" |
+#include "public/platform/WebTaskRunner.h" |
#include "public/platform/WebTraceLocation.h" |
#include <wtf/Functional.h> |
#include <wtf/MainThread.h> |
@@ -56,7 +57,7 @@ namespace blink { |
static void invalidateFontCache() |
{ |
if (!isMainThread()) { |
- Platform::current()->mainThread()->postTask(FROM_HERE, bind(&invalidateFontCache)); |
+ Platform::current()->mainThread()->taskRunner()->postTask(FROM_HERE, bind(&invalidateFontCache)); |
return; |
} |
FontCache::fontCache()->invalidate(); |