Index: Source/core/html/HTMLFrameSetElement.cpp |
diff --git a/Source/core/html/HTMLFrameSetElement.cpp b/Source/core/html/HTMLFrameSetElement.cpp |
index 02d929f04f48ed1603889d8af0b5413c5c151eef..88a596dac28b50b6545fb2334989b544e78e2212 100644 |
--- a/Source/core/html/HTMLFrameSetElement.cpp |
+++ b/Source/core/html/HTMLFrameSetElement.cpp |
@@ -219,7 +219,7 @@ DOMWindow* HTMLFrameSetElement::anonymousNamedGetter(const AtomicString& name) |
Node* frameNode = children()->namedItem(name); |
if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag)) |
return 0; |
- Document* document = static_cast<HTMLFrameElement*>(frameNode)->contentDocument(); |
+ Document* document = toHTMLFrameElement(frameNode)->contentDocument(); |
if (!document || !document->frame()) |
return 0; |
return document->domWindow(); |