Image.h includes ImageSource.h in order to know the definition of NativeImagePtr. But Image does not need to know the definition of ImageSource. So, this patch extracts the definition of NativeImagePtr from ImageSource.h into NativeImagePtr.h. This is a preparation for asynchronous image decoding. Async decoding will need a callback function, which sends a NativeImagePtr to clients, and the callback must know the definition of NativeImagePtr, not ImageSource.
Created attachment 157186 [details] Patch
Comment on attachment 157186 [details] Patch Attachment 157186 [details] did not pass gtk-ews (gtk): Output: http://queues.webkit.org/results/13455502
+1 I like this is separated.
Comment on attachment 157186 [details] Patch Ok. Looks like you've got a build issue on GTK to resolve before landing.
(In reply to comment #4) > (From update of attachment 157186 [details]) > Ok. Looks like you've got a build issue on GTK to resolve before landing. Thanks. I will land the patch after fixing the build issue.
Comment on attachment 157186 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=157186&action=review > Source/WebCore/platform/graphics/NativeImagePtr.h:2 > + * Copyright (C) 2012 Company 100 Inc. All rights reserved. I think we should keep the original copyright of ImageSource.h because this patch simply copies the definition of NativeImagePtr from ImageSource.h. Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. Copyright (C) 2007-2008 Torch Mobile, Inc.
Thank all for review.
Created attachment 157363 [details] Patch for landing
Comment on attachment 157363 [details] Patch for landing Rejecting attachment 157363 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1 ERROR: /mnt/git/webkit-commit-queue/Source/WebCore/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive). Full output: http://queues.webkit.org/results/13451995
Committed r125143: <http://trac.webkit.org/changeset/125143>
Re-opened since this is blocked by 93573
Created attachment 157458 [details] Patch for landing
Comment on attachment 157458 [details] Patch for landing Rejecting attachment 157458 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: (content): Merge conflict in Source/WebCore/ChangeLog Failed to merge in the changes. Patch failed at 0001 [chromium] Pass mask scale and offset to shaders for correct masking When you have resolved this problem run "git rebase --continue". If you would prefer to skip this patch, instead run "git rebase --skip". To restore the original branch and stop rebasing run "git rebase --abort". rebase refs/remotes/origin/master: command returned error: 1 Died at Tools/Scripts/update-webkit line 164. Full output: http://queues.webkit.org/results/13457935
Comment on attachment 157458 [details] Patch for landing Clearing flags on attachment: 157458 Committed r125203: <http://trac.webkit.org/changeset/125203>
All reviewed patches have been landed. Closing bug.