Bug 160846 - [Cocoa] Remove deprecated _WKVisitedLinkProvider declarations that aren’t needed
Summary: [Cocoa] Remove deprecated _WKVisitedLinkProvider declarations that aren’t needed
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: mitz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-14 14:02 PDT by mitz
Modified: 2016-08-14 14:47 PDT (History)
4 users (show)

See Also:


Attachments
Remove declarations (10.39 KB, patch)
2016-08-14 14:05 PDT, mitz
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2016-08-14 14:02:19 PDT
Patch forthcoming.
Comment 1 mitz 2016-08-14 14:05:03 PDT
Created attachment 286031 [details]
Remove declarations
Comment 2 WebKit Commit Bot 2016-08-14 14:07:15 PDT
Attachment 286031 [details] did not pass style-queue:


ERROR: Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfiguration.mm:759:  This { should be at the end of the previous line  [whitespace/braces] [4]
Total errors found: 1 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Darin Adler 2016-08-14 14:39:16 PDT
Comment on attachment 286031 [details]
Remove declarations

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

> Source/WebKit2/ChangeLog:10
> +          cateogry implementation, changed type to _WKVisitedLinkStore.

Typo here in the word category.

> Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfiguration.mm:38
> +#import "_WKVisitedLinkStore.h"

Do we need to include this header to compile the code below? I am surprised if we do, but maybe I am missing something.

> Source/WebKit2/UIProcess/API/Cocoa/_WKVisitedLinkProvider.mm:34
> +// Defined for binary compatibility with Safari in iOS 10.

Seems like this comment should go before even the @interface.
Comment 4 mitz 2016-08-14 14:41:52 PDT
Comment on attachment 286031 [details]
Remove declarations

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

>> Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfiguration.mm:38
>> +#import "_WKVisitedLinkStore.h"
> 
> Do we need to include this header to compile the code below? I am surprised if we do, but maybe I am missing something.

We need the declaration of _WKVisitedLinkStore to compile some of the code in this file which allocates an instance of that class.
Comment 5 mitz 2016-08-14 14:47:30 PDT
Committed <https://trac.webkit.org/r204454>.