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

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

Issue 2867073005: Provide downcasts for WebLocalFrameBase using DEFINE_TYPE_CASTS macro. (Closed)
Patch Set: Created 3 years, 7 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
Index: third_party/WebKit/Source/web/WebFrameContentDumper.cpp
diff --git a/third_party/WebKit/Source/web/WebFrameContentDumper.cpp b/third_party/WebKit/Source/web/WebFrameContentDumper.cpp
index d537f24c1af10bb20fb46b5e36d3612d200ca5b4..77f4efb2a69c20b0d6ec174fc8f551ec77a9faed 100644
--- a/third_party/WebKit/Source/web/WebFrameContentDumper.cpp
+++ b/third_party/WebKit/Source/web/WebFrameContentDumper.cpp
@@ -9,6 +9,7 @@
#include "core/editing/serializers/Serialization.h"
#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
+#include "core/frame/WebLocalFrameBase.h"
#include "core/layout/LayoutTreeAsText.h"
#include "core/layout/api/LayoutPartItem.h"
#include "core/layout/api/LayoutViewItem.h"
@@ -16,7 +17,6 @@
#include "public/web/WebDocument.h"
#include "public/web/WebLocalFrame.h"
#include "public/web/WebView.h"
-#include "web/WebLocalFrameImpl.h"
namespace blink {
@@ -99,7 +99,7 @@ WebString WebFrameContentDumper::DeprecatedDumpFrameTreeAsText(
if (!frame)
return WebString();
StringBuilder text;
- FrameContentAsPlainText(max_chars, ToWebLocalFrameImpl(frame)->GetFrame(),
+ FrameContentAsPlainText(max_chars, ToWebLocalFrameBase(frame)->GetFrame(),
text);
return text.ToString();
}
@@ -115,7 +115,7 @@ WebString WebFrameContentDumper::DumpWebViewAsText(WebView* web_view,
WebString WebFrameContentDumper::DumpAsMarkup(WebLocalFrame* frame) {
if (!frame)
return WebString();
- return CreateMarkup(ToWebLocalFrameImpl(frame)->GetFrame()->GetDocument());
+ return CreateMarkup(ToWebLocalFrameBase(frame)->GetFrame()->GetDocument());
}
WebString WebFrameContentDumper::DumpLayoutTreeAsText(
@@ -135,7 +135,7 @@ WebString WebFrameContentDumper::DumpLayoutTreeAsText(
if (to_show & kLayoutAsTextPrinting)
behavior |= kLayoutAsTextPrintingMode;
- return ExternalRepresentation(ToWebLocalFrameImpl(frame)->GetFrame(),
+ return ExternalRepresentation(ToWebLocalFrameBase(frame)->GetFrame(),
behavior);
}
}
« no previous file with comments | « third_party/WebKit/Source/web/WebDOMFileSystem.cpp ('k') | third_party/WebKit/Source/web/WebFrameWidgetBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698