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

Unified Diff: printing/page_setup.cc

Issue 8505024: PrintPreview: [LINUX] While flipping the orientation, do not rotate the margins values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « printing/page_setup.h ('k') | printing/page_setup_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/page_setup.cc
diff --git a/printing/page_setup.cc b/printing/page_setup.cc
index ad0156eda455dc7e56be1988a5e54d79b22bcdaf..f0ea223adb0bbf2c1a21566950df201d509134e6 100644
--- a/printing/page_setup.cc
+++ b/printing/page_setup.cc
@@ -19,14 +19,6 @@ PageMargins::PageMargins()
bottom(0) {
}
-void PageMargins::Rotate() {
- int temp_right = right;
- right = bottom;
- bottom = left;
- left = top;
- top = temp_right;
-}
-
void PageMargins::Clear() {
header = 0;
footer = 0;
@@ -107,7 +99,6 @@ void PageSetup::FlipOrientation() {
new_y,
printable_area_.height(),
printable_area_.width());
- requested_margins_.Rotate();
Init(new_size, new_printable_area, text_height_);
}
}
« no previous file with comments | « printing/page_setup.h ('k') | printing/page_setup_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698