summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webcursor.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-11 04:17:09 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-11 04:17:09 +0000
commit4605be79a582881a1987b79694437be52df959af (patch)
tree7af8fb26ac5b4561a4fc0f719ba9c7bd3edeb1e7 /webkit/glue/webcursor.h
parentf36808a850fab540999d041e739fd8b37b144340 (diff)
downloadchromium_src-4605be79a582881a1987b79694437be52df959af.zip
chromium_src-4605be79a582881a1987b79694437be52df959af.tar.gz
chromium_src-4605be79a582881a1987b79694437be52df959af.tar.bz2
Clamp the hotspot on custom cursors to the custom cursor image's dimensions.
Current behavior: windows chrome - respect the crazy hotspot linux chrome - crash mac chrome - fall back to normal cursor firefox - clamp the hotspot to the custom cursor image bounds. So this unifies the behavior of all 3 chrome platforms and matches firefox. BUG=51709 TEST=see bug for reduction Review URL: http://codereview.chromium.org/3168003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55669 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webcursor.h')
-rw-r--r--webkit/glue/webcursor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/glue/webcursor.h b/webkit/glue/webcursor.h
index 293bd74..35eb001 100644
--- a/webkit/glue/webcursor.h
+++ b/webkit/glue/webcursor.h
@@ -127,6 +127,9 @@ class WebCursor {
void SetCustomData(const WebKit::WebImage& image);
void ImageFromCustomData(WebKit::WebImage* image) const;
+ // Clamp the hotspot to the custom image's bounds, if this is a custom cursor.
+ void ClampHotspot();
+
// WebCore::PlatformCursor type.
int type_;