Chromium Code Reviews| 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)) |