Index: third_party/WebKit/Source/core/testing/Internals.cpp |
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp |
index 0f6861e973f28fc46c723182c127b8bf586b945e..72638bb77280eae401d120c92c76860ba897e21f 100644 |
--- a/third_party/WebKit/Source/core/testing/Internals.cpp |
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp |
@@ -112,6 +112,7 @@ |
#include "core/page/scrolling/ScrollState.h" |
#include "core/paint/PaintLayer.h" |
#include "core/svg/SVGImageElement.h" |
+#include "core/testing/CacheAwareFontDisplayTest.h" |
#include "core/testing/CallbackFunctionTest.h" |
#include "core/testing/DictionaryTest.h" |
#include "core/testing/GCObservation.h" |
@@ -2322,6 +2323,13 @@ CallbackFunctionTest* Internals::callbackFunctionTest() const { |
return CallbackFunctionTest::create(); |
} |
+CacheAwareFontDisplayTest* Internals::cacheAwareFontDisplayTest( |
+ const String& fontUrl) const { |
+ if (!contextDocument()) |
+ return nullptr; |
+ return CacheAwareFontDisplayTest::create(contextDocument(), fontUrl); |
+} |
+ |
Vector<String> Internals::getReferencedFilePaths() const { |
if (!frame()) |
return Vector<String>(); |