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

Unified Diff: Source/platform/fonts/FontData.h

Issue 401553002: Introduce DEFINE_FONT_DATA_TYPE_CASTS, and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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/FontData.h
diff --git a/Source/platform/fonts/FontData.h b/Source/platform/fonts/FontData.h
index fb4a65441cb3eb9c9d516b0b1d21d6f741dc31ca..0629944ec5109b87b09d2528b0d17312dcf17e53 100644
--- a/Source/platform/fonts/FontData.h
+++ b/Source/platform/fonts/FontData.h
@@ -67,6 +67,9 @@ private:
mutable unsigned m_maxGlyphPageTreeLevel;
};
+#define DEFINE_FONT_DATA_TYPE_CASTS(thisType, predicate) \
+ DEFINE_TYPE_CASTS(thisType, FontData, fontData, fontData->isSegmented() == predicate, fontData.isSegmented() == predicate)
+
} // namespace WebCore
#endif // FontData_h
« no previous file with comments | « no previous file | Source/platform/fonts/FontFallbackList.cpp » ('j') | Source/platform/fonts/FontFallbackList.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698