Index: Source/platform/fonts/FontData.h |
diff --git a/Source/platform/fonts/FontData.h b/Source/platform/fonts/FontData.h |
index fb4a65441cb3eb9c9d516b0b1d21d6f741dc31ca..a24d7030ebd959f2143bcb9c8009841df1fcfbd9 100644 |
--- a/Source/platform/fonts/FontData.h |
+++ b/Source/platform/fonts/FontData.h |
@@ -67,6 +67,10 @@ private: |
mutable unsigned m_maxGlyphPageTreeLevel; |
}; |
+#define DEFINE_FONT_DATA_TYPE_CASTS(thisType, predicate) \ |
+ template<typename T> inline thisType* to##thisType(const RefPtr<T>& fontData) { return to##thisType(fontData.get()); } \ |
+ DEFINE_TYPE_CASTS(thisType, FontData, fontData, fontData->isSegmented() == predicate, fontData.isSegmented() == predicate) |
+ |
} // namespace WebCore |
#endif // FontData_h |