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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontDescription.h

Issue 1887613002: Compare font-feature-settings as part of Font::operator==(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/platform/fonts/FontDescription.h
diff --git a/third_party/WebKit/Source/platform/fonts/FontDescription.h b/third_party/WebKit/Source/platform/fonts/FontDescription.h
index a382603cb76c036e428ac7b17a9d8cb10317096d..88faa3a9155c798b8b5698c7759f4197bf15c10e 100644
--- a/third_party/WebKit/Source/platform/fonts/FontDescription.h
+++ b/third_party/WebKit/Source/platform/fonts/FontDescription.h
@@ -308,7 +308,7 @@ inline bool FontDescription::operator==(const FontDescription& other) const
&& m_wordSpacing == other.m_wordSpacing
&& m_fieldsAsUnsigned[0] == other.m_fieldsAsUnsigned[0]
&& m_fieldsAsUnsigned[1] == other.m_fieldsAsUnsigned[1]
- && m_featureSettings == other.m_featureSettings;
+ && (m_featureSettings == other.m_featureSettings || (m_featureSettings && other.m_featureSettings && *m_featureSettings == *other.m_featureSettings));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698