Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / fonts / mac / FontMac.cpp
index edbebe2..6503e8f 100644 (file)
@@ -32,6 +32,7 @@
 #include "platform/fonts/Font.h"
 
 #include "platform/LayoutTestSupport.h"
+#include "platform/fonts/FontPlatformFeatures.h"
 #include "platform/fonts/FontSmoothingMode.h"
 #include "platform/fonts/GlyphBuffer.h"
 #include "platform/fonts/SimpleFontData.h"
 
 namespace WebCore {
 
-bool Font::canReturnFallbackFontsForComplexText()
+bool FontPlatformFeatures::canReturnFallbackFontsForComplexText()
 {
     return true;
 }
 
-bool Font::canExpandAroundIdeographsInComplexText()
+bool FontPlatformFeatures::canExpandAroundIdeographsInComplexText()
 {
     return true;
 }
@@ -102,7 +103,7 @@ void Font::drawGlyphs(GraphicsContext* gc, const SimpleFontData* font,
         break;
     }
 
-    if (!shouldUseSmoothing() || isRunningLayoutTest()) {
+    if (isRunningLayoutTest()) {
         shouldSmoothFonts = false;
         shouldAntialias = false;
     }