| Index: Source/core/html/HTMLFrameElementBase.cpp
|
| ===================================================================
|
| --- Source/core/html/HTMLFrameElementBase.cpp (revision 170478)
|
| +++ Source/core/html/HTMLFrameElementBase.cpp (working copy)
|
| @@ -91,9 +91,9 @@
|
|
|
| if (!loadOrRedirectSubframe(url, m_frameName, lockBackForwardList))
|
| return;
|
| - if (!contentFrame() || scriptURL.isEmpty() || !contentFrame()->isLocalFrame())
|
| + if (!contentFrame() || scriptURL.isEmpty())
|
| return;
|
| - toLocalFrame(contentFrame())->script().executeScriptIfJavaScriptURL(scriptURL);
|
| + contentFrame()->script().executeScriptIfJavaScriptURL(scriptURL);
|
| }
|
|
|
| void HTMLFrameElementBase::parseAttribute(const QualifiedName& name, const AtomicString& value)
|
| @@ -159,10 +159,8 @@
|
| HTMLFrameOwnerElement::attach(context);
|
|
|
| if (RenderPart* part = renderPart()) {
|
| - if (Frame* frame = contentFrame()) {
|
| - if (frame->isLocalFrame())
|
| - part->setWidget(toLocalFrame(frame)->view());
|
| - }
|
| + if (LocalFrame* frame = contentFrame())
|
| + part->setWidget(frame->view());
|
| }
|
| }
|
|
|
|
|