[Mac] WebCore includes unused cursor image resources
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Nov 2014 17:22:11 +0000 (17:22 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Nov 2014 17:22:11 +0000 (17:22 +0000)
commit6bd0a0903d20d6caaf4b820f04ca93cf2b5c1769
tree7c7d0f54f332590c7a2c0a968b1052159ca52f36
parent35b75614f8d6cb0c02b1e087a7f6afe1087f9e54
[Mac] WebCore includes unused cursor image resources
https://bugs.webkit.org/show_bug.cgi?id=138605

Reviewed by Anders Carlsson.

* Resources/aliasCursor.png: Removed.
* Resources/cellCursor.png: Removed.
* Resources/contextMenuCursor.png: Removed.
* Resources/copyCursor.png: Removed.
* Resources/eastResizeCursor.png: Removed.
* Resources/eastWestResizeCursor.png: Removed.
* Resources/helpCursor.png: Removed.
* Resources/linkCursor.png: Removed.
* Resources/moveCursor.png: Removed.
* Resources/noDropCursor.png: Removed.
* Resources/noneCursor.png: Removed.
* Resources/northEastResizeCursor.png: Removed.
* Resources/northEastSouthWestResizeCursor.png: Removed.
* Resources/northResizeCursor.png: Removed.
* Resources/northSouthResizeCursor.png: Removed.
* Resources/northWestResizeCursor.png: Removed.
* Resources/northWestSouthEastResizeCursor.png: Removed.
* Resources/progressCursor.png: Removed.
* Resources/southEastResizeCursor.png: Removed.
* Resources/southResizeCursor.png: Removed.
* Resources/southWestResizeCursor.png: Removed.
* Resources/verticalTextCursor.png: Removed.
* Resources/waitCursor.png: Removed.
* Resources/westResizeCursor.png: Removed.
* Resources/zoomInCursor.png: Removed.
* Resources/zoomOutCursor.png: Removed.

* WebCore.xcodeproj/project.pbxproj: Removed references to the above files.

* platform/mac/CursorMac.mm:
(WebCore::Cursor::ensurePlatformCursor): For Help, Cell, ZoomIn and ZoomOut, don’t check
for a nil return value from wkCursor(), which can’t occur in any supported configuration.
For None, create a cursor with an empty NSImage instead of loading a transparent image from
the file system.
(WebCore::createNamedCursor): Deleted.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@175941 268f45cc-cd09-0410-ab3c-d52691b4dbfc
29 files changed:
Source/WebCore/ChangeLog
Source/WebCore/Resources/aliasCursor.png [deleted file]
Source/WebCore/Resources/cellCursor.png [deleted file]
Source/WebCore/Resources/contextMenuCursor.png [deleted file]
Source/WebCore/Resources/copyCursor.png [deleted file]
Source/WebCore/Resources/eastResizeCursor.png [deleted file]
Source/WebCore/Resources/eastWestResizeCursor.png [deleted file]
Source/WebCore/Resources/helpCursor.png [deleted file]
Source/WebCore/Resources/linkCursor.png [deleted file]
Source/WebCore/Resources/moveCursor.png [deleted file]
Source/WebCore/Resources/noDropCursor.png [deleted file]
Source/WebCore/Resources/noneCursor.png [deleted file]
Source/WebCore/Resources/northEastResizeCursor.png [deleted file]
Source/WebCore/Resources/northEastSouthWestResizeCursor.png [deleted file]
Source/WebCore/Resources/northResizeCursor.png [deleted file]
Source/WebCore/Resources/northSouthResizeCursor.png [deleted file]
Source/WebCore/Resources/northWestResizeCursor.png [deleted file]
Source/WebCore/Resources/northWestSouthEastResizeCursor.png [deleted file]
Source/WebCore/Resources/progressCursor.png [deleted file]
Source/WebCore/Resources/southEastResizeCursor.png [deleted file]
Source/WebCore/Resources/southResizeCursor.png [deleted file]
Source/WebCore/Resources/southWestResizeCursor.png [deleted file]
Source/WebCore/Resources/verticalTextCursor.png [deleted file]
Source/WebCore/Resources/waitCursor.png [deleted file]
Source/WebCore/Resources/westResizeCursor.png [deleted file]
Source/WebCore/Resources/zoomInCursor.png [deleted file]
Source/WebCore/Resources/zoomOutCursor.png [deleted file]
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/platform/mac/CursorMac.mm