summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/nine_box.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-22 20:24:06 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-22 20:24:06 +0000
commit36345874fb0086e5fc509caf01e84d26fd982afd (patch)
tree7c4157f2d150004038f17477bc6bab18e5ef0f21 /chrome/browser/gtk/nine_box.cc
parent5ec89fa2cffd6582b311b1861e4fbd8af71bc5ae (diff)
downloadchromium_src-36345874fb0086e5fc509caf01e84d26fd982afd.zip
chromium_src-36345874fb0086e5fc509caf01e84d26fd982afd.tar.gz
chromium_src-36345874fb0086e5fc509caf01e84d26fd982afd.tar.bz2
Avoid DCHECK in nine box during download shelf animation.
That DCHECK might be a little overzealous, but is probably useful for most situations, so I'm leaving it. TBR=tony Review URL: http://codereview.chromium.org/92036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/nine_box.cc')
-rw-r--r--chrome/browser/gtk/nine_box.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/gtk/nine_box.cc b/chrome/browser/gtk/nine_box.cc
index 677d8fb..ea79903 100644
--- a/chrome/browser/gtk/nine_box.cc
+++ b/chrome/browser/gtk/nine_box.cc
@@ -69,8 +69,8 @@ void NineBox::RenderToWidget(GtkWidget* dst) {
const int y1 = gdk_pixbuf_get_height(images[0]);
const int x2 = images[2] ? dst_width - gdk_pixbuf_get_width(images[2]) : x1;
const int y2 = images[6] ? dst_height - gdk_pixbuf_get_height(images[6]) : y1;
- DCHECK(x2 >= x1);
- DCHECK(y2 >= y1);
+ DCHECK_GE(x2, x1);
+ DCHECK_GE(y2, y1);
if (images[0])
DrawPixbuf(dst, images[0], 0, 0);