| Index: Source/core/css/CSSStyleRule.h
|
| diff --git a/Source/core/css/CSSStyleRule.h b/Source/core/css/CSSStyleRule.h
|
| index b9f148b38f573a13d8d8728a3824b32abfe165f6..f608a2f4051fca3d12927ca2c63c13ec241398c7 100644
|
| --- a/Source/core/css/CSSStyleRule.h
|
| +++ b/Source/core/css/CSSStyleRule.h
|
| @@ -57,6 +57,12 @@ private:
|
| mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper;
|
| };
|
|
|
| +inline CSSStyleRule* toCSSStyleRule(CSSRule* rule)
|
| +{
|
| + ASSERT_WITH_SECURITY_IMPLICATION(rule->type() == CSSRule::STYLE_RULE);
|
| + return static_cast<CSSStyleRule*>(rule);
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|
| #endif // CSSStyleRule_h
|
|
|