Changeset 72495 in webkit
- Timestamp:
- Nov 20, 2010 10:44:29 PM (13 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r72494 r72495 1 2010-11-20 Andreas Kling <kling@webkit.org> 2 3 Reviewed by Antonio Gomes. 4 5 [Qt] Limit the size of image preview "cursor" when dragging 6 https://bugs.webkit.org/show_bug.cgi?id=49872 7 8 Respect DragController::maxDragImageSize() (currently 400x400.) 9 10 * platform/qt/DragImageQt.cpp: 11 (WebCore::dragImageSize): 12 (WebCore::scaleDragImage): 13 1 14 2010-11-20 Andreas Kling <kling@webkit.org> 2 15 -
trunk/WebCore/platform/qt/DragImageQt.cpp
r72494 r72495 32 32 namespace WebCore { 33 33 34 IntSize dragImageSize(DragImageRef )34 IntSize dragImageSize(DragImageRef image) 35 35 { 36 return IntSize(0, 0); 36 if (!image) 37 return IntSize(); 38 39 return image->size(); 37 40 } 38 41 … … 42 45 } 43 46 44 DragImageRef scaleDragImage(DragImageRef image, FloatSize )47 DragImageRef scaleDragImage(DragImageRef image, FloatSize scale) 45 48 { 49 if (!image) 50 return 0; 51 52 int scaledWidth = image->width() * scale.width(); 53 int scaledHeight = image->height() * scale.height(); 54 55 *image = image->scaled(scaledWidth, scaledHeight); 46 56 return image; 47 57 }
Note: See TracChangeset
for help on using the changeset viewer.