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

Unified Diff: chrome/browser/ui/cocoa/website_settings/split_block_button.mm

Issue 308063002: Round up button's dimensions so width and height are always pixel-aligned.. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/browser/ui/cocoa/website_settings/split_block_button.mm
diff --git a/chrome/browser/ui/cocoa/website_settings/split_block_button.mm b/chrome/browser/ui/cocoa/website_settings/split_block_button.mm
index e247a231f619ced17495646c2e8d1d215764a7f3..b57a59c008c5960f5b0ee3050bb4fe78de76ee64 100644
--- a/chrome/browser/ui/cocoa/website_settings/split_block_button.mm
+++ b/chrome/browser/ui/cocoa/website_settings/split_block_button.mm
@@ -262,9 +262,9 @@ void DrawBezel(id<ConstrainedWindowButtonDrawableCell>cell,
NSSize leftSize = [leftCell_ cellSize];
NSSize rightSize = [rightCell_ cellSize];
NSSize size = NSMakeSize(
- std::max(leftSize.width + rightSize.width,
- constrained_window_button::kButtonMinWidth),
- std::max(leftSize.height, rightSize.height));
+ std::ceil(std::max(leftSize.width + rightSize.width,
+ constrained_window_button::kButtonMinWidth)),
+ std::ceil(std::max(leftSize.height, rightSize.height)));
[self setFrameSize:size];
}
« 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