Index: Source/core/platform/graphics/SegmentedFontData.h |
diff --git a/Source/core/platform/graphics/SegmentedFontData.h b/Source/core/platform/graphics/SegmentedFontData.h |
index c57fca9a36accbc149b61d62d376471345d2a0b2..dda296079a7b1c1fc80fd4665dd019fb7a43c82d 100644 |
--- a/Source/core/platform/graphics/SegmentedFontData.h |
+++ b/Source/core/platform/graphics/SegmentedFontData.h |
@@ -80,6 +80,12 @@ private: |
Vector<FontDataRange, 1> m_ranges; |
}; |
+inline SegmentedFontData* toSegmentedFontData(FontData* fontData) |
+{ |
+ ASSERT_WITH_SECURITY_IMPLICATION(!fontData || fontData->isSegmented()); |
+ return static_cast<SegmentedFontData*>(fontData); |
+} |
+ |
} // namespace WebCore |
#endif // SegmentedFontData_h |