RESOLVED FIXED95470
[CG] ImageCG.cpp contains a mix of Image and BitmapImage functions
https://bugs.webkit.org/show_bug.cgi?id=95470
Summary [CG] ImageCG.cpp contains a mix of Image and BitmapImage functions
mitz
Reported 2012-08-30 09:46:16 PDT
[CG] ImageCG.cpp contains a mix of Image and BitmapImage functions
Attachments
Split BitmapImage functions out into BitmapImageCG.cpp (30.27 KB, patch)
2012-08-30 09:48 PDT, mitz
darin: review+
buildbot: commit-queue-
Split BitmapImage functions out into BitmapImageCG.cpp (31.44 KB, patch)
2012-08-30 10:45 PDT, mitz
no flags
Split BitmapImage functions out into BitmapImageCG.cpp (32.07 KB, patch)
2012-08-30 10:48 PDT, mitz
no flags
mitz
Comment 1 2012-08-30 09:48:41 PDT
Created attachment 161498 [details] Split BitmapImage functions out into BitmapImageCG.cpp
WebKit Review Bot
Comment 2 2012-08-30 09:53:51 PDT
Attachment 161498 [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/platform/graphics/cg/BitmapImageCG.cpp:120: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Source/WebCore/platform/graphics/cg/BitmapImageCG.cpp:152: Use 0 instead of NULL. [readability/null] [5] Total errors found: 2 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 3 2012-08-30 10:32:37 PDT
Comment on attachment 161498 [details] Split BitmapImage functions out into BitmapImageCG.cpp Attachment 161498 [details] did not pass win-ews (win): Output: http://queues.webkit.org/results/13690775
mitz
Comment 4 2012-08-30 10:45:01 PDT
Created attachment 161515 [details] Split BitmapImage functions out into BitmapImageCG.cpp
WebKit Review Bot
Comment 5 2012-08-30 10:47:19 PDT
Attachment 161515 [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/platform/graphics/cg/BitmapImageCG.cpp:120: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Source/WebCore/platform/graphics/cg/BitmapImageCG.cpp:152: Use 0 instead of NULL. [readability/null] [5] Total errors found: 2 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
mitz
Comment 6 2012-08-30 10:48:13 PDT
Created attachment 161516 [details] Split BitmapImage functions out into BitmapImageCG.cpp
WebKit Review Bot
Comment 7 2012-08-30 10:51:00 PDT
Attachment 161516 [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/platform/graphics/cg/BitmapImageCG.cpp:120: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Source/WebCore/platform/graphics/cg/BitmapImageCG.cpp:152: Use 0 instead of NULL. [readability/null] [5] Total errors found: 2 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tim Horton
Comment 8 2012-08-30 11:58:07 PDT
Comment on attachment 161516 [details] Split BitmapImage functions out into BitmapImageCG.cpp View in context: https://bugs.webkit.org/attachment.cgi?id=161516&action=review > Source/WebCore/ChangeLog:144 > +>>>>>>> .r127158 Hmm.
mitz
Comment 9 2012-08-30 12:10:57 PDT
(In reply to comment #8) > (From update of attachment 161516 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=161516&action=review > > > Source/WebCore/ChangeLog:144 > > +>>>>>>> .r127158 > > Hmm. Noted.
mitz
Comment 10 2012-08-30 12:45:49 PDT
Daniel Bates
Comment 11 2012-08-30 12:52:53 PDT
Comment on attachment 161498 [details] Split BitmapImage functions out into BitmapImageCG.cpp View in context: https://bugs.webkit.org/attachment.cgi?id=161498&action=review I know that this patch was already reviewed and committed. I noticed some minor nits in the license block in the file WebCore/platform/graphics/cg/BitmapImageCG.cpp. > Source/WebCore/platform/graphics/cg/BitmapImageCG.cpp:2 > + * Copyright (C) 2004, 2005, 2006 Apple Inc. All rights reserved. Nit: Shouldn't we update the copyright line? > Source/WebCore/platform/graphics/cg/BitmapImageCG.cpp:13 > + * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY Nit: APPLE COMPUTER, INC => APPLE INC. > Source/WebCore/platform/graphics/cg/BitmapImageCG.cpp:16 > + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR Ditto.
mitz
Comment 12 2012-08-30 13:56:28 PDT
We could update the license blocks, though we normally do this when making changes to the code, not when just moving existing code around.
Note You need to log in before you can comment on or make changes to this bug.