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

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

Issue 1910263003: Generate CSSPropertyEquality instead of using hand-updated file. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests2! Created 4 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
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 b0513fa050b123fc2014a8663ac1a10e5e899efd..68f78c7ab52e9ec67be740e2e97b1aaac29879db 100644
--- a/third_party/WebKit/Source/platform/fonts/FontDescription.h
+++ b/third_party/WebKit/Source/platform/fonts/FontDescription.h
@@ -329,6 +329,21 @@ inline bool FontDescription::operator==(const FontDescription& other) const
&& (m_featureSettings == other.m_featureSettings || (m_featureSettings && other.m_featureSettings && *m_featureSettings == *other.m_featureSettings));
}
+inline bool operator==(const FontDescription::FamilyDescription& a, const FontDescription::FamilyDescription& b)
+{
+ return a.genericFamily == b.genericFamily && a.family == b.family;
+}
+
+inline bool operator==(const FontDescription::VariantLigatures& a, const FontDescription::VariantLigatures& b)
+{
+ return a.common == b.common && a.discretionary == b.discretionary && a.historical == b.historical && a.contextual == b.contextual;
+}
+
+inline bool operator==(const FontDescription::Size& a, const FontDescription::Size& b)
+{
+ return a.keyword == b.keyword && a.isAbsolute == b.isAbsolute && a.value == b.value;
+}
+
} // namespace blink
#endif

Powered by Google App Engine
This is Rietveld 408576698