Changeset 211243 in webkit


Ignore:
Timestamp:
Jan 26, 2017 5:01:30 PM (7 years ago)
Author:
Wenson Hsieh
Message:

REGRESSION (r207483): Touch Bar: Lists and BIU Buttons Missing from Touch Bar in HTML Notes
https://bugs.webkit.org/show_bug.cgi?id=167472
<rdar://problem/30149809>

Reviewed by Beth Dakin.

Revision 207483 caused the touch bar to stop showing up in HTML Notes due to -updateTextTouchBar not
initializing the text touch bar and causing -makeTouchBar to return nil while processing a mouse click. The
purpose of bailing out of the update was to prevent the text touch bar from thrashing during a selection drag.
If the text touch bar doesn't exist yet, we don't have to worry about its appearance flickering from a different
previous state, so we should just allow the touch bar to update instead.

  • WebView/WebView.mm:

(-[WebView updateTextTouchBar]):

Location:
trunk/Source/WebKit/mac
Files:
2 edited

Legend:

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

    r211207 r211243  
     12017-01-26  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        REGRESSION (r207483): Touch Bar: Lists and BIU Buttons Missing from Touch Bar in HTML Notes
     4        https://bugs.webkit.org/show_bug.cgi?id=167472
     5        <rdar://problem/30149809>
     6
     7        Reviewed by Beth Dakin.
     8
     9        Revision 207483 caused the touch bar to stop showing up in HTML Notes due to -updateTextTouchBar not
     10        initializing the text touch bar and causing -makeTouchBar to return nil while processing a mouse click. The
     11        purpose of bailing out of the update was to prevent the text touch bar from thrashing during a selection drag.
     12        If the text touch bar doesn't exist yet, we don't have to worry about its appearance flickering from a different
     13        previous state, so we should just allow the touch bar to update instead.
     14
     15        * WebView/WebView.mm:
     16        (-[WebView updateTextTouchBar]):
     17
    1182017-01-26  Per Arne Vollan  <pvollan@apple.com>
    219
  • trunk/Source/WebKit/mac/WebView/WebView.mm

    r211207 r211243  
    95499549- (void)updateTextTouchBar
    95509550{
    9551     if (_private->_isDeferringTextTouchBarUpdates) {
     9551    BOOL touchBarsRequireInitialization = !_private->_richTextTouchBar || !_private->_plainTextTouchBar;
     9552    if (_private->_isDeferringTextTouchBarUpdates && !touchBarsRequireInitialization) {
    95529553        _private->_needsDeferredTextTouchBarUpdate = YES;
    95539554        return;
Note: See TracChangeset for help on using the changeset viewer.