| Index: Source/web/WebFrameImpl.cpp
|
| diff --git a/Source/web/WebFrameImpl.cpp b/Source/web/WebFrameImpl.cpp
|
| index b77f1206377c41769aa70062332ad392838b994e..f5663d58a337c89615e0faa2cb747d99be8f7a46 100644
|
| --- a/Source/web/WebFrameImpl.cpp
|
| +++ b/Source/web/WebFrameImpl.cpp
|
| @@ -760,7 +760,7 @@ WebFrame* WebFrameImpl::findChildByExpression(const WebString& xpath) const
|
| Node* node = xpathResult->iterateNext(IGNORE_EXCEPTION);
|
| if (!node || !node->isFrameOwnerElement())
|
| return 0;
|
| - return fromFrame(toHTMLFrameOwnerElement(node)->contentFrame());
|
| + return fromFrame(toLocalFrame(toHTMLFrameOwnerElement(node)->contentFrame()));
|
| }
|
|
|
| WebDocument WebFrameImpl::document() const
|
| @@ -2278,7 +2278,7 @@ WebFrameImpl* WebFrameImpl::fromFrameOwnerElement(Element* element)
|
| // FIXME: Why do we check specifically for <iframe> and <frame> here? Why can't we get the WebFrameImpl from an <object> element, for example.
|
| if (!isHTMLFrameElementBase(element))
|
| return 0;
|
| - return fromFrame(toHTMLFrameElementBase(element)->contentFrame());
|
| + return fromFrame(toLocalFrame(toHTMLFrameElementBase(element)->contentFrame()));
|
| }
|
|
|
| WebViewImpl* WebFrameImpl::viewImpl() const
|
|
|