summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/renderer/render_view.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index ddd1793..406bdca 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -1371,11 +1371,8 @@ void RenderView::didAddMessageToConsole(
}
void RenderView::printPage(WebFrame* frame) {
- DCHECK(webview());
- if (webview()) {
- // Print the full page - not just the frame the javascript is running from.
- Print(webview()->GetMainFrame(), true);
- }
+ DCHECK(frame);
+ Print(frame, true);
}
void RenderView::didStartLoading() {