Index: Source/platform/fonts/mac/FontMac.cpp |
diff --git a/Source/platform/fonts/mac/FontMac.cpp b/Source/platform/fonts/mac/FontMac.cpp |
index 94340a12ff50c6e71a0acc55776b222a6261abde..1b4aeb4c0c6650cb87e2b230dcaba0e4cbd7c021 100644 |
--- a/Source/platform/fonts/mac/FontMac.cpp |
+++ b/Source/platform/fonts/mac/FontMac.cpp |
@@ -105,7 +105,7 @@ void Font::drawGlyphs(GraphicsContext* gc, const SimpleFontData* font, |
if (isRunningLayoutTest()) { |
shouldSmoothFonts = false; |
- shouldAntialias = false; |
+ shouldAntialias = shouldAntialias && isFontAntialiasingEnabledForTest(); |
} |
const GlyphBufferGlyph* glyphs = glyphBuffer.glyphs(from); |