Changeset 25532 in webkit
- Timestamp:
- Sep 12, 2007 11:27:09 PM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r25530 r25532 1 2007-09-12 Oliver Hunt <oliver@apple.com> 2 3 Reviewed by Adam. 4 5 Corrections missed in previous revision 6 7 * platform/Cursor.h: 8 * platform/win/CursorWin.cpp: 9 (WebCore::loadCursorByName): 10 1 11 2007-09-12 Oliver Hunt <oliver@apple.com> 2 12 -
trunk/WebCore/platform/Cursor.h
r25530 r25532 33 33 typedef HICON HCURSOR; 34 34 #include <Shared.h> 35 #include < RefPtr.h>35 #include <wtf/RefPtr.h> 36 36 #elif PLATFORM(GDK) 37 37 #include <gdk/gdk.h> … … 60 60 DestroyIcon(m_nativeCursor); 61 61 } 62 HCURSOR nativeCursor() { return m_nativeCursor; }62 HCURSOR nativeCursor() const { return m_nativeCursor; } 63 63 private: 64 64 HCURSOR m_nativeCursor; -
trunk/WebCore/platform/win/CursorWin.cpp
r25530 r25532 30 30 #include "Image.h" 31 31 #include "IntPoint.h" 32 33 #include <wtf/OwnPtr.h> 34 32 35 #include <windows.h> 33 36 … … 147 150 } 148 151 149 static Cursor loadCursorByName(char *name, int x, int y) { 152 static Cursor loadCursorByName(char* name, int x, int y) 153 { 150 154 IntPoint hotSpot(x, y); 151 155 Cursor c; 152 Image *cursorImage = Image::loadPlatformResource(name); 153 if (cursorImage && !cursorImage->isNull()) { 154 c = Cursor(cursorImage, hotSpot); 155 delete cursorImage; 156 } else 156 OwnPtr<Image> cursorImage(Image::loadPlatformResource(name)); 157 if (cursorImage && !cursorImage->isNull()) 158 c = Cursor(cursorImage.get(), hotSpot); 159 else 157 160 c = pointerCursor(); 158 161 return c;
Note: See TracChangeset
for help on using the changeset viewer.