| Index: Source/core/css/CSSImportRule.h
|
| diff --git a/Source/core/css/CSSImportRule.h b/Source/core/css/CSSImportRule.h
|
| index a4ccaf449b8b24b809f90611ac6f7daaae546c65..b16e943b58524cbf8354070abd35068931b06d0e 100644
|
| --- a/Source/core/css/CSSImportRule.h
|
| +++ b/Source/core/css/CSSImportRule.h
|
| @@ -53,6 +53,12 @@ private:
|
| mutable RefPtr<CSSStyleSheet> m_styleSheetCSSOMWrapper;
|
| };
|
|
|
| +inline CSSImportRule* toCSSImportRule(CSSRule* rule)
|
| +{
|
| + ASSERT_WITH_SECURITY_IMPLICATION(rule->type() == CSSRule::IMPORT_RULE);
|
| + return static_cast<CSSImportRule*>(rule);
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|
| #endif // CSSImportRule_h
|
|
|