summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webcursor_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webcursor_win.cc')
-rw-r--r--webkit/glue/webcursor_win.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/webkit/glue/webcursor_win.cc b/webkit/glue/webcursor_win.cc
index 8671367..f4d05d8 100644
--- a/webkit/glue/webcursor_win.cc
+++ b/webkit/glue/webcursor_win.cc
@@ -189,15 +189,3 @@ void WebCursor::InitFromCursor(HCURSOR cursor) {
// TODO(iyengar) Add support for custom cursors.
*this = WebCursor(ToPlatformCursorType(cursor));
}
-
-void WebCursor::SetCustomData(WebCore::Image* image) {
- WebCore::NativeImagePtr image_ptr = image->nativeImageForCurrentFrame();
- if (!image_ptr)
- return;
-
- SkAutoLockPixels bitmap_lock(*image_ptr);
- custom_data_.resize(image_ptr->getSize());
- memcpy(&custom_data_[0], image_ptr->getPixels(), image_ptr->getSize());
- custom_size_.set_width(image_ptr->width());
- custom_size_.set_height(image_ptr->height());
-}