Changeset 167572 in webkit


Ignore:
Timestamp:
Apr 20, 2014 1:53:39 PM (10 years ago)
Author:
mitz@apple.com
Message:

[Cocoa] Remove unused -webView:didFinishLoadingNavigation: delegate method
https://bugs.webkit.org/show_bug.cgi?id=131914

Reviewed by Sam Weinig.

  • UIProcess/Cocoa/NavigationState.h: Removed flag from m_navigationDelegateMethods struct.
  • UIProcess/Cocoa/NavigationState.mm:

(WebKit::NavigationState::setNavigationDelegate): Removed check for whether the method is
implemented.
(WebKit::NavigationState::LoaderClient::didFinishLoadForFrame): Stopped calling the method
if implemented.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r167556 r167572  
     12014-04-20  Dan Bernstein  <mitz@apple.com>
     2
     3        [Cocoa] Remove unused -webView:didFinishLoadingNavigation: delegate method
     4        https://bugs.webkit.org/show_bug.cgi?id=131914
     5
     6        Reviewed by Sam Weinig.
     7
     8        * UIProcess/Cocoa/NavigationState.h: Removed flag from m_navigationDelegateMethods struct.
     9        * UIProcess/Cocoa/NavigationState.mm:
     10        (WebKit::NavigationState::setNavigationDelegate): Removed check for whether the method is
     11        implemented.
     12        (WebKit::NavigationState::LoaderClient::didFinishLoadForFrame): Stopped calling the method
     13        if implemented.
     14
    1152014-04-19  Anders Carlsson  <andersca@apple.com>
    216
  • trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.h

    r167496 r167572  
    4242@protocol WKHistoryDelegatePrivate;
    4343@protocol WKNavigationDelegate;
    44 
    45 @interface NSObject (WKNavigationDelegateToBeRemoved)
    46 - (void)webView:(WKWebView *)webView didFinishLoadingNavigation:(WKNavigation *)navigation;
    47 @end
    4844
    4945namespace WebKit {
     
    143139        bool webViewDidReceiveAuthenticationChallenge : 1;
    144140        bool webViewWebProcessDidCrash : 1;
    145 
    146         // FIXME: Remove this once no clients depend on it being called.
    147         bool webViewDidFinishLoadingNavigation : 1;
    148141    } m_navigationDelegateMethods;
    149142
  • trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.mm

    r167496 r167572  
    121121    m_navigationDelegateMethods.webViewDidReceiveAuthenticationChallenge = [delegate respondsToSelector:@selector(_webView:didReceiveAuthenticationChallenge:)];
    122122    m_navigationDelegateMethods.webViewWebProcessDidCrash = [delegate respondsToSelector:@selector(_webViewWebProcessDidCrash:)];
    123 
    124     // FIXME: Remove this once no clients depend on it being called.
    125     m_navigationDelegateMethods.webViewDidFinishLoadingNavigation = [delegate respondsToSelector:@selector(webView:didFinishLoadingNavigation:)];
    126123}
    127124
     
    422419        return;
    423420
    424     if (!m_navigationState.m_navigationDelegateMethods.webViewDidFinishNavigation && !m_navigationState.m_navigationDelegateMethods.webViewDidFinishLoadingNavigation)
     421    if (!m_navigationState.m_navigationDelegateMethods.webViewDidFinishNavigation)
    425422        return;
    426423
     
    434431        navigation = m_navigationState.m_navigations.get(navigationID).get();
    435432
    436     // FIXME: Remove this once no clients depend on it being called.
    437     if (m_navigationState.m_navigationDelegateMethods.webViewDidFinishLoadingNavigation) {
    438         [static_cast<id>(navigationDelegate) webView:m_navigationState.m_webView didFinishLoadingNavigation:navigation];
    439         return;
    440     }
    441 
    442433    [navigationDelegate webView:m_navigationState.m_webView didFinishNavigation:navigation];
    443434}
Note: See TracChangeset for help on using the changeset viewer.