Changeset 14501 in webkit


Ignore:
Timestamp:
May 20, 2006 1:57:16 AM (18 years ago)
Author:
ap
Message:

Reviewed by Darin.

  • page/FrameView.cpp: (WebCore::selectCursor): Fallback to CURSOR_AUTO if the image is an error image.
  • manual-tests/custom-cursors.html: Added.
Location:
trunk/WebCore
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r14500 r14501  
     12006-05-20  Alexey Proskuryakov  <ap@nypop.com>
     2
     3        Reviewed by Darin.
     4
     5        - http://bugzilla.opendarwin.org/show_bug.cgi?id=8991
     6          REGRESSION: missing or broken CSS custom cursors are displayed as
     7          a missing image icon
     8
     9        * page/FrameView.cpp:
     10        (WebCore::selectCursor): Fallback to CURSOR_AUTO if the image is an error image.
     11        * manual-tests/custom-cursors.html: Added.
     12
    1132006-05-20  Mitz Pettel  <opendarwin.org@mitzpettel.com>
    214
  • trunk/WebCore/page/FrameView.cpp

    r14346 r14501  
    552552
    553553    if (style && style->cursorImage() && !style->cursorImage()->image()->isNull())
    554         return style->cursorImage()->image();
     554        if (!style->cursorImage()->isErrorImage())
     555            return style->cursorImage()->image();
     556        else
     557            style = 0; // Fallback to CURSOR_AUTO
    555558
    556559    switch (style ? style->cursor() : CURSOR_AUTO) {
Note: See TracChangeset for help on using the changeset viewer.