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

Unified Diff: Source/platform/fonts/FontDescription.cpp

Issue 275913005: Remove usePrinterFont() property of FontDescription (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebaselinining small caps cases, and subpixel virtual set Created 6 years, 7 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
« no previous file with comments | « Source/platform/fonts/FontDescription.h ('k') | Source/platform/fonts/FontPlatformData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/FontDescription.cpp
diff --git a/Source/platform/fonts/FontDescription.cpp b/Source/platform/fonts/FontDescription.cpp
index a55b93cc5366a24b99aa0caabafead3f87463022..85f3391f83919ec329823addebb6ed30ec7bcb9d 100644
--- a/Source/platform/fonts/FontDescription.cpp
+++ b/Source/platform/fonts/FontDescription.cpp
@@ -133,15 +133,14 @@ FontCacheKey FontDescription::cacheKey(const AtomicString& familyName, FontTrait
: traits();
unsigned options =
- static_cast<unsigned>(m_syntheticItalic) << 8 | // bit 9
- static_cast<unsigned>(m_syntheticBold) << 7 | // bit 8
- static_cast<unsigned>(m_fontSmoothing) << 5 | // bits 6-7
- static_cast<unsigned>(m_textRendering) << 3 | // bits 4-5
- static_cast<unsigned>(m_orientation) << 2 | // bit 3
- static_cast<unsigned>(m_usePrinterFont) << 1 | // bit 2
+ static_cast<unsigned>(m_syntheticItalic) << 7 | // bit 8
+ static_cast<unsigned>(m_syntheticBold) << 6 | // bit 7
+ static_cast<unsigned>(m_fontSmoothing) << 4 | // bits 5-6
+ static_cast<unsigned>(m_textRendering) << 2 | // bits 3-4
+ static_cast<unsigned>(m_orientation) << 1 | // bit 2
static_cast<unsigned>(m_subpixelTextPosition); // bit 1
- return FontCacheKey(familyName, effectiveFontSize(), options | fontTraits.mask() << 9);
+ return FontCacheKey(familyName, effectiveFontSize(), options | fontTraits.mask() << 8);
}
« no previous file with comments | « Source/platform/fonts/FontDescription.h ('k') | Source/platform/fonts/FontPlatformData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698