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

Side by Side 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, 10 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 unified diff | Download patch
« no previous file with comments | « Source/core/html/HTMLFormElement.idl ('k') | Source/core/html/HTMLOptionsCollection.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Simon Hausmann (hausmann@kde.org) 4 * (C) 2000 Simon Hausmann (hausmann@kde.org)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 void HTMLFrameSetElement::willRecalcStyle(StyleRecalcChange) 212 void HTMLFrameSetElement::willRecalcStyle(StyleRecalcChange)
213 { 213 {
214 if (needsStyleRecalc() && renderer()) { 214 if (needsStyleRecalc() && renderer()) {
215 renderer()->setNeedsLayout(); 215 renderer()->setNeedsLayout();
216 clearNeedsStyleRecalc(); 216 clearNeedsStyleRecalc();
217 } 217 }
218 } 218 }
219 219
220 DOMWindow* HTMLFrameSetElement::anonymousNamedGetter(const AtomicString& name) 220 DOMWindow* HTMLFrameSetElement::anonymousNamedGetter(const AtomicString& name)
221 { 221 {
222 Node* frameNode = children()->namedItem(name); 222 Element* frameElement = children()->namedItem(name);
223 if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag)) 223 if (!frameElement || !frameElement->hasTagName(HTMLNames::frameTag))
224 return 0; 224 return 0;
225 Document* document = toHTMLFrameElement(frameNode)->contentDocument(); 225 Document* document = toHTMLFrameElement(frameElement)->contentDocument();
226 if (!document || !document->frame()) 226 if (!document || !document->frame())
227 return 0; 227 return 0;
228 return document->domWindow(); 228 return document->domWindow();
229 } 229 }
230 230
231 } // namespace WebCore 231 } // namespace WebCore
OLDNEW
« 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