Changeset 95467 in webkit
- Timestamp:
- Sep 19, 2011 1:39:15 PM (13 years ago)
- Location:
- trunk/Source/WebKit/mac
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/mac/ChangeLog
r95465 r95467 1 2011-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 1 18 2011-09-19 Anders Carlsson <andersca@apple.com> 2 19 -
trunk/Source/WebKit/mac/WebCoreSupport/WebChromeClient.mm
r95458 r95467 623 623 void WebChromeClient::setToolTip(const String& toolTip, TextDirection) 624 624 { 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]; 626 628 } 627 629 -
trunk/Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm
r92068 r95467 293 293 void WebEditorClient::respondToChangedSelection() 294 294 { 295 [m_webView _selectionChanged]; 295 NSView<WebDocumentView> *documentView = [[[m_webView _selectedOrMainFrame] frameView] documentView]; 296 if ([documentView isKindOfClass:[WebHTMLView class]]) 297 [(WebHTMLView *)documentView _selectionChanged]; 296 298 297 299 // 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 6029 6029 } 6030 6030 6031 - (void)_selectionChanged6032 {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 6043 6031 - (Frame*)_mainCoreFrame 6044 6032 { -
trunk/Source/WebKit/mac/WebView/WebViewEventHandling.mm
r85036 r95467 226 226 } 227 227 228 - (void)_setToolTip:(NSString *)toolTip229 {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 240 228 @end -
trunk/Source/WebKit/mac/WebView/WebViewInternal.h
r94908 r95467 86 86 #endif 87 87 88 - (void)_selectionChanged;89 90 88 #if USE(ACCELERATED_COMPOSITING) 91 89 - (BOOL)_needsOneShotDrawingSynchronization; … … 107 105 - (void)_cancelUpdateMouseoverTimer; 108 106 - (void)_stopAutoscrollTimer; 109 - (void)_setToolTip:(NSString *)toolTip;110 107 @end 111 108
Note: See TracChangeset
for help on using the changeset viewer.