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

Unified Diff: ui/gfx/image/image_skia_operations.cc

Issue 18486007: Fix the misalignment on CrOS of the tab background images (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« chrome/browser/ui/views/tabs/tab_util.h ('K') | « chrome/chrome_browser_ui.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image_skia_operations.cc
diff --git a/ui/gfx/image/image_skia_operations.cc b/ui/gfx/image/image_skia_operations.cc
index 663156044d4213cbbad551d6b516c3182ae2d716..47ed26343c8e07c5af3545aaf439eeddeec7e301 100644
--- a/ui/gfx/image/image_skia_operations.cc
+++ b/ui/gfx/image/image_skia_operations.cc
@@ -519,6 +519,8 @@ ImageSkia ImageSkiaOperations::ExtractSubset(const ImageSkia& image,
if (image.isNull() || clipped_bounds.IsEmpty()) {
return ImageSkia();
}
+ if (clipped_bounds.size() == image.size())
+ return image;
return ImageSkia(new ExtractSubsetImageSource(image, clipped_bounds),
clipped_bounds.size());
« chrome/browser/ui/views/tabs/tab_util.h ('K') | « chrome/chrome_browser_ui.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698