Title: [249994] branches/safari-608-branch/Source/WebKit
Revision
249994
Author
[email protected]
Date
2019-09-17 15:29:34 -0700 (Tue, 17 Sep 2019)

Log Message

Cherry-pick r249754. rdar://problem/55427271

    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.

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@249754 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-608-branch/Source/WebKit/ChangeLog (249993 => 249994)


--- branches/safari-608-branch/Source/WebKit/ChangeLog	2019-09-17 22:29:31 UTC (rev 249993)
+++ branches/safari-608-branch/Source/WebKit/ChangeLog	2019-09-17 22:29:34 UTC (rev 249994)
@@ -1,5 +1,40 @@
 2019-09-17  Kocsen Chung  <[email protected]>
 
+        Cherry-pick r249754. rdar://problem/55427271
+
+    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.
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@249754 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-09-10  Tim Horton  <[email protected]>
+
+            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.
+
+2019-09-17  Kocsen Chung  <[email protected]>
+
         Cherry-pick r249748. rdar://problem/55240888
 
     Nullptr crash in Page::sessionID() via WebKit::WebFrameLoaderClient::detachedFromParent2()

Modified: branches/safari-608-branch/Source/WebKit/WebProcess/WebPage/WebPage.cpp (249993 => 249994)


--- branches/safari-608-branch/Source/WebKit/WebProcess/WebPage/WebPage.cpp	2019-09-17 22:29:31 UTC (rev 249993)
+++ branches/safari-608-branch/Source/WebKit/WebProcess/WebPage/WebPage.cpp	2019-09-17 22:29:34 UTC (rev 249994)
@@ -5737,7 +5737,8 @@
 void WebPage::didCommitLoad(WebFrame* frame)
 {
 #if PLATFORM(IOS_FAMILY)
-    frame->setFirstLayerTreeTransactionIDAfterDidCommitLoad(downcast<RemoteLayerTreeDrawingArea>(*m_drawingArea).nextTransactionID());
+    auto firstTransactionIDAfterDidCommitLoad = downcast<RemoteLayerTreeDrawingArea>(*m_drawingArea).nextTransactionID();
+    frame->setFirstLayerTreeTransactionIDAfterDidCommitLoad(firstTransactionIDAfterDidCommitLoad);
     cancelPotentialTapInFrame(*frame);
 #endif
     resetFocusedElementForFrame(frame);
@@ -5771,6 +5772,7 @@
 #if PLATFORM(IOS_FAMILY)
     m_hasReceivedVisibleContentRectsAfterDidCommitLoad = false;
     m_hasRestoredExposedContentRectAfterDidCommitLoad = false;
+    m_lastTransactionIDWithScaleChange = firstTransactionIDAfterDidCommitLoad;
     m_scaleWasSetByUIProcess = false;
     m_userHasChangedPageScaleFactor = false;
     m_estimatedLatency = Seconds(1.0 / 60);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to