Index: Source/core/css/StyleSheetContents.cpp |
diff --git a/Source/core/css/StyleSheetContents.cpp b/Source/core/css/StyleSheetContents.cpp |
index 3c48a6b2bf24cae324029ac64cce7bf5d8988525..2efb29a6a5feaf30baa141d1f31408230d3f2f0a 100644 |
--- a/Source/core/css/StyleSheetContents.cpp |
+++ b/Source/core/css/StyleSheetContents.cpp |
@@ -413,7 +413,7 @@ void StyleSheetContents::addSubresourceStyleURLs(ListHashSet<KURL>& urls) |
for (unsigned i = 0; i < styleSheet->m_childRules.size(); ++i) { |
StyleRuleBase* rule = styleSheet->m_childRules[i].get(); |
if (rule->isStyleRule()) |
- static_cast<StyleRule*>(rule)->properties()->addSubresourceStyleURLs(urls, this); |
+ toStyleRule(rule)->properties()->addSubresourceStyleURLs(urls, this); |
else if (rule->isFontFaceRule()) |
static_cast<StyleRuleFontFace*>(rule)->properties()->addSubresourceStyleURLs(urls, this); |
} |