[webkit-reviews] review denied: [Bug 61314] [Qt] QtWebKit crashes when dragging not loaded images : [Attachment 94507] Patch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 24 04:30:09 PDT 2011
Andreas Kling <kling at webkit.org> has denied Igor Trindade Oliveira
<itrindade.oliveira at gmail.com>'s request for review:
Bug 61314: [Qt] QtWebKit crashes when dragging not loaded images
https://bugs.webkit.org/show_bug.cgi?id=61314
Attachment 94507: Patch
https://bugs.webkit.org/attachment.cgi?id=94507&action=review
------- Additional Comments from Andreas Kling <kling at webkit.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=94507&action=review
Good catch! Needs a test though.
> Source/WebCore/platform/qt/DragImageQt.cpp:70
> - if (!image)
> - return 0;
> + QPixmap* dragImage = 0;
> + if (image && image->nativeImageForCurrentFrame())
> + dragImage = new QPixmap(*image->nativeImageForCurrentFrame());
>
> - return new QPixmap(*image->nativeImageForCurrentFrame());
> + return dragImage;
This would read better as:
if (!image || !image->nativeImageForCurrentFrame())
return 0;
return new QPixmap(*image->nativeImageForCurrentFrame());
More information about the webkit-reviews
mailing list