https://bugs.webkit.org/show_bug.cgi?id=75406
Reviewed by Tim Hatcher.
* WebView/WebHTMLView.mm:
(-[WebHTMLView _updateMouseoverWithEvent:]): Removed check for suspended hover updates.
* WebView/WebHTMLViewInternal.h: Removed -_hoverFeedbackSuspendedChanged.
* WebView/WebView.mm:
(-[WebView setHoverFeedbackSuspended:]): Left empty implementation to support versions of
Safari that call this.
(-[WebView isHoverFeedbackSuspended]): Left implementation that always returns NO to support
versions of Safari that call this.
* WebView/WebViewData.h: Removed hoverFeedbackSuspended ivar.
* WebView/WebViewPrivate.h: Removed method definitions.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@103910
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-01-02 Dan Bernstein <mitz@apple.com>
+
+ [mac] Remove -[WebView setHoverFeedbackSuspended:]
+ https://bugs.webkit.org/show_bug.cgi?id=75406
+
+ Reviewed by Tim Hatcher.
+
+ * WebView/WebHTMLView.mm:
+ (-[WebHTMLView _updateMouseoverWithEvent:]): Removed check for suspended hover updates.
+ * WebView/WebHTMLViewInternal.h: Removed -_hoverFeedbackSuspendedChanged.
+ * WebView/WebView.mm:
+ (-[WebView setHoverFeedbackSuspended:]): Left empty implementation to support versions of
+ Safari that call this.
+ (-[WebView isHoverFeedbackSuspended]): Left implementation that always returns NO to support
+ versions of Safari that call this.
+ * WebView/WebViewData.h: Removed hoverFeedbackSuspended ivar.
+ * WebView/WebViewPrivate.h: Removed method definitions.
+
2011-12-31 Dan Bernstein <mitz@apple.com>
WebKit/mac changes for: REGRESSION (WebKit2): Cursor, hover states not updated when page scrolls under stationary mouse pointer
forceWebHTMLViewHitTest = NO;
WebHTMLView *view = nil;
- if ([hitView isKindOfClass:[WebHTMLView class]] && ![[(WebHTMLView *)hitView _webView] isHoverFeedbackSuspended])
+ if ([hitView isKindOfClass:[WebHTMLView class]])
view = (WebHTMLView *)hitView;
if (view)
coreGraphicsScreenPointForAppKitScreenPoint(screenPoint), false, nil);
}
-- (void)_hoverFeedbackSuspendedChanged
-{
- [self _updateMouseoverWithFakeEvent];
-}
-
- (void)_executeSavedKeypressCommands
{
WebHTMLViewInterpretKeyEventsParameters* parameters = _private->interpretKeyEventsParameters;
- (id <WebHTMLHighlighter>)_highlighterForType:(NSString*)type;
- (WebFrame *)_frame;
- (void)_lookUpInDictionaryFromMenu:(id)sender;
-- (void)_hoverFeedbackSuspendedChanged;
- (BOOL)_interpretKeyEvent:(WebCore::KeyboardEvent *)event savingCommands:(BOOL)savingCommands;
- (DOMDocumentFragment *)_documentFragmentFromPasteboard:(NSPasteboard *)pasteboard;
- (NSEvent *)_mouseDownEvent;
return kit(_private->page->rangeOfString(string, core(previousRange), coreOptions(options)).get());
}
+#if defined(BUILDING_ON_SNOW_LEOPARD) || defined(BUILDING_ON_LION)
+// FIXME: Remove once WebKit no longer needs to support versions of Safari that call this.
- (void)setHoverFeedbackSuspended:(BOOL)newValue
{
- if (_private->hoverFeedbackSuspended == newValue)
- return;
-
- _private->hoverFeedbackSuspended = newValue;
-
- id <WebDocumentView> documentView = [[[self mainFrame] frameView] documentView];
- // FIXME: in a perfect world we'd do this in a general way that worked with any document view,
- // such as by calling a protocol method or using respondsToSelector or sending a notification.
- // But until there is any need for these more general solutions, we'll just hardwire it to work
- // with WebHTMLView.
- // Note that _hoverFeedbackSuspendedChanged needs to be called only on the main WebHTMLView, not
- // on each subframe separately.
- if ([documentView isKindOfClass:[WebHTMLView class]])
- [(WebHTMLView *)documentView _hoverFeedbackSuspendedChanged];
}
+// FIXME: Remove once WebKit no longer needs to support versions of Safari that call this.
- (BOOL)isHoverFeedbackSuspended
{
- return _private->hoverFeedbackSuspended;
+ return NO;
}
+#endif
- (void)setMainFrameDocumentReady:(BOOL)mainFrameDocumentReady
{
BOOL tabKeyCyclesThroughElementsChanged;
BOOL becomingFirstResponder;
BOOL becomingFirstResponderFromOutside;
- BOOL hoverFeedbackSuspended;
BOOL usesPageCache;
BOOL catchesDelegateExceptions;
BOOL cssAnimationsSuspended;
- (void)scrollDOMRangeToVisible:(DOMRange *)range;
-// setHoverFeedbackSuspended: can be called by clients that want to temporarily prevent the webView
-// from displaying feedback about mouse position. Each WebDocumentView class that displays feedback
-// about mouse position should honor this setting.
-- (void)setHoverFeedbackSuspended:(BOOL)newValue;
-- (BOOL)isHoverFeedbackSuspended;
-
/*!
@method setScriptDebugDelegate:
@abstract Set the WebView's WebScriptDebugDelegate delegate.