Fixes coding style: follow-up of http://crrev.com/59193005 .

Addressed nit comments of http://crrev.com/59193005 .

BUG=315056
TEST=none

Review URL: https://codereview.chromium.org/59513006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233515 0039d316-1c4b-4281-b951-d872f2087c98
parent 933a9206
...@@ -523,8 +523,10 @@ OmniboxViewWin::OmniboxViewWin(OmniboxEditController* controller, ...@@ -523,8 +523,10 @@ OmniboxViewWin::OmniboxViewWin(OmniboxEditController* controller,
(static_cast<float>(cap_height) * kXHeightRatio) + 0.5); (static_cast<float>(cap_height) * kXHeightRatio) + 0.5);
// Determine the y offset centering cap height. // Determine the y offset centering cap height.
const int location_height = location_bar_->GetInternalHeight(true); const int location_height = location_bar_->GetInternalHeight(true);
font_y_adjustment_ = std::max(0, font_y_adjustment_ = std::max(
int((location_height - cap_height) / 2 - tm.tmInternalLeading)); 0,
static_cast<int>((location_height - cap_height) / 2 -
tm.tmInternalLeading));
// Get the number of twips per pixel, which we need below to offset our text // Get the number of twips per pixel, which we need below to offset our text
// by the desired number of pixels. // by the desired number of pixels.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment