Changeset 95467 in webkit


Ignore:
Timestamp:
Sep 19, 2011 1:39:15 PM (13 years ago)
Author:
andersca@apple.com
Message:

Remove -[WebView _selectionChanged] and -[WebView _setTooltip:]
https://bugs.webkit.org/show_bug.cgi?id=68385

Reviewed by Adam Roben.

Move these functions back into the respective clients and remove usesDocumentViews checks.

  • WebCoreSupport/WebChromeClient.mm:

(WebChromeClient::setToolTip):

  • WebCoreSupport/WebEditorClient.mm:

(WebEditorClient::respondToChangedSelection):

  • WebView/WebView.mm:
  • WebView/WebViewEventHandling.mm:
  • WebView/WebViewInternal.h:
Location:
trunk/Source/WebKit/mac
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/mac/ChangeLog

    r95465 r95467  
     12011-09-19  Anders Carlsson  <andersca@apple.com>
     2
     3        Remove -[WebView _selectionChanged] and -[WebView _setTooltip:]
     4        https://bugs.webkit.org/show_bug.cgi?id=68385
     5
     6        Reviewed by Adam Roben.
     7
     8        Move these functions back into the respective clients and remove usesDocumentViews checks.
     9
     10        * WebCoreSupport/WebChromeClient.mm:
     11        (WebChromeClient::setToolTip):
     12        * WebCoreSupport/WebEditorClient.mm:
     13        (WebEditorClient::respondToChangedSelection):
     14        * WebView/WebView.mm:
     15        * WebView/WebViewEventHandling.mm:
     16        * WebView/WebViewInternal.h:
     17
    1182011-09-19  Anders Carlsson  <andersca@apple.com>
    219
  • trunk/Source/WebKit/mac/WebCoreSupport/WebChromeClient.mm

    r95458 r95467  
    623623void WebChromeClient::setToolTip(const String& toolTip, TextDirection)
    624624{
    625     [m_webView _setToolTip:toolTip];
     625    NSView<WebDocumentView> *documentView = [[[m_webView _selectedOrMainFrame] frameView] documentView];
     626    if ([documentView isKindOfClass:[WebHTMLView class]])
     627        [(WebHTMLView *)documentView _setToolTip:toolTip];
    626628}
    627629
  • trunk/Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm

    r92068 r95467  
    293293void WebEditorClient::respondToChangedSelection()
    294294{
    295     [m_webView _selectionChanged];
     295    NSView<WebDocumentView> *documentView = [[[m_webView _selectedOrMainFrame] frameView] documentView];
     296    if ([documentView isKindOfClass:[WebHTMLView class]])
     297        [(WebHTMLView *)documentView _selectionChanged];
    296298
    297299    // FIXME: This quirk is needed due to <rdar://problem/5009625> - We can phase it out once Aperture can adopt the new behavior on their end
  • trunk/Source/WebKit/mac/WebView/WebView.mm

    r95465 r95467  
    60296029}
    60306030
    6031 - (void)_selectionChanged
    6032 {
    6033     if (_private->usesDocumentViews) {
    6034         id documentView = [[[self _selectedOrMainFrame] frameView] documentView];
    6035         if ([documentView isKindOfClass:[WebHTMLView class]])
    6036             [documentView _selectionChanged];
    6037         return;
    6038     }
    6039 
    6040     // FIXME (Viewless): We'll need code here.
    6041 }
    6042 
    60436031- (Frame*)_mainCoreFrame
    60446032{
  • trunk/Source/WebKit/mac/WebView/WebViewEventHandling.mm

    r85036 r95467  
    226226}
    227227
    228 - (void)_setToolTip:(NSString *)toolTip
    229 {
    230     if (_private->usesDocumentViews) {
    231         id documentView = [[[self _selectedOrMainFrame] frameView] documentView];
    232         if ([documentView isKindOfClass:[WebHTMLView class]])
    233             [documentView _setToolTip:toolTip];
    234         return;
    235     }
    236 
    237     // FIXME (Viewless): Code to handle tooltips needs to move into WebView.
    238 }
    239 
    240228@end
  • trunk/Source/WebKit/mac/WebView/WebViewInternal.h

    r94908 r95467  
    8686#endif
    8787
    88 - (void)_selectionChanged;
    89 
    9088#if USE(ACCELERATED_COMPOSITING)
    9189- (BOOL)_needsOneShotDrawingSynchronization;
     
    107105- (void)_cancelUpdateMouseoverTimer;
    108106- (void)_stopAutoscrollTimer;
    109 - (void)_setToolTip:(NSString *)toolTip;
    110107@end
    111108
Note: See TracChangeset for help on using the changeset viewer.