WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
107492
[GTK][MAC] Use CoreFoundation
https://bugs.webkit.org/show_bug.cgi?id=107492
Summary
[GTK][MAC] Use CoreFoundation
Laszlo Gombos
Reported
2013-01-21 18:57:21 PST
OS() tests are preferred over a series of PLATFORM() tests for "for low-level services" - see also the discussion at
bug 107406
. JavaScriptCore for OS(DARWIN) is used by PLATFORM(MAC), PLATFORM(QT) and PLATFORM(WX), so "PLATFORM(MAC) || PLATFORM(IOS) || (PLATFORM(WX) && OS(DARWIN)) || (PLATFORM(QT) && OS(DARWIN))" can be replaced by OS(DARWIN) which makes the code more readable as well.
Attachments
proposed change
(2.15 KB, patch)
2013-01-21 19:00 PST
,
Laszlo Gombos
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Laszlo Gombos
Comment 1
2013-01-21 19:00:12 PST
Created
attachment 183868
[details]
proposed change
Alexey Proskuryakov
Comment 2
2013-01-21 19:23:00 PST
Comment on
attachment 183868
[details]
proposed change View in context:
https://bugs.webkit.org/attachment.cgi?id=183868&action=review
> Source/JavaScriptCore/ChangeLog:8 > + JavaScriptCore for OS(DARWIN) is used by PLATFORM(MAC), PLATFORM(QT) > + and PLATFORM(WX) so "PLATFORM(MAC)||PLATFORM(QT)||PLATFORM(WX)" is > + always true.
Can Gtk port be built on Mac?
Martin Robinson
Comment 3
2013-01-21 19:36:01 PST
(In reply to
comment #2
)
> > Source/JavaScriptCore/ChangeLog:8 > > + JavaScriptCore for OS(DARWIN) is used by PLATFORM(MAC), PLATFORM(QT) > > + and PLATFORM(WX) so "PLATFORM(MAC)||PLATFORM(QT)||PLATFORM(WX)" is > > + always true. > > Can Gtk port be built on Mac?
Yes.
Laszlo Gombos
Comment 4
2013-01-21 20:44:58 PST
(In reply to
comment #3
)
> (In reply to
comment #2
) > > > > Source/JavaScriptCore/ChangeLog:8 > > > + JavaScriptCore for OS(DARWIN) is used by PLATFORM(MAC), PLATFORM(QT) > > > + and PLATFORM(WX) so "PLATFORM(MAC)||PLATFORM(QT)||PLATFORM(WX)" is > > > + always true. > > > > Can Gtk port be built on Mac? > > Yes.
I did not know that it is supported. In that case this is probably a performance optimization for the GTK port on Mac. Would it be possible for someone to verify this change for the GTK port on Mac ?
Laszlo Gombos
Comment 5
2013-01-25 07:45:11 PST
Change the title to better reflect the functional change introduced by the patch. I cancel the review until we find someone who can help driving the GTK on MAC discussion. The larger issue here is the GTK's port policy on using CoreFoundation on OS(DARWIN). My sense is that reusing the CoreFoundation support from WebKit will make it easier to maintain the GTK MAC port, but I am not the right person to make this determination. Using CoreFoundation support from WebKit - USE(CF) - is the decision that the Qt and WX and CHROMIUM ports made on OS(DARWIN).
Martin Robinson
Comment 6
2013-01-25 08:04:25 PST
Okay. Assuming that this doesn't change functionality, it seems pretty harmless.
Laszlo Gombos
Comment 7
2013-01-26 18:36:37 PST
(In reply to
comment #6
)
> Okay. Assuming that this doesn't change functionality, it seems pretty harmless.
Likely there is a performance benefit for using CF directly.
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