Summary: | [Qt] embed checksums in PNGs written by Qt-DRT | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Tony Chang <tony> | ||||||||||
Component: | New Bugs | Assignee: | Tony Chang <tony> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | ossy | ||||||||||
Priority: | P2 | Keywords: | Qt, QtTriaged | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||||
Hardware: | Other | ||||||||||||
OS: | OS X 10.5 | ||||||||||||
Bug Depends on: | 58243 | ||||||||||||
Bug Blocks: | 56286 | ||||||||||||
Attachments: |
|
Description
Tony Chang
2011-04-08 16:19:02 PDT
Created attachment 88894 [details]
Patch
Created attachment 88895 [details]
fix license
Comment on attachment 88895 [details] fix license View in context: https://bugs.webkit.org/attachment.cgi?id=88895&action=review > Tools/DumpRenderTree/CyclicRedundancyCheck.cpp:36 > +static void makeCrcTable(unsigned int crcTable[256]) Why not just "unsigned"? I don't think the "int" adds anything here. > Tools/DumpRenderTree/qt/DumpRenderTree.pro:32 > + ../CyclicRedundancyCheck.h \ Does the .pro normally use ../ relative paths? Comment on attachment 88895 [details] fix license View in context: https://bugs.webkit.org/attachment.cgi?id=88895&action=review Unfortunately DRT crashes sometimes with this patch. r- now due to crashes. I will check it, and try to help fixing it. >> Tools/DumpRenderTree/qt/DumpRenderTree.pro:32 >> + ../CyclicRedundancyCheck.h \ > > Does the .pro normally use ../ relative paths? It works, but we usually add the directory to INCLUDEPATH instead of using relative header paths. *** Bug 58021 has been marked as a duplicate of this bug. *** Created attachment 88995 [details]
crash log
I got this crash log with the following command:
$ WebKitBuild/Release/bin/DumpRenderTree LayoutTests/svg/W3C-SVG-1.1-SE/paths-dom-02-f.svg
I can't reproduce this crash in debug mode and/or without your patch.
If we don't pass --pixel-tests, your code doesn't run.
I don't understand what and why cause this strange crash.
Splitting the 64bit fix into a separate bug while I look into the 64bit test crash. (In reply to comment #6) > Created an attachment (id=88995) [details] > crash log > > I got this crash log with the following command: > $ WebKitBuild/Release/bin/DumpRenderTree LayoutTests/svg/W3C-SVG-1.1-SE/paths-dom-02-f.svg > > I can't reproduce this crash in debug mode and/or without your patch. > > If we don't pass --pixel-tests, your code doesn't run. > I don't understand what and why cause this strange crash. I suspect this crash has to do with including FastMalloc.cpp. When writing this patch, I wasn't sure if it was OK to use wtf types (Vector.h) in QT's DRT. Up until now, DRT hasn't had any dependencies on wtf except for Assertions.h. If I can't use wtf, I could either switch to std::vector or duplicate the code (might be simpler since other code probably wants to use WTF::Vector). Created attachment 89233 [details]
Patch
(In reply to comment #9) > Created an attachment (id=89233) [details] > Patch QT++ for exposing comment writing/reading in the QImage API. Comment on attachment 89233 [details]
Patch
Cool! r=me
Committed r83619: <http://trac.webkit.org/changeset/83619> |