Bug 144400

Summary: [WTF] Remove Functional.h inclusions
Product: WebKit Reporter: Zan Dobersek <zan>
Component: New BugsAssignee: Zan Dobersek <zan>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch for landing none

Description Zan Dobersek 2015-04-29 11:17:31 PDT
Remove Functional.h
Comment 1 Zan Dobersek 2015-04-29 12:02:19 PDT
Created attachment 251973 [details]
Patch
Comment 2 Zan Dobersek 2015-04-29 12:06:20 PDT
Comment on attachment 251973 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=251973&action=review

> Source/WTF/wtf/mac/DeprecatedSymbolsUsedBySafari.mm:-46
> -void callOnMainThread(const Function<void ()>& function)
> -{
> -    callOnMainThread(std::function<void ()>(function));
> -}

This might be the main blocker -- is Safari still invoking this function?
Comment 3 Darin Adler 2015-04-29 19:18:14 PDT
Comment on attachment 251973 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=251973&action=review

Could you post a version of this patch that moves some of the contents of Functional.h into DeprecatedSymbolsUsedBySafari.mm? Then we can remove the DeprecatedSymbolsUsedBySafari.mm stuff when we verify it’s not needed for nightly builds.

Source/WTF/wtf/efl/DispatchQueueEfl.h:36:50: error: expected template-name before '<' token
 class DispatchQueue : public ThreadSafeRefCounted<DispatchQueue> {

Looks like we need to include ThreadSafeRefCounted.h in DispatchQueueEfl.h too.

>> Source/WTF/wtf/mac/DeprecatedSymbolsUsedBySafari.mm:-46
>> -}
> 
> This might be the main blocker -- is Safari still invoking this function?

Exactly right; I had a patch to remove Functional.h and I found this was the sticking point. We have to find out whether anyone is depending on using WebKit builds with older Safari. Apple engineering doesn’t depend on it, but some people outside Apple might be using the newer WebKit with the older Safari as part of nightly builds.
Comment 4 Zan Dobersek 2015-05-02 09:59:27 PDT
Created attachment 252234 [details]
Patch
Comment 5 Darin Adler 2015-05-02 11:48:26 PDT
Comment on attachment 252234 [details]
Patch

../../Source/WTF/wtf/efl/DispatchQueueEfl.h:64:5: error: 'Mutex' does not name a type

Looks like we need to add an include to DispatchQueueEfl.h -- please fix that before landing
Comment 6 Zan Dobersek 2015-05-04 00:23:22 PDT
Created attachment 252299 [details]
Patch for landing
Comment 7 Zan Dobersek 2015-05-04 08:36:49 PDT
Committed r183746: <http://trac.webkit.org/changeset/183746>