Title: [163668] trunk/Source/WebKit2
Revision
163668
Author
benja...@webkit.org
Date
2014-02-07 17:10:52 -0800 (Fri, 07 Feb 2014)

Log Message

[WK2] The WebPageProxy's copy of pageScaleFactor is not update when the scale is changed from the viewport configuration
https://bugs.webkit.org/show_bug.cgi?id=128415

Patch by Benjamin Poulain <bpoul...@apple.com> on 2014-02-07
Reviewed by Simon Fraser.

* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::viewportConfigurationChanged):
The scale needs to be updated through WebPage::scalePage().

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (163667 => 163668)


--- trunk/Source/WebKit2/ChangeLog	2014-02-08 01:09:56 UTC (rev 163667)
+++ trunk/Source/WebKit2/ChangeLog	2014-02-08 01:10:52 UTC (rev 163668)
@@ -1,3 +1,14 @@
+2014-02-07  Benjamin Poulain  <bpoul...@apple.com>
+
+        [WK2] The WebPageProxy's copy of pageScaleFactor is not update when the scale is changed from the viewport configuration
+        https://bugs.webkit.org/show_bug.cgi?id=128415
+
+        Reviewed by Simon Fraser.
+
+        * WebProcess/WebPage/ios/WebPageIOS.mm:
+        (WebKit::WebPage::viewportConfigurationChanged):
+        The scale needs to be updated through WebPage::scalePage().
+
 2014-02-07  Tim Horton  <timothy_hor...@apple.com>
 
         WebKit2 View Gestures (Swipe): Support for iOS

Modified: trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm (163667 => 163668)


--- trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm	2014-02-08 01:09:56 UTC (rev 163667)
+++ trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm	2014-02-08 01:10:52 UTC (rev 163668)
@@ -997,7 +997,7 @@
     else
         scale = m_viewportConfiguration.initialScale();
 
-    m_page->setPageScaleFactor(scale, m_page->mainFrame().view()->scrollPosition());
+    scalePage(scale, m_page->mainFrame().view()->scrollPosition());
 }
 
 void WebPage::willStartUserTriggeredZooming()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to