Changeset 249754 in webkit


Ignore:
Timestamp:
Sep 10, 2019 9:51:29 PM (5 years ago)
Author:
timothy_horton@apple.com
Message:

REGRESSION (r233780): After swiping to navigate back, pinching to zoom in on webcontent snaps back to zoomed out when letting go
https://bugs.webkit.org/show_bug.cgi?id=201671
<rdar://problem/50488372>

Reviewed by Simon Fraser.

  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::didCommitLoad):
Reset m_lastTransactionIDWithScaleChange, since it is not guaranteed
to only march forward. Otherwise, we can get stuck with a very large
m_lastTransactionIDWithScaleChange, and will not allow stable-state
user-driven zooms until the current transactionID exceeds it.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r249748 r249754  
     12019-09-10  Tim Horton  <timothy_horton@apple.com>
     2
     3        REGRESSION (r233780): After swiping to navigate back, pinching to zoom in on webcontent snaps back to zoomed out when letting go
     4        https://bugs.webkit.org/show_bug.cgi?id=201671
     5        <rdar://problem/50488372>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * WebProcess/WebPage/WebPage.cpp:
     10        (WebKit::WebPage::didCommitLoad):
     11        Reset m_lastTransactionIDWithScaleChange, since it is not guaranteed
     12        to only march forward. Otherwise, we can get stuck with a very large
     13        m_lastTransactionIDWithScaleChange, and will not allow stable-state
     14        user-driven zooms until the current transactionID exceeds it.
     15
    1162019-09-10  Chris Dumez  <cdumez@apple.com>
    217
  • trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp

    r249748 r249754  
    57315731{
    57325732#if PLATFORM(IOS_FAMILY)
    5733     frame->setFirstLayerTreeTransactionIDAfterDidCommitLoad(downcast<RemoteLayerTreeDrawingArea>(*m_drawingArea).nextTransactionID());
     5733    auto firstTransactionIDAfterDidCommitLoad = downcast<RemoteLayerTreeDrawingArea>(*m_drawingArea).nextTransactionID();
     5734    frame->setFirstLayerTreeTransactionIDAfterDidCommitLoad(firstTransactionIDAfterDidCommitLoad);
    57345735    cancelPotentialTapInFrame(*frame);
    57355736#endif
     
    57655766    m_hasReceivedVisibleContentRectsAfterDidCommitLoad = false;
    57665767    m_hasRestoredExposedContentRectAfterDidCommitLoad = false;
     5768    m_lastTransactionIDWithScaleChange = firstTransactionIDAfterDidCommitLoad;
    57675769    m_scaleWasSetByUIProcess = false;
    57685770    m_userHasChangedPageScaleFactor = false;
Note: See TracChangeset for help on using the changeset viewer.