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

Unified Diff: Source/platform/fonts/skia/FontPlatformDataSkia.cpp

Issue 138273018: Use synthetic bold/italic terminology consistently (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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/skia/FontCacheSkia.cpp ('k') | Source/platform/fonts/win/FontPlatformDataWin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/skia/FontPlatformDataSkia.cpp
diff --git a/Source/platform/fonts/skia/FontPlatformDataSkia.cpp b/Source/platform/fonts/skia/FontPlatformDataSkia.cpp
index 3744cd2f2336f9ea7d9607bf14764b305f118b30..5c07536e244d63b9286447307907fa7f813f4301 100644
--- a/Source/platform/fonts/skia/FontPlatformDataSkia.cpp
+++ b/Source/platform/fonts/skia/FontPlatformDataSkia.cpp
@@ -41,7 +41,7 @@ namespace WebCore {
unsigned FontPlatformData::hash() const
{
unsigned h = SkTypeface::UniqueID(m_typeface.get());
- h ^= 0x01010101 * ((static_cast<int>(m_orientation) << 2) | (static_cast<int>(m_fakeBold) << 1) | static_cast<int>(m_fakeItalic));
+ h ^= 0x01010101 * ((static_cast<int>(m_orientation) << 2) | (static_cast<int>(m_syntheticBold) << 1) | static_cast<int>(m_syntheticItalic));
// This memcpy is to avoid a reinterpret_cast that breaks strict-aliasing
// rules. Memcpy is generally optimized enough so that performance doesn't
« no previous file with comments | « Source/platform/fonts/skia/FontCacheSkia.cpp ('k') | Source/platform/fonts/win/FontPlatformDataWin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698