Bug 16388

Summary: [GTK] Widget::setCursor() gets called frequently
Product: WebKit Reporter: Alp Toker <alp>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal Keywords: Gtk
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Workaround (cache the current GdkCursor*) mjs: review+

Description Alp Toker 2007-12-10 14:33:01 PST
Widget::setCursor() seems to get called on every mouse motion event and it seems the underlying implementation gdk_window_set_cursor() isn't too cheap.

This looks like it might be a WebCore bug. Confirmation on ports other than GTK+ would be helpful.
Comment 1 Alp Toker 2007-12-10 14:34:46 PST
Created attachment 17827 [details]
Workaround (cache the current GdkCursor*)
Comment 2 Maciej Stachowiak 2007-12-11 19:26:27 PST
Comment on attachment 17827 [details]
Workaround (cache the current GdkCursor*)

r=me
Comment 3 Alp Toker 2007-12-12 09:34:33 PST
Landed in r28655.