Index: third_party/WebKit/Source/web/WebFrame.cpp |
diff --git a/third_party/WebKit/Source/web/WebFrame.cpp b/third_party/WebKit/Source/web/WebFrame.cpp |
index 5479891ff3c8cfbf84a641131ada03b3a44981ef..f050e9961872f0663345b20b47185a94cdc49d31 100644 |
--- a/third_party/WebKit/Source/web/WebFrame.cpp |
+++ b/third_party/WebKit/Source/web/WebFrame.cpp |
@@ -277,9 +277,9 @@ WebFrame* WebFrame::fromFrameOwnerElement(const WebElement& webElement) |
{ |
Element* element = PassRefPtrWillBeRawPtr<Element>(webElement).get(); |
- if (!isHTMLFrameElementBase(element)) |
+ if (!element->isFrameOwnerElement()) |
return nullptr; |
- return fromFrame(toHTMLFrameElementBase(element)->contentFrame()); |
+ return fromFrame(toHTMLFrameOwnerElement(element)->contentFrame()); |
} |
bool WebFrame::isLoading() const |