Index: Source/core/page/PageSerializer.cpp |
diff --git a/Source/core/page/PageSerializer.cpp b/Source/core/page/PageSerializer.cpp |
index f5a46cc79057eac4679bea1d3e0b4e52dc9bc1df..407a1b5947f655e481162beb2453c5f6fec32ae4 100644 |
--- a/Source/core/page/PageSerializer.cpp |
+++ b/Source/core/page/PageSerializer.cpp |
@@ -224,7 +224,7 @@ void PageSerializer::serializeFrame(Frame* frame) |
CachedImage* cachedImage = imageElement->cachedImage(); |
addImageToResources(cachedImage, imageElement->renderer(), url); |
} else if (element->hasTagName(HTMLNames::linkTag)) { |
- HTMLLinkElement* linkElement = static_cast<HTMLLinkElement*>(element); |
+ HTMLLinkElement* linkElement = toHTMLLinkElement(element); |
if (CSSStyleSheet* sheet = linkElement->sheet()) { |
KURL url = document->completeURL(linkElement->getAttribute(HTMLNames::hrefAttr)); |
serializeCSSStyleSheet(sheet, url); |