Bug 59607

Summary: Fix build with libpng-1.5.1
Product: WebKit Reporter: ojab <ojab>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dglazkov, levin, pkasting, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
patch
none
Conditionalized patch
levin: review-
Using real types
none
Using real types
none
Using png_char/png_byte types
none
Using png_charp/png_bytep types none

ojab
Reported 2011-04-27 08:31:18 PDT
Created attachment 91286 [details] patch In png_get_iCCP, the type of "profile" was changed from png_charpp to png_bytepp, so change type of profile from char* to unsigned char*. Don't know if I should " #if (PNG_LIBPNG_VER < 10500) ", let's try without it first.
Attachments
patch (687 bytes, patch)
2011-04-27 08:31 PDT, ojab
no flags
Conditionalized patch (733 bytes, patch)
2011-04-27 08:40 PDT, ojab
levin: review-
Using real types (1.50 KB, patch)
2011-04-27 23:13 PDT, ojab
no flags
Using real types (1.50 KB, patch)
2011-04-27 23:18 PDT, ojab
no flags
Using png_char/png_byte types (1.26 KB, patch)
2011-04-28 03:07 PDT, ojab
no flags
Using png_charp/png_bytep types (1.26 KB, patch)
2011-04-28 03:34 PDT, ojab
no flags
WebKit Review Bot
Comment 1 2011-04-27 08:35:10 PDT
ojab
Comment 2 2011-04-27 08:40:41 PDT
Created attachment 91289 [details] Conditionalized patch
David Levin
Comment 3 2011-04-27 12:47:16 PDT
Comment on attachment 91289 [details] Conditionalized patch Needs changelog see http://www.webkit.org/coding/contributing.html
David Levin
Comment 4 2011-04-27 12:47:40 PDT
Adding Peter in case he has any comments on this change.
Peter Kasting
Comment 5 2011-04-27 15:28:54 PDT
(In reply to comment #4) > Adding Peter in case he has any comments on this change. Is it possible for us to use the real types here, IOW "png_bytepp" in place of "unsigned char*"? I realize we'll still need a conditional, but it seems like we might as well match the API exactly.
ojab
Comment 6 2011-04-27 23:13:52 PDT
Created attachment 91433 [details] Using real types Something like that, I think. Is svn-create-patch necessary or I could simply use `git diff`, if I'm using git repo?
WebKit Review Bot
Comment 7 2011-04-27 23:15:27 PDT
Attachment 91433 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/ChangeLog:1: Line contains tab character. [whitespace/tab] [5] Total errors found: 1 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Review Bot
Comment 8 2011-04-27 23:18:12 PDT
ojab
Comment 9 2011-04-27 23:18:17 PDT
Created attachment 91434 [details] Using real types
WebKit Review Bot
Comment 10 2011-04-27 23:25:07 PDT
ojab
Comment 11 2011-04-28 03:07:48 PDT
Created attachment 91454 [details] Using png_char/png_byte types This time created with svn-create-patch after reading libpng docs.
WebKit Review Bot
Comment 12 2011-04-28 03:22:53 PDT
ojab
Comment 13 2011-04-28 03:34:42 PDT
Created attachment 91462 [details] Using png_charp/png_bytep types
WebKit Commit Bot
Comment 14 2011-04-28 07:23:16 PDT
Comment on attachment 91462 [details] Using png_charp/png_bytep types Clearing flags on attachment: 91462 Committed r85181: <http://trac.webkit.org/changeset/85181>
WebKit Commit Bot
Comment 15 2011-04-28 07:23:22 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.