WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
53540
Rename PLATFORM(CF) to USE(CF)
https://bugs.webkit.org/show_bug.cgi?id=53540
Summary
Rename PLATFORM(CF) to USE(CF)
Patrick R. Gansterer
Reported
2011-02-01 15:41:26 PST
Rename PLATFORM(CF) to USE(COREFOUNDATION)
Attachments
Patch
(39.72 KB, patch)
2011-02-01 15:43 PST
,
Patrick R. Gansterer
no flags
Details
Formatted Diff
Diff
Patch
(37.60 KB, patch)
2011-02-01 23:26 PST
,
Patrick R. Gansterer
no flags
Details
Formatted Diff
Diff
Patch
(37.46 KB, patch)
2011-02-01 23:28 PST
,
Patrick R. Gansterer
no flags
Details
Formatted Diff
Diff
Patch
(37.44 KB, patch)
2011-02-01 23:32 PST
,
Patrick R. Gansterer
no flags
Details
Formatted Diff
Diff
Patch for landing
(39.14 KB, patch)
2011-02-22 22:44 PST
,
Patrick R. Gansterer
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Patrick R. Gansterer
Comment 1
2011-02-01 15:43:19 PST
Created
attachment 80842
[details]
Patch
WebKit Review Bot
Comment 2
2011-02-01 15:59:02 PST
Attachment 80842
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/7684754
Darin Adler
Comment 3
2011-02-01 17:20:01 PST
Comment on
attachment 80842
[details]
Patch Changing from PLATFORM to USE might be OK. But changing from CF to COREFOUNDATION is bad since we also use CF as suffixes on file names. This generally will make the source tree harder to read. If those file names did not exist, then I could see the argument since CF is quite a short acronym and many might not be aware of its meaning.
Darin Adler
Comment 4
2011-02-01 17:20:26 PST
Maciej, do you have an opinion on this?
Build Bot
Comment 5
2011-02-01 17:39:49 PST
Attachment 80842
[details]
did not build on win: Build output:
http://queues.webkit.org/results/7687360
Gustavo Noronha (kov)
Comment 6
2011-02-01 18:03:41 PST
Attachment 80842
[details]
did not build on gtk: Build output:
http://queues.webkit.org/results/7681924
WebKit Review Bot
Comment 7
2011-02-01 21:58:46 PST
Attachment 80842
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/7682899
WebKit Review Bot
Comment 8
2011-02-01 23:21:24 PST
Attachment 80842
[details]
did not build on mac: Build output:
http://queues.webkit.org/results/7686729
Patrick R. Gansterer
Comment 9
2011-02-01 23:26:52 PST
Created
attachment 80895
[details]
Patch (In reply to
comment #3
)
> Changing from PLATFORM to USE might be OK. But changing from CF to COREFOUNDATION is bad since we also use CF as suffixes on file names. This generally will make the source tree harder to read. If those file names did not exist, then I could see the argument since CF is quite a short acronym and many might not be aware of its meaning.
I agree, the filename suffix is a good argument against renaming to COREFOUNDATION (at least in this patch)
Patrick R. Gansterer
Comment 10
2011-02-01 23:28:25 PST
Created
attachment 80896
[details]
Patch
Patrick R. Gansterer
Comment 11
2011-02-01 23:32:07 PST
Created
attachment 80897
[details]
Patch
Patrick R. Gansterer
Comment 12
2011-02-08 10:37:43 PST
@darin: ping
Patrick R. Gansterer
Comment 13
2011-02-22 12:58:35 PST
ping?
WebKit Commit Bot
Comment 14
2011-02-22 13:44:59 PST
Comment on
attachment 80897
[details]
Patch Rejecting
attachment 80897
[details]
from commit-queue. Failed to run "['./Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=cr-jail-7', 'apply-..." exit_code: 2 Last 500 characters of output: t 1 with fuzz 3. patching file Source/WebKit2/UIProcess/WebBackForwardList.h patching file Source/WebKit2/UIProcess/WebPageProxy.cpp Hunk #1 succeeded at 961 (offset 115 lines). patching file Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp patching file Tools/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file Tools/DumpRenderTree/config.h Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--reviewer', u'Darin Adler', u'--force']" exit_code: 1 Full output:
http://queues.webkit.org/results/7948289
Alexey Proskuryakov
Comment 15
2011-02-22 13:52:12 PST
Could someone please explain why USE(CF) is more appropriate than PLATFORM(CF)? I'm not saying that this change is wrong, but how can it be landed without any explanation?
Patrick R. Gansterer
Comment 16
2011-02-22 14:00:46 PST
(In reply to
comment #15
)
> Could someone please explain why USE(CF) is more appropriate than PLATFORM(CF)? I'm not saying that this change is wrong, but how can it be landed without any explanation?
CF is not a platform. CF is a library we can use. There are some old webkit-dev mails about "better names":
http://thread.gmane.org/gmane.os.opendarwin.webkit.devel/4998/focus=5002
. IMHO the title of the bug is self explaining and I don't se much value in additional info in the ChangeLog. If you a good content for it I'll add it. ;-)
Alexey Proskuryakov
Comment 17
2011-02-22 14:54:49 PST
This doesn't have to be in ChangeLog. What makes library a platform? WX and Qt are also technically libraries, so should we rename PLATFORM(QT) to USE(QT)? I honestly don't understand how the decision was made.
Patrick R. Gansterer
Comment 18
2011-02-22 22:16:23 PST
(In reply to
comment #17
)
> This doesn't have to be in ChangeLog. > > What makes library a platform? WX and Qt are also technically libraries, so should we rename PLATFORM(QT) to USE(QT)? I honestly don't understand how the decision was made.
PLATFORM should be something be something representing a set of used libraries. E.g. Qt uses always Qt unicode, Qt graphichs, Qt network and so on. The CF stuff is used by Apples Mac and Windows port and some parts are used by WinCairo too. My vision is to remove all PLATFORM macros and replace them with USE macros: PLATFORM(QT) will then renamed to USE(QT_UNICODE), USE(QT_GRAPHICS), USE(QT_NETWORK), USE(QT_XML) and so on. This will enable us to use Qt rendering with curl network backend and ICU unicode. This maybe doesn't make much sense, but on OS(WINDOWS) you can then choose between CG, Cairo and GDI for graphics rendering and CF, CUrl, Soup and WinInet for networking.
Patrick R. Gansterer
Comment 19
2011-02-22 22:44:31 PST
Created
attachment 83448
[details]
Patch for landing
WebKit Commit Bot
Comment 20
2011-02-23 03:31:34 PST
Comment on
attachment 83448
[details]
Patch for landing Clearing flags on attachment: 83448 Committed
r79434
: <
http://trac.webkit.org/changeset/79434
>
WebKit Commit Bot
Comment 21
2011-02-23 03:31:42 PST
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.
Top of Page
Format For Printing
XML
Clone This Bug