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

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

Issue 15540004: Auto-generate HTMLFrameSetElement::namedPropertyGetter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: 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 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 6699bc8a3f81ae3e0d764e523a875fdff00e9929..c920dc0408af75bd12af002610a84a3fb06d0434 100644
--- a/Source/core/html/HTMLFrameSetElement.cpp
+++ b/Source/core/html/HTMLFrameSetElement.cpp
@@ -34,6 +34,8 @@
#include "core/dom/MouseEvent.h"
#include "core/dom/NodeRenderingContext.h"
#include "core/dom/Text.h"
+#include "core/html/HTMLCollection.h"
+#include "core/html/HTMLFrameElement.h"
#include "core/loader/FrameLoader.h"
#include "core/loader/FrameLoaderClient.h"
#include "core/page/Frame.h"
@@ -208,4 +210,15 @@ void HTMLFrameSetElement::willRecalcStyle(StyleChange)
}
}
+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();
+ if (!document || !document->frame())
+ return 0;
+ return document->domWindow();
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698