Index: Source/core/css/CSSFontFaceSrcValue.h |
diff --git a/Source/core/css/CSSFontFaceSrcValue.h b/Source/core/css/CSSFontFaceSrcValue.h |
index 9129f1c9b4d584ddeaa995ffb2403c09dfc10d32..992448e98911f846a1a48590f6778edcc94e5795 100644 |
--- a/Source/core/css/CSSFontFaceSrcValue.h |
+++ b/Source/core/css/CSSFontFaceSrcValue.h |
@@ -95,6 +95,12 @@ private: |
#endif |
}; |
+inline CSSFontFaceSrcValue* toCSSFontFaceSrcValue(CSSValue* value) |
+{ |
+ ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isFontFaceSrcValue()); |
+ return static_cast<CSSFontFaceSrcValue*>(value); |
+} |
+ |
} |
#endif |