summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-29 22:06:40 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-29 22:06:40 +0000
commitfc81ac2d712a65c951005a8905a1edc114a1c1ef (patch)
treed295e947157f2bd09fde08334aaa1e1e81c842a0 /chrome/common
parentcad01431b348b5c01ded71f05f2f30f8dcc41d22 (diff)
downloadchromium_src-fc81ac2d712a65c951005a8905a1edc114a1c1ef.zip
chromium_src-fc81ac2d712a65c951005a8905a1edc114a1c1ef.tar.gz
chromium_src-fc81ac2d712a65c951005a8905a1edc114a1c1ef.tar.bz2
Per Glen, remove the bottom border of maximized windows. I went ahead and also removed support for window frame sizes with unequal widths vs. heights; Windows' UI doesn't actually let you do this and it was making the code more complex than it needed to be.
Review URL: http://codereview.chromium.org/19477 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8916 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/gfx/chrome_canvas.cc11
-rw-r--r--chrome/common/gfx/chrome_canvas.h2
2 files changed, 3 insertions, 10 deletions
diff --git a/chrome/common/gfx/chrome_canvas.cc b/chrome/common/gfx/chrome_canvas.cc
index f439680..673b73b 100644
--- a/chrome/common/gfx/chrome_canvas.cc
+++ b/chrome/common/gfx/chrome_canvas.cc
@@ -208,12 +208,7 @@ void ChromeCanvas::DrawBitmapInt(const SkBitmap& bitmap, int src_x, int src_y,
void ChromeCanvas::TileImageInt(const SkBitmap& bitmap,
int x, int y, int w, int h) {
- TileImageInt(bitmap, 0, 0, x, y, w, h);
-}
-
-void ChromeCanvas::TileImageInt(const SkBitmap& bitmap, int src_x, int src_y,
- int dest_x, int dest_y, int w, int h) {
- if (!IntersectsClipRectInt(dest_x, dest_y, w, h))
+ if (!IntersectsClipRectInt(x, y, w, h))
return;
SkPaint paint;
@@ -228,8 +223,8 @@ void ChromeCanvas::TileImageInt(const SkBitmap& bitmap, int src_x, int src_y,
// need to unref after paint takes ownership of the shader.
shader->unref();
save();
- translate(SkIntToScalar(dest_x - src_x), SkIntToScalar(dest_y - src_y));
- ClipRectInt(src_x, src_y, w, h);
+ translate(SkIntToScalar(x), SkIntToScalar(y));
+ ClipRectInt(0, 0, w, h);
drawPaint(paint);
restore();
}
diff --git a/chrome/common/gfx/chrome_canvas.h b/chrome/common/gfx/chrome_canvas.h
index 370098f..6465298 100644
--- a/chrome/common/gfx/chrome_canvas.h
+++ b/chrome/common/gfx/chrome_canvas.h
@@ -152,8 +152,6 @@ class ChromeCanvas : public skia::PlatformCanvas {
// Tiles the image in the specified region.
void TileImageInt(const SkBitmap& bitmap, int x, int y, int w, int h);
- void TileImageInt(const SkBitmap& bitmap, int src_x, int src_y, int dest_x,
- int dest_y, int w, int h);
// Extracts a bitmap from the contents of this canvas.
SkBitmap ExtractBitmap();