summaryrefslogtreecommitdiffstats
path: root/app/gfx/path.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-19 03:37:00 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-19 03:37:00 +0000
commit9513f20493f07ab43d68ccb55fa321086bf955b3 (patch)
tree82c91d40127cc72266edef46812b3f71a2ff4bc8 /app/gfx/path.h
parent134c47b9e74ab7aa6dce7e1beeaf5e406a925b76 (diff)
downloadchromium_src-9513f20493f07ab43d68ccb55fa321086bf955b3.zip
chromium_src-9513f20493f07ab43d68ccb55fa321086bf955b3.tar.gz
chromium_src-9513f20493f07ab43d68ccb55fa321086bf955b3.tar.bz2
Makes Path::CreateGdkRegion return NULL for empty paths. Without this
gdk_region_polygon asserts. And adds the null check in WindowGtk. BUG=none TEST=none Review URL: http://codereview.chromium.org/164441 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23691 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gfx/path.h')
-rw-r--r--app/gfx/path.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/gfx/path.h b/app/gfx/path.h
index 96ae427..8062e34 100644
--- a/app/gfx/path.h
+++ b/app/gfx/path.h
@@ -28,6 +28,7 @@ class Path : public SkPath {
#elif defined(OS_LINUX)
// Creates a Gdkregion from the path. The caller is responsible for freeing
// resources used by this region. This only supports polygon paths.
+ // WARNING: this returns NULL for an empty Path.
GdkRegion* CreateGdkRegion() const;
#endif