RetainPtr is not necessary when ARC is available, but it'll be easier to transition existing code to ARC if RetainPtr is compatible with it.
Created attachment 207560 [details] Patch v1
Attachment 207560 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/RetainPtr.h']" exit_code: 1 Source/WTF/wtf/RetainPtr.h:55: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WTF/wtf/RetainPtr.h:95: More than one command on the same line in if [whitespace/parens] [4] Source/WTF/wtf/RetainPtr.h:111: More than one command on the same line in if [whitespace/parens] [4] Source/WTF/wtf/RetainPtr.h:121: More than one command on the same line in if [whitespace/parens] [4] Total errors found: 4 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 207560 [details] Patch v1 Attachment 207560 [details] did not pass efl-ews (efl): Output: http://webkit-queues.appspot.com/results/1247335
Comment on attachment 207560 [details] Patch v1 Attachment 207560 [details] did not pass qt-wk2-ews (qt-wk2): Output: http://webkit-queues.appspot.com/results/1250345
Comment on attachment 207560 [details] Patch v1 Attachment 207560 [details] did not pass qt-ews (qt): Output: http://webkit-queues.appspot.com/results/1247336
Comment on attachment 207560 [details] Patch v1 Attachment 207560 [details] did not pass gtk-ews (gtk): Output: http://webkit-queues.appspot.com/results/1254347
Comment on attachment 207560 [details] Patch v1 Attachment 207560 [details] did not pass efl-wk2-ews (efl-wk2): Output: http://webkit-queues.appspot.com/results/1252324
Created attachment 207562 [details] Patch v2 Updated to wrap the body of RetainPtr.h in an #if since it is only relevant for platforms that have CoreFoundation and/or Objective-C.
Attachment 207562 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/RetainPtr.h']" exit_code: 1 Source/WTF/wtf/RetainPtr.h:99: More than one command on the same line in if [whitespace/parens] [4] Source/WTF/wtf/RetainPtr.h:115: More than one command on the same line in if [whitespace/parens] [4] Source/WTF/wtf/RetainPtr.h:125: More than one command on the same line in if [whitespace/parens] [4] Total errors found: 3 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Landed in r153637.