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

Unified Diff: chrome/common/extensions/extension_action.cc

Issue 7067031: roll skia 1402:1410 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: post revert Created 9 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 | « chrome/browser/ui/views/create_application_shortcut_view.cc ('k') | skia/ext/canvas_paint_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_action.cc
diff --git a/chrome/common/extensions/extension_action.cc b/chrome/common/extensions/extension_action.cc
index 0cb4a0f0cce99c6e7d6a2fb608ee23e3e58016d9..ae39c5f89b269ddd7e5e8a57193ba4dc8022d3df 100644
--- a/chrome/common/extensions/extension_action.cc
+++ b/chrome/common/extensions/extension_action.cc
@@ -147,8 +147,8 @@ void ExtensionAction::PaintBadge(gfx::Canvas* canvas,
if (badge_width >= kCenterAlignThreshold) {
rect.fLeft = SkIntToScalar(
SkScalarFloor(SkIntToScalar(bounds.x()) +
- SkIntToScalar(bounds.width() / 2.0) -
- SkIntToScalar(badge_width / 2.0)));
+ SkIntToScalar(bounds.width()) / 2 -
+ SkIntToScalar(badge_width) / 2));
rect.fRight = rect.fLeft + SkIntToScalar(badge_width);
} else {
rect.fRight = SkIntToScalar(bounds.right());
« no previous file with comments | « chrome/browser/ui/views/create_application_shortcut_view.cc ('k') | skia/ext/canvas_paint_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698