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

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

Issue 148013008: Use stricter typing for HTMLCollection named getter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « Source/core/html/HTMLFormElement.idl ('k') | Source/core/html/HTMLOptionsCollection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLFrameSetElement.cpp
diff --git a/Source/core/html/HTMLFrameSetElement.cpp b/Source/core/html/HTMLFrameSetElement.cpp
index db0043491203ad814be74cfdcc3f181dc0b8f96a..2d8bb5dd45d24169d06d6916149e221244aa111c 100644
--- a/Source/core/html/HTMLFrameSetElement.cpp
+++ b/Source/core/html/HTMLFrameSetElement.cpp
@@ -219,10 +219,10 @@ void HTMLFrameSetElement::willRecalcStyle(StyleRecalcChange)
DOMWindow* HTMLFrameSetElement::anonymousNamedGetter(const AtomicString& name)
{
- Node* frameNode = children()->namedItem(name);
- if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag))
+ Element* frameElement = children()->namedItem(name);
+ if (!frameElement || !frameElement->hasTagName(HTMLNames::frameTag))
return 0;
- Document* document = toHTMLFrameElement(frameNode)->contentDocument();
+ Document* document = toHTMLFrameElement(frameElement)->contentDocument();
if (!document || !document->frame())
return 0;
return document->domWindow();
« no previous file with comments | « Source/core/html/HTMLFormElement.idl ('k') | Source/core/html/HTMLOptionsCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698