Fonts forced to use non synthetic italics might be laid out with the incorrect baseline
[WebKit-https.git] / Source / WebCore / testing / Internals.cpp
index 8c200664d945d1e45a4f0cbde03a9983f72dc6ca..39243da4383f53ce93299b7ff72b7f1470f622a4 100644 (file)
@@ -47,6 +47,7 @@
 #include "Element.h"
 #include "EventHandler.h"
 #include "ExceptionCode.h"
+#include "FontCache.h"
 #include "FormController.h"
 #include "FrameLoader.h"
 #include "FrameView.h"
@@ -818,6 +819,11 @@ void Internals::setMarkedTextMatchesAreHighlighted(bool flag, ExceptionCode& ec)
     document->frame()->editor().setMarkedTextMatchesAreHighlighted(flag);
 }
 
+void Internals::invalidateFontCache()
+{
+    fontCache().invalidate();
+}
+
 void Internals::setScrollViewPosition(long x, long y, ExceptionCode& ec)
 {
     Document* document = contextDocument();