Index: Source/core/dom/DocumentStyleSheetCollection.cpp |
diff --git a/Source/core/dom/DocumentStyleSheetCollection.cpp b/Source/core/dom/DocumentStyleSheetCollection.cpp |
index 8055751e63e853bfc53a92ea6b1401d4d001221d..fce6dffbd8a75a613405a3b91ead200363458d98 100644 |
--- a/Source/core/dom/DocumentStyleSheetCollection.cpp |
+++ b/Source/core/dom/DocumentStyleSheetCollection.cpp |
@@ -100,7 +100,7 @@ void DocumentStyleSheetCollection::collectStyleSheets(StyleSheetCollections* col |
if (!sheet) |
title = nullAtom; |
} else if (n->isSVGElement() && n->hasTagName(SVGNames::styleTag)) { |
- sheet = static_cast<SVGStyleElement*>(n)->sheet(); |
+ sheet = toSVGStyleElement(n)->sheet(); |
} else { |
sheet = toHTMLStyleElement(n)->sheet(); |
} |