Title: [252159] tags/Safari-609.1.10/Source/WebKit
Revision
252159
Author
[email protected]
Date
2019-11-06 16:12:17 -0800 (Wed, 06 Nov 2019)

Log Message

Cherry-pick r252155. rdar://problem/56957850

    Unreviewed, rolling out r251907.

    Causes white flashing in some cases <rdar://problem/56957850>

    Reverted changeset:

    "Take down the gesture snapshot early when the back/forward
    cache is not leveraged"
    https://bugs.webkit.org/show_bug.cgi?id=203713
    https://trac.webkit.org/changeset/251907

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

Modified Paths

Diff

Modified: tags/Safari-609.1.10/Source/WebKit/ChangeLog (252158 => 252159)


--- tags/Safari-609.1.10/Source/WebKit/ChangeLog	2019-11-07 00:00:04 UTC (rev 252158)
+++ tags/Safari-609.1.10/Source/WebKit/ChangeLog	2019-11-07 00:12:17 UTC (rev 252159)
@@ -1,3 +1,33 @@
+2019-11-06  Alan Coon  <[email protected]>
+
+        Cherry-pick r252155. rdar://problem/56957850
+
+    Unreviewed, rolling out r251907.
+    
+    Causes white flashing in some cases <rdar://problem/56957850>
+    
+    Reverted changeset:
+    
+    "Take down the gesture snapshot early when the back/forward
+    cache is not leveraged"
+    https://bugs.webkit.org/show_bug.cgi?id=203713
+    https://trac.webkit.org/changeset/251907
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252155 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-11-06  Chris Dumez  <[email protected]>
+
+            Unreviewed, rolling out r251907.
+
+            Causes white flashing in some cases <rdar://problem/56957850>
+
+            Reverted changeset:
+
+            "Take down the gesture snapshot early when the back/forward
+            cache is not leveraged"
+            https://bugs.webkit.org/show_bug.cgi?id=203713
+            https://trac.webkit.org/changeset/251907
+
 2019-11-01  Brady Eidson  <[email protected]>
 
         Rejigger WKWebArchive headers.

Modified: tags/Safari-609.1.10/Source/WebKit/Shared/WebBackForwardListItem.cpp (252158 => 252159)


--- tags/Safari-609.1.10/Source/WebKit/Shared/WebBackForwardListItem.cpp	2019-11-07 00:00:04 UTC (rev 252158)
+++ tags/Safari-609.1.10/Source/WebKit/Shared/WebBackForwardListItem.cpp	2019-11-07 00:12:17 UTC (rev 252159)
@@ -182,16 +182,6 @@
     return m_backForwardCacheEntry ? m_backForwardCacheEntry->suspendedPage() : nullptr;
 }
 
-bool WebBackForwardListItem::hasCachedWebPage() const
-{
-    if (!m_backForwardCacheEntry)
-        return false;
-    if (!m_backForwardCacheEntry->suspendedPage())
-        return true; // In-process cached page without suspended page proxy.
-    // Make sure the suspended page proxy has an associated WebPage.
-    return !m_backForwardCacheEntry->suspendedPage()->pageIsClosedOrClosing();
-}
-
 #if !LOG_DISABLED
 const char* WebBackForwardListItem::loggingString()
 {

Modified: tags/Safari-609.1.10/Source/WebKit/Shared/WebBackForwardListItem.h (252158 => 252159)


--- tags/Safari-609.1.10/Source/WebKit/Shared/WebBackForwardListItem.h	2019-11-07 00:00:04 UTC (rev 252158)
+++ tags/Safari-609.1.10/Source/WebKit/Shared/WebBackForwardListItem.h	2019-11-07 00:12:17 UTC (rev 252159)
@@ -82,7 +82,6 @@
 
     void wasRemovedFromBackForwardList();
 
-    bool hasCachedWebPage() const;
     WebBackForwardCacheEntry* backForwardCacheEntry() const { return m_backForwardCacheEntry.get(); }
     SuspendedPageProxy* suspendedPage() const;
 

Modified: tags/Safari-609.1.10/Source/WebKit/UIProcess/ViewGestureController.cpp (252158 => 252159)


--- tags/Safari-609.1.10/Source/WebKit/UIProcess/ViewGestureController.cpp	2019-11-07 00:00:04 UTC (rev 252158)
+++ tags/Safari-609.1.10/Source/WebKit/UIProcess/ViewGestureController.cpp	2019-11-07 00:12:17 UTC (rev 252159)
@@ -590,16 +590,10 @@
         return;
     }
 
-    SnapshotRemovalTracker::Events desiredEvents;
-    if (targetItem->hasCachedWebPage()) {
-        desiredEvents = SnapshotRemovalTracker::VisuallyNonEmptyLayout
+    SnapshotRemovalTracker::Events desiredEvents = SnapshotRemovalTracker::VisuallyNonEmptyLayout
         | SnapshotRemovalTracker::MainFrameLoad
         | SnapshotRemovalTracker::SubresourceLoads
         | SnapshotRemovalTracker::ScrollPositionRestoration;
-    } else {
-        desiredEvents = SnapshotRemovalTracker::VisuallyNonEmptyLayout;
-        makeSnapshotBlank();
-    }
 
     if (renderTreeSizeThreshold) {
         desiredEvents |= SnapshotRemovalTracker::RenderTreeSizeThreshold;

Modified: tags/Safari-609.1.10/Source/WebKit/UIProcess/ViewGestureController.h (252158 => 252159)


--- tags/Safari-609.1.10/Source/WebKit/UIProcess/ViewGestureController.h	2019-11-07 00:00:04 UTC (rev 252158)
+++ tags/Safari-609.1.10/Source/WebKit/UIProcess/ViewGestureController.h	2019-11-07 00:12:17 UTC (rev 252159)
@@ -310,8 +310,6 @@
     GRefPtr<GtkStyleContext> createStyleContext(const char*);
 #endif
 
-    void makeSnapshotBlank();
-
     WebPageProxy& m_webPageProxy;
     ViewGestureType m_activeGestureType { ViewGestureType::None };
 

Modified: tags/Safari-609.1.10/Source/WebKit/UIProcess/gtk/ViewGestureControllerGtk.cpp (252158 => 252159)


--- tags/Safari-609.1.10/Source/WebKit/UIProcess/gtk/ViewGestureControllerGtk.cpp	2019-11-07 00:00:04 UTC (rev 252158)
+++ tags/Safari-609.1.10/Source/WebKit/UIProcess/gtk/ViewGestureControllerGtk.cpp	2019-11-07 00:12:17 UTC (rev 252159)
@@ -570,8 +570,4 @@
     return true;
 }
 
-void ViewGestureController::makeSnapshotBlank()
-{
-}
-
 } // namespace WebKit

Modified: tags/Safari-609.1.10/Source/WebKit/UIProcess/ios/ViewGestureControllerIOS.mm (252158 => 252159)


--- tags/Safari-609.1.10/Source/WebKit/UIProcess/ios/ViewGestureControllerIOS.mm	2019-11-07 00:00:04 UTC (rev 252158)
+++ tags/Safari-609.1.10/Source/WebKit/UIProcess/ios/ViewGestureControllerIOS.mm	2019-11-07 00:12:17 UTC (rev 252159)
@@ -267,11 +267,6 @@
     [transition startInteractiveTransition:m_swipeTransitionContext.get()];
 }
 
-void ViewGestureController::makeSnapshotBlank()
-{
-    [m_snapshotView layer].contents = nil;
-}
-
 void ViewGestureController::endSwipeGesture(WebBackForwardListItem* targetItem, _UIViewControllerTransitionContext *context, bool cancelled)
 {
     [context _setTransitionIsInFlight:NO];
@@ -317,20 +312,12 @@
         return;
     }
 
-    SnapshotRemovalTracker::Events desiredEvents;
-    if (targetItem->hasCachedWebPage()) {
-        desiredEvents = SnapshotRemovalTracker::RenderTreeSizeThreshold
-            | SnapshotRemovalTracker::RepaintAfterNavigation
-            | SnapshotRemovalTracker::MainFrameLoad
-            | SnapshotRemovalTracker::SubresourceLoads
-            | SnapshotRemovalTracker::ScrollPositionRestoration;
-    } else {
-        desiredEvents = SnapshotRemovalTracker::VisuallyNonEmptyLayout;
-        makeSnapshotBlank();
-    }
-
     // FIXME: Should we wait for VisuallyNonEmptyLayout like we do on Mac?
-    m_snapshotRemovalTracker.start(desiredEvents, [this] {
+    m_snapshotRemovalTracker.start(SnapshotRemovalTracker::RenderTreeSizeThreshold
+        | SnapshotRemovalTracker::RepaintAfterNavigation
+        | SnapshotRemovalTracker::MainFrameLoad
+        | SnapshotRemovalTracker::SubresourceLoads
+        | SnapshotRemovalTracker::ScrollPositionRestoration, [this] {
             this->removeSwipeSnapshot();
     });
 

Modified: tags/Safari-609.1.10/Source/WebKit/UIProcess/mac/ViewGestureControllerMac.mm (252158 => 252159)


--- tags/Safari-609.1.10/Source/WebKit/UIProcess/mac/ViewGestureControllerMac.mm	2019-11-07 00:00:04 UTC (rev 252158)
+++ tags/Safari-609.1.10/Source/WebKit/UIProcess/mac/ViewGestureControllerMac.mm	2019-11-07 00:12:17 UTC (rev 252159)
@@ -173,11 +173,6 @@
         endMagnificationGesture();
 }
 
-void ViewGestureController::makeSnapshotBlank()
-{
-    [m_swipeSnapshotLayer setContents:nil];
-}
-
 void ViewGestureController::endMagnificationGesture()
 {
     if (m_activeGestureType != ViewGestureType::Magnification)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to