[webkit-dev] Enabling support for high-dpi custom mouse cursors

Rick Byers rbyers at chromium.org
Fri Oct 19 13:53:54 PDT 2012


One of the few places WebKit still doesn't support high-DPI images is
custom 'cursor' CSS rules.  I brought this up on www-style awhile back [1]
and the consensus was that using image-set was the preferred mechanism.
 The CSS4 images draft spec now specifies that cursor can take any <image>
[2], including an image-set.

I'd like to take the first step by enabling -webkit-image-set support for
'cursor' rules on the chromium port (tracked in
http://wkb.ug/99493<https://bugs.webkit.org/show_bug.cgi?id=99493>).
 I plan to add an ENABLE(CSS_CURSOR_SCALE) flag which adds a single 'float
scale' to WebCore::Cursor that specifies the scale factor (in display
pixels per logical pixel) of the custom image data in a Cursor object.
 It's conceivable that other mechanisms could also use this (for example,
we could select the most appropriate image from a multi-resolution .cur
file).

Any concerns or suggestions?  I've got a rough working version of a patch
which I will get up for review next week sometime.

Thanks,
   Rick

[1] http://lists.w3.org/Archives/Public/www-style/2012Jul/0140.html
[2] http://dev.w3.org/csswg/css4-images/#image-values
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20121019/b01f4e00/attachment.html>


More information about the webkit-dev mailing list