Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(930)

Unified Diff: Source/core/html/HTMLFrameSetElement.cpp

Issue 19504005: Introduce toHTMLFrameElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698