From f0b6b4881e24a1e7cd9524c4e381382c14bde1f1 Mon Sep 17 00:00:00 2001 From: "sadrul@chromium.org" Date: Tue, 23 Nov 2010 00:55:28 +0000 Subject: Refactoring of cursor usage (primarily for linux). Add API to WebCursor to return a native-cursor, and implementation for windows, linux and mac. For linux: Move gtk_util::GetCursor into gfx:: namespace. Also, get rid of ref/unref'ing the cursors from everywhere. Instead, do almost all of it in one place (in gfx). Also, show proper cursors for web-pages with touchui=1 (i.e. add support for updating cursor in RenderWidgetHostViewViews). Review URL: http://codereview.chromium.org/5110010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67034 0039d316-1c4b-4281-b951-d872f2087c98 --- views/widget/root_view.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'views/widget') diff --git a/views/widget/root_view.cc b/views/widget/root_view.cc index 91d639c..753e9de 100644 --- a/views/widget/root_view.cc +++ b/views/widget/root_view.cc @@ -779,8 +779,6 @@ void RootView::SetActiveCursor(gfx::NativeCursor cursor) { if (!native_view) return; gdk_window_set_cursor(native_view->window, cursor); - if (cursor) - gdk_cursor_destroy(cursor); #endif } -- cgit v1.1