RESOLVED FIXED 128513
Stop using PLATFORM(MAC) in WebKit2/platform except where it means “OS X but not iOS”
https://bugs.webkit.org/show_bug.cgi?id=128513
Summary Stop using PLATFORM(MAC) in WebKit2/platform except where it means “OS X but ...
mitz
Reported 2014-02-09 20:34:20 PST
So that we can make PLATFORM(MAC) false when building for iOS, we need to replace all uses of it that don’t take iOS into account. Most such uses are about building for Cocoa, using Core Foundation, or using Foundation.
Attachments
Change PLATFORM(MAC), do some moves and renames (24.23 KB, patch)
2014-02-09 20:41 PST, mitz
dino: review+
mitz
Comment 1 2014-02-09 20:41:35 PST
Created attachment 223670 [details] Change PLATFORM(MAC), do some moves and renames
Dean Jackson
Comment 2 2014-02-09 21:16:22 PST
Comment on attachment 223670 [details] Change PLATFORM(MAC), do some moves and renames View in context: https://bugs.webkit.org/attachment.cgi?id=223670&action=review > Source/WebKit2/ChangeLog:3 > + Stop using PLATFORM(MAC) in WebKit2/platform except where it means âOS X but not iOSâ I assume your smart quotes were just munged by the review tool. > Source/WebKit2/Platform/cf/ModuleCF.cpp:27 > +#import "config.h" > +#import "Module.h" Did you mean #include? > Source/WebKit2/Platform/cf/ModuleCF.cpp:27 > -#import "config.h" > -#import "Module.h" > +#include "config.h" > +#include "Module.h" I'm confused by this patch. It seems ModuleCF.cpp has two separate patch entries!
mitz
Comment 3 2014-02-09 21:21:02 PST
(In reply to comment #2) > (From update of attachment 223670 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=223670&action=review > > > Source/WebKit2/ChangeLog:3 > > + Stop using PLATFORM(MAC) in WebKit2/platform except where it means âOS X but not iOSâ > > I assume your smart quotes were just munged by the review tool. See bug 75394. > > > Source/WebKit2/Platform/cf/ModuleCF.cpp:27 > > +#import "config.h" > > +#import "Module.h" > > Did you mean #include? > > > Source/WebKit2/Platform/cf/ModuleCF.cpp:27 > > -#import "config.h" > > -#import "Module.h" > > +#include "config.h" > > +#include "Module.h" > > I'm confused by this patch. It seems ModuleCF.cpp has two separate patch entries! This is how svn-create-patch represents a rename and an edit in the renamed file.
Anders Carlsson
Comment 4 2014-02-10 13:20:00 PST
Comment on attachment 223670 [details] Change PLATFORM(MAC), do some moves and renames View in context: https://bugs.webkit.org/attachment.cgi?id=223670&action=review > Source/WebKit2/Platform/Logging.cpp:70 > -#if !PLATFORM(MAC) && !PLATFORM(GTK) && !PLATFORM(EFL) > +#if !USE(FOUNDATION) && !PLATFORM(GTK) && !PLATFORM(EFL) > String logLevelString() How about we just get rid of this logLevelString() since nobody includes it anyway.
mitz
Comment 5 2014-02-10 22:16:55 PST
Note You need to log in before you can comment on or make changes to this bug.