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

Unified Diff: components/printing/renderer/print_web_view_helper.cc

Issue 2417683002: Disable scroll anchoring when in printing mode (Closed)
Patch Set: Add comment Created 4 years, 2 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 | third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/printing/renderer/print_web_view_helper.cc
diff --git a/components/printing/renderer/print_web_view_helper.cc b/components/printing/renderer/print_web_view_helper.cc
index 7e9df81aac57f41ec92577098edb65509a6baf92..74b4d44f00b8d141dd6596e450d05ca856e91d12 100644
--- a/components/printing/renderer/print_web_view_helper.cc
+++ b/components/printing/renderer/print_web_view_helper.cc
@@ -803,11 +803,11 @@ void PrepareFrameAndViewForPrint::FinishPrinting() {
blink::WebView* web_view = frame->view();
if (is_printing_started_) {
is_printing_started_ = false;
- frame->printEnd();
if (!owns_web_view_) {
web_view->settings()->setShouldPrintBackgrounds(false);
RestoreSize();
}
+ frame->printEnd();
}
if (owns_web_view_) {
DCHECK(!frame->isLoading());
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698