Commit 37fbcdb2 authored by pkotwicz@chromium.org's avatar pkotwicz@chromium.org

Fixes misaligned tab background image

BUG=135258
TEST=Manual, made sure that the tab background was fully tinted with several themes

Review URL: https://chromiumcodereview.appspot.com/10690115

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146266 0039d316-1c4b-4281-b951-d872f2087c98
parent 0208106d
...@@ -1014,7 +1014,7 @@ void BrowserThemePack::GenerateTabBackgroundImages(ImageCache* bitmaps) const { ...@@ -1014,7 +1014,7 @@ void BrowserThemePack::GenerateTabBackgroundImages(ImageCache* bitmaps) const {
SkFloatToScalar(image_rep_to_tint.GetScale()); SkFloatToScalar(image_rep_to_tint.GetScale());
canvas.sk_canvas()->scale(image_rep_to_tint_scale, canvas.sk_canvas()->scale(image_rep_to_tint_scale,
image_rep_to_tint_scale); image_rep_to_tint_scale);
canvas.TileImageInt(bg_tint, 0, vertical_offset, canvas.TileImageInt(bg_tint, 0, vertical_offset, 0, 0,
bg_tint_dip_size.width(), bg_tint_dip_size.height()); bg_tint_dip_size.width(), bg_tint_dip_size.height());
// If they've provided a custom image, overlay it. // If they've provided a custom image, overlay it.
......
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