| 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
|
|
|