Changeset 232601 in webkit


Ignore:
Timestamp:
Jun 7, 2018 3:03:15 PM (6 years ago)
Author:
timothy_horton@apple.com
Message:

REGRESSION (r232544): Pages are blank after homing out and then resuming on iPad
https://bugs.webkit.org/show_bug.cgi?id=186408
<rdar://problem/40907111>

Reviewed by Wenson Hsieh.

  • UIProcess/API/Cocoa/WKWebView.mm:

(-[WKWebView _resizeWhileHidingContentWithUpdates:]):
Clients who use _resizeWhileHidingContentWithUpdates don't call
_endAnimatedResize; the former API is a one-shot. We can't wait for
_endAnimatedResize to complete the animation (and don't need to, since
the content is hidden), but instead should just finish it when the
commit with the resized tiles arrives.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r232595 r232601  
     12018-06-07  Tim Horton  <timothy_horton@apple.com>
     2
     3        REGRESSION (r232544): Pages are blank after homing out and then resuming on iPad
     4        https://bugs.webkit.org/show_bug.cgi?id=186408
     5        <rdar://problem/40907111>
     6
     7        Reviewed by Wenson Hsieh.
     8
     9        * UIProcess/API/Cocoa/WKWebView.mm:
     10        (-[WKWebView _resizeWhileHidingContentWithUpdates:]):
     11        Clients who use _resizeWhileHidingContentWithUpdates don't call
     12        _endAnimatedResize; the former API is a one-shot. We can't wait for
     13        _endAnimatedResize to complete the animation (and don't need to, since
     14        the content is hidden), but instead should just finish it when the
     15        commit with the resized tiles arrives.
     16
    1172018-06-07  Jiewen Tan  <jiewen_tan@apple.com>
    218
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm

    r232559 r232601  
    53765376        [_contentView setHidden:YES];
    53775377        _dynamicViewportUpdateMode = WebKit::DynamicViewportUpdateMode::ResizingWithDocumentHidden;
     5378       
     5379        // _resizeWhileHidingContentWithUpdates is used by itself; the client will
     5380        // not call endAnimatedResize, so we can't wait for it.
     5381        _waitingForEndAnimatedResize = NO;
    53785382    }
    53795383}
Note: See TracChangeset for help on using the changeset viewer.