| Index: chrome/common/extensions/extension_action.cc
|
| ===================================================================
|
| --- chrome/common/extensions/extension_action.cc (revision 86494)
|
| +++ chrome/common/extensions/extension_action.cc (working copy)
|
| @@ -147,8 +147,8 @@
|
| if (badge_width >= kCenterAlignThreshold) {
|
| rect.fLeft = SkIntToScalar(
|
| SkScalarFloor(SkIntToScalar(bounds.x()) +
|
| - SkIntToScalar(bounds.width() / 2) -
|
| - SkIntToScalar(badge_width / 2)));
|
| + SkIntToScalar(bounds.width() / 2.0) -
|
| + SkIntToScalar(badge_width / 2.0)));
|
| rect.fRight = rect.fLeft + SkIntToScalar(badge_width);
|
| } else {
|
| rect.fRight = SkIntToScalar(bounds.right());
|
|
|