Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2236)

Unified Diff: Source/platform/fonts/mac/FontMac.cpp

Issue 249343002: Create an antialiased virtual layout test group for font testing on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review comments addressed, uploading with --no-find-copies Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..05f2c625e7f40940756326aba717d5bfb472a5f0 100644
--- a/Source/platform/fonts/mac/FontMac.cpp
+++ b/Source/platform/fonts/mac/FontMac.cpp
@@ -105,7 +105,8 @@ void Font::drawGlyphs(GraphicsContext* gc, const SimpleFontData* font,
if (isRunningLayoutTest()) {
shouldSmoothFonts = false;
- shouldAntialias = false;
+ // FIXME: isFontSmoothingEnabledForTest() really means isFontAntialiasingEnabledForTest()
Dirk Pranke 2014/04/25 15:43:39 Nit: please include the bug number in the comment.
+ shouldAntialias = shouldAntialias && isFontSmoothingEnabledForTest();
}
const GlyphBufferGlyph* glyphs = glyphBuffer.glyphs(from);

Powered by Google App Engine
This is Rietveld 408576698