Commit 4f94f86b authored by Michael Catanzaro's avatar Michael Catanzaro

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
parent 86d156f7
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment