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

Unified Diff: chrome/renderer/render_view.cc

Issue 206033: Print the frame where the window.print() call origins from.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 26716)
+++ chrome/renderer/render_view.cc (working copy)
@@ -1371,11 +1371,8 @@
}
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() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698