summaryrefslogtreecommitdiffstats
path: root/webkit/api
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-09 22:25:07 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-09 22:25:07 +0000
commitc9567302bad6b2c15bc683c99b698fad5660e6aa (patch)
treeaa5bd4f2ff5677e5145ba48883efb44c9147cb08 /webkit/api
parent188e615fff61d8b86dabdea3ee56224bd9162649 (diff)
downloadchromium_src-c9567302bad6b2c15bc683c99b698fad5660e6aa.zip
chromium_src-c9567302bad6b2c15bc683c99b698fad5660e6aa.tar.gz
chromium_src-c9567302bad6b2c15bc683c99b698fad5660e6aa.tar.bz2
Fix custom cursors on Mac. Null and 0 turn out not to be opposites.
I also added an assertion to webcursor_mac.mm that is probably a bit redundant with the one in AppKit, but this way the assertion is more visible to someone reading this file. BUG=16346 TEST=load a page that uses a custom css cursor. R=pinkerton Review URL: http://codereview.chromium.org/155320 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/api')
-rw-r--r--webkit/api/src/WebImageCG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/api/src/WebImageCG.cpp b/webkit/api/src/WebImageCG.cpp
index 34cee01..1c28929 100644
--- a/webkit/api/src/WebImageCG.cpp
+++ b/webkit/api/src/WebImageCG.cpp
@@ -76,7 +76,7 @@ void WebImage::assign(const WebImage& image)
bool WebImage::isNull() const
{
- return m_imageRef != 0;
+ return m_imageRef == 0;
}
WebSize WebImage::size() const