Changeset 95057 in webkit


Ignore:
Timestamp:
Sep 13, 2011 5:05:13 PM (13 years ago)
Author:
jeffm@apple.com
Message:

WebCore::Cursor::ensurePlatformCursor() should always set a valid platform cursor on Windows
https://bugs.webkit.org/show_bug.cgi?id=68043

Make sure we set a valid platform cursor in the Cursor::NoDrop case, and add a default
clause that uses the arrow cursor in case another cursor type is added in the future
and we forget to update ensurePlatformCursor().

Reviewed by Anders Carlsson.

  • platform/win/CursorWin.cpp:

(WebCore::Cursor::ensurePlatformCursor): Always set a valid platform cursor.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r95056 r95057  
     12011-09-13  Jeff Miller  <jeffm@apple.com>
     2
     3        WebCore::Cursor::ensurePlatformCursor() should always set a valid platform cursor on Windows
     4        https://bugs.webkit.org/show_bug.cgi?id=68043
     5       
     6        Make sure we set a valid platform cursor in the Cursor::NoDrop case, and add a default
     7        clause that uses the arrow cursor in case another cursor type is added in the future
     8        and we forget to update ensurePlatformCursor().
     9
     10        Reviewed by Anders Carlsson.
     11
     12        * platform/win/CursorWin.cpp:
     13        (WebCore::Cursor::ensurePlatformCursor): Always set a valid platform cursor.
     14
    1152011-09-12  Jon Honeycutt  <jhoneycutt@apple.com>
    216
  • trunk/Source/WebCore/platform/win/CursorWin.cpp

    r85420 r95057  
    244244        break;
    245245    case Cursor::NoDrop:
    246         break;
    247246    case Cursor::NotAllowed:
    248247        m_platformCursor = loadSharedCursor(0, IDC_NO);
     
    256255    case Cursor::Custom:
    257256        m_platformCursor = createSharedCursor(m_image.get(), m_hotSpot);
     257        break;
     258    default:
     259        ASSERT_NOT_REACHED();
     260        m_platformCursor = loadSharedCursor(0, IDC_ARROW);
    258261        break;
    259262    }
Note: See TracChangeset for help on using the changeset viewer.