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

Unified Diff: chrome/renderer/print_web_view_helper.cc

Issue 2841035: Fix style issues pointed in another change. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Created 10 years, 6 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 | chrome/renderer/print_web_view_helper_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/print_web_view_helper.cc
diff --git a/chrome/renderer/print_web_view_helper.cc b/chrome/renderer/print_web_view_helper.cc
index fb0ece77ff9b9fe28f27d34a2d44b39b314daddc..1bc5084a432c461e307b6bdb1c9986bad035fa54 100644
--- a/chrome/renderer/print_web_view_helper.cc
+++ b/chrome/renderer/print_web_view_helper.cc
@@ -380,12 +380,12 @@ void PrintWebViewHelper::GetPageSizeAndMarginsInPoints(
default_params.margin_top,
dpi, printing::kPixelsPerInch);
int margin_right_in_pixels = ConvertUnit(
- default_params.page_size.width()
- - default_params.printable_size.width() - default_params.margin_left,
+ default_params.page_size.width() -
+ default_params.printable_size.width() - default_params.margin_left,
dpi, printing::kPixelsPerInch);
int margin_bottom_in_pixels = ConvertUnit(
- default_params.page_size.height()
- - default_params.printable_size.height() - default_params.margin_top,
+ default_params.page_size.height() -
+ default_params.printable_size.height() - default_params.margin_top,
dpi, printing::kPixelsPerInch);
int margin_left_in_pixels = ConvertUnit(
default_params.margin_left,
@@ -400,12 +400,12 @@ void PrintWebViewHelper::GetPageSizeAndMarginsInPoints(
margin_left_in_pixels);
}
- *content_width_in_points = ConvertPixelsToPoint(page_size_in_pixels.width
- - margin_left_in_pixels
- - margin_right_in_pixels);
- *content_height_in_points = ConvertPixelsToPoint(page_size_in_pixels.height
- - margin_top_in_pixels
- - margin_bottom_in_pixels);
+ *content_width_in_points = ConvertPixelsToPoint(page_size_in_pixels.width -
+ margin_left_in_pixels -
+ margin_right_in_pixels);
+ *content_height_in_points = ConvertPixelsToPoint(page_size_in_pixels.height -
+ margin_top_in_pixels -
+ margin_bottom_in_pixels);
// Invalid page size and/or margins. We just use the default setting.
if (*content_width_in_points < 1.0 || *content_height_in_points < 1.0) {
« no previous file with comments | « no previous file | chrome/renderer/print_web_view_helper_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698