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

Side by Side Diff: Source/core/html/HTMLFrameSetElement.cpp

Issue 15556003: Auto-generate V8HTMLFormElement::namedPropertyGetter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Introduce DoNotCheckJSProperty Created 7 years, 7 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/HTMLFrameSetElement.h ('k') | Source/core/html/HTMLFrameSetElement.idl » ('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 16 matching lines...) Expand all
27 #include "CSSPropertyNames.h" 27 #include "CSSPropertyNames.h"
28 #include "HTMLNames.h" 28 #include "HTMLNames.h"
29 #include "bindings/v8/ScriptEventListener.h" 29 #include "bindings/v8/ScriptEventListener.h"
30 #include "core/dom/Attribute.h" 30 #include "core/dom/Attribute.h"
31 #include "core/dom/Document.h" 31 #include "core/dom/Document.h"
32 #include "core/dom/Event.h" 32 #include "core/dom/Event.h"
33 #include "core/dom/EventNames.h" 33 #include "core/dom/EventNames.h"
34 #include "core/dom/MouseEvent.h" 34 #include "core/dom/MouseEvent.h"
35 #include "core/dom/NodeRenderingContext.h" 35 #include "core/dom/NodeRenderingContext.h"
36 #include "core/dom/Text.h" 36 #include "core/dom/Text.h"
37 #include "core/html/HTMLCollection.h"
38 #include "core/html/HTMLFrameElement.h"
37 #include "core/loader/FrameLoader.h" 39 #include "core/loader/FrameLoader.h"
38 #include "core/loader/FrameLoaderClient.h" 40 #include "core/loader/FrameLoaderClient.h"
39 #include "core/page/Frame.h" 41 #include "core/page/Frame.h"
40 #include "core/platform/Length.h" 42 #include "core/platform/Length.h"
41 #include "core/rendering/RenderFrameSet.h" 43 #include "core/rendering/RenderFrameSet.h"
42 44
43 namespace WebCore { 45 namespace WebCore {
44 46
45 using namespace HTMLNames; 47 using namespace HTMLNames;
46 48
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 } 203 }
202 204
203 void HTMLFrameSetElement::willRecalcStyle(StyleChange) 205 void HTMLFrameSetElement::willRecalcStyle(StyleChange)
204 { 206 {
205 if (needsStyleRecalc() && renderer()) { 207 if (needsStyleRecalc() && renderer()) {
206 renderer()->setNeedsLayout(true); 208 renderer()->setNeedsLayout(true);
207 clearNeedsStyleRecalc(); 209 clearNeedsStyleRecalc();
208 } 210 }
209 } 211 }
210 212
213 DOMWindow* HTMLFrameSetElement::anonymousNamedGetter(const AtomicString& name)
214 {
215 Node* frameNode = children()->namedItem(name);
216 if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag))
217 return 0;
218 Document* document = static_cast<HTMLFrameElement*>(frameNode)->contentDocum ent();
219 if (!document || !document->frame())
220 return 0;
221 return document->domWindow();
222 }
223
211 } // namespace WebCore 224 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFrameSetElement.h ('k') | Source/core/html/HTMLFrameSetElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698