Changeset 70050 in webkit
- Timestamp:
- Oct 19, 2010 5:46:03 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r70047 r70050 1 2010-10-19 Andreas Kling <kling@webkit.org> 2 3 Reviewed by Tor Arne Vestbø. 4 5 [Qt] getImageData returns wrong data for non-0,0 source offset 6 https://bugs.webkit.org/show_bug.cgi?id=47898 7 8 * fast/canvas/canvas-getImageData-negative-source-expected.txt: Added. 9 * fast/canvas/canvas-getImageData-negative-source.html: Added. 10 * fast/canvas/script-tests/canvas-getImageData-negative-source.js: Added. 11 1 12 2010-10-19 Ben Murdoch <benm@google.com> 2 13 -
trunk/WebCore/ChangeLog
r70049 r70050 1 2010-10-19 Andreas Kling <kling@webkit.org> 2 3 Reviewed by Tor Arne Vestbø. 4 5 [Qt] getImageData returns wrong data for non-0,0 source offset 6 https://bugs.webkit.org/show_bug.cgi?id=47898 7 8 Test: fast/canvas/canvas-getImageData-negative-source.html 9 10 * platform/graphics/qt/ImageBufferQt.cpp: 11 (WebCore::getImageData): Add missing *4's to get correct pixel offset. 12 1 13 2010-10-19 Andreas Kling <kling@webkit.org> 2 14 -
trunk/WebCore/platform/graphics/qt/ImageBufferQt.cpp
r70049 r70050 218 218 #endif 219 219 220 quint32* destRows = reinterpret_cast_ptr<quint32*>(&data[desty * rect.width() + destx]);220 quint32* destRows = reinterpret_cast_ptr<quint32*>(&data[desty * rect.width() * 4 + destx * 4]); 221 221 222 222 if (multiplied == Unmultiplied) {
Note: See TracChangeset
for help on using the changeset viewer.