[epiphany] web-view: Change zoom in LOAD_COMMITTED



commit 4f94f86b532c2ad1f743580dff4b4e8634106901
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sat Sep 9 15:40:44 2017 -0500

    web-view: Change zoom in LOAD_COMMITTED
    
    Instead of changing zoom in LOAD_STARTED, wait for LOAD_COMMITTED so as
    to shrink the amount of time that the zoom is wrong for. This isn't a
    proper fix as WebKit's load events don't indicate when rendering has
    started, and that would be the only proper time to change the zoom.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787486

 embed/ephy-web-view.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index dc73b4f..14f27dc 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1795,9 +1795,6 @@ load_changed_cb (WebKitWebView  *web_view,
         ephy_web_view_set_address (view, loading_uri);
 
       ephy_web_view_set_loading_message (view, loading_uri);
-
-      /* Zoom level. */
-      restore_zoom_level (view, loading_uri);
       break;
     }
     case WEBKIT_LOAD_REDIRECTED:
@@ -1836,6 +1833,9 @@ load_changed_cb (WebKitWebView  *web_view,
       else
         view->error_page = EPHY_WEB_VIEW_ERROR_PAGE_NONE;
 
+      /* Zoom level. */
+      restore_zoom_level (view, uri);
+
       break;
     }
     case WEBKIT_LOAD_FINISHED:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]