Changeset 103910 in webkit


Ignore:
Timestamp:
Jan 2, 2012, 11:18:01 AM (13 years ago)
Author:
mitz@apple.com
Message:

[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.
Location:
trunk/Source/WebKit/mac
Files:
6 edited

Legend:

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

    r103867 r103910  
     12012-01-02  Dan Bernstein  <mitz@apple.com>
     2
     3        [mac] Remove -[WebView setHoverFeedbackSuspended:]
     4        https://bugs.webkit.org/show_bug.cgi?id=75406
     5
     6        Reviewed by Tim Hatcher.
     7
     8        * WebView/WebHTMLView.mm:
     9        (-[WebHTMLView _updateMouseoverWithEvent:]): Removed check for suspended hover updates.
     10        * WebView/WebHTMLViewInternal.h: Removed -_hoverFeedbackSuspendedChanged.
     11        * WebView/WebView.mm:
     12        (-[WebView setHoverFeedbackSuspended:]): Left empty implementation to support versions of
     13        Safari that call this.
     14        (-[WebView isHoverFeedbackSuspended]): Left implementation that always returns NO to support
     15        versions of Safari that call this.
     16        * WebView/WebViewData.h: Removed hoverFeedbackSuspended ivar.
     17        * WebView/WebViewPrivate.h: Removed method definitions.
     18
    1192011-12-31  Dan Bernstein  <mitz@apple.com>
    220
  • trunk/Source/WebKit/mac/WebView/WebHTMLView.mm

    r103867 r103910  
    15591559   
    15601560    WebHTMLView *view = nil;
    1561     if ([hitView isKindOfClass:[WebHTMLView class]] && ![[(WebHTMLView *)hitView _webView] isHoverFeedbackSuspended])
     1561    if ([hitView isKindOfClass:[WebHTMLView class]])
    15621562        view = (WebHTMLView *)hitView;   
    15631563
     
    52595259}
    52605260
    5261 - (void)_hoverFeedbackSuspendedChanged
    5262 {
    5263     [self _updateMouseoverWithFakeEvent];
    5264 }
    5265 
    52665261- (void)_executeSavedKeypressCommands
    52675262{
  • trunk/Source/WebKit/mac/WebView/WebHTMLViewInternal.h

    r85036 r103910  
    4949- (WebFrame *)_frame;
    5050- (void)_lookUpInDictionaryFromMenu:(id)sender;
    51 - (void)_hoverFeedbackSuspendedChanged;
    5251- (BOOL)_interpretKeyEvent:(WebCore::KeyboardEvent *)event savingCommands:(BOOL)savingCommands;
    5352- (DOMDocumentFragment *)_documentFragmentFromPasteboard:(NSPasteboard *)pasteboard;
  • trunk/Source/WebKit/mac/WebView/WebView.mm

    r103643 r103910  
    46064606}
    46074607
     4608#if defined(BUILDING_ON_SNOW_LEOPARD) || defined(BUILDING_ON_LION)
     4609// FIXME: Remove once WebKit no longer needs to support versions of Safari that call this.
    46084610- (void)setHoverFeedbackSuspended:(BOOL)newValue
    46094611{
    4610     if (_private->hoverFeedbackSuspended == newValue)
    4611         return;
    4612    
    4613     _private->hoverFeedbackSuspended = newValue;
    4614 
    4615     id <WebDocumentView> documentView = [[[self mainFrame] frameView] documentView];
    4616     // FIXME: in a perfect world we'd do this in a general way that worked with any document view,
    4617     // such as by calling a protocol method or using respondsToSelector or sending a notification.
    4618     // But until there is any need for these more general solutions, we'll just hardwire it to work
    4619     // with WebHTMLView.
    4620     // Note that _hoverFeedbackSuspendedChanged needs to be called only on the main WebHTMLView, not
    4621     // on each subframe separately.
    4622     if ([documentView isKindOfClass:[WebHTMLView class]])
    4623         [(WebHTMLView *)documentView _hoverFeedbackSuspendedChanged];
    4624 }
    4625 
     4612}
     4613
     4614// FIXME: Remove once WebKit no longer needs to support versions of Safari that call this.
    46264615- (BOOL)isHoverFeedbackSuspended
    46274616{
    4628     return _private->hoverFeedbackSuspended;
    4629 }
     4617    return NO;
     4618}
     4619#endif
    46304620
    46314621- (void)setMainFrameDocumentReady:(BOOL)mainFrameDocumentReady
  • trunk/Source/WebKit/mac/WebView/WebViewData.h

    r102045 r103910  
    134134    BOOL becomingFirstResponder;
    135135    BOOL becomingFirstResponderFromOutside;
    136     BOOL hoverFeedbackSuspended;
    137136    BOOL usesPageCache;
    138137    BOOL catchesDelegateExceptions;
  • trunk/Source/WebKit/mac/WebView/WebViewPrivate.h

    r101574 r103910  
    133133- (void)scrollDOMRangeToVisible:(DOMRange *)range;
    134134
    135 // setHoverFeedbackSuspended: can be called by clients that want to temporarily prevent the webView
    136 // from displaying feedback about mouse position. Each WebDocumentView class that displays feedback
    137 // about mouse position should honor this setting.
    138 - (void)setHoverFeedbackSuspended:(BOOL)newValue;
    139 - (BOOL)isHoverFeedbackSuspended;
    140 
    141135/*!
    142136@method setScriptDebugDelegate:
Note: See TracChangeset for help on using the changeset viewer.