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

Unified Diff: third_party/WebKit/Source/web/WebFrame.cpp

Issue 1442463002: Save-Page-As-Complete-HTML: Even better handling of <object> elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@objects-fix-for-complete-html
Patch Set: Fixing a silly build issue... :-/ Created 5 years, 1 month 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
« no previous file with comments | « content/renderer/savable_resources.cc ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/renderer/savable_resources.cc ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698