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

Unified Diff: Source/web/WebPageSerializer.cpp

Issue 197873022: Drop Element::isHTMLFrameElementBase() virtual function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months 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
« Source/web/WebFrameImpl.cpp ('K') | « Source/web/WebFrameImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebPageSerializer.cpp
diff --git a/Source/web/WebPageSerializer.cpp b/Source/web/WebPageSerializer.cpp
index 4df430c537fe381963c7aec7df378899ca23688d..55be0ab01d4f74a2b92c81f25be4f5c63dcc8d78 100644
--- a/Source/web/WebPageSerializer.cpp
+++ b/Source/web/WebPageSerializer.cpp
@@ -42,6 +42,7 @@
#include "core/dom/Element.h"
#include "core/frame/LocalFrame.h"
#include "core/html/HTMLAllCollection.h"
+#include "core/html/HTMLFrameElementBase.h"
#include "core/html/HTMLFrameOwnerElement.h"
#include "core/html/HTMLInputElement.h"
#include "core/html/HTMLTableElement.h"
@@ -111,8 +112,7 @@ void retrieveResourcesForElement(Element* element,
{
ASSERT(element);
// If the node is a frame, we'll process it later in retrieveResourcesForFrame.
- if ((isHTMLIFrameElement(*element) || isHTMLFrameElement(*element)
- || isHTMLObjectElement(*element) || isHTMLEmbedElement(*element))
+ if ((isHTMLFrameElementBase(*element) || isHTMLObjectElement(*element) || isHTMLEmbedElement(*element))
&& element->isFrameOwnerElement()) {
tkent 2014/03/17 22:30:25 element->isFrameOwnerElement() is unnecessary.
Inactive 2014/03/17 23:36:59 Done.
if (LocalFrame* frame = toHTMLFrameOwnerElement(element)->contentFrame()) {
if (!visitedFrames->contains(frame))
« Source/web/WebFrameImpl.cpp ('K') | « Source/web/WebFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698