[BlackBerry] Viewport metatag doesn't disable double-tap zoom
[WebKit-https.git] / Source / WebKit / blackberry / Api / WebPage.cpp
index 6309f9d..30a710b 100644 (file)
@@ -1575,6 +1575,11 @@ bool WebPage::isUserScalable() const
     return d->isUserScalable();
 }
 
     return d->isUserScalable();
 }
 
+void WebPage::setUserScalable(bool userScalable)
+{
+    d->setUserScalable(userScalable);
+}
+
 double WebPage::currentScale() const
 {
     return d->currentScale();
 double WebPage::currentScale() const
 {
     return d->currentScale();
@@ -5688,9 +5693,6 @@ void WebPagePrivate::didChangeSettings(WebSettings* webSettings)
     coreSettings->setDownloadableBinaryFontsEnabled(webSettings->downloadableBinaryFontsEnabled());
     coreSettings->setSpatialNavigationEnabled(m_webSettings->isSpatialNavigationEnabled());
 
     coreSettings->setDownloadableBinaryFontsEnabled(webSettings->downloadableBinaryFontsEnabled());
     coreSettings->setSpatialNavigationEnabled(m_webSettings->isSpatialNavigationEnabled());
 
-    // UserScalable should be reset by new settings.
-    setUserScalable(webSettings->isUserScalable());
-
     WebString stylesheetURL = webSettings->userStyleSheetString();
     if (stylesheetURL.isEmpty())
         stylesheetURL = webSettings->userStyleSheetLocation();
     WebString stylesheetURL = webSettings->userStyleSheetString();
     if (stylesheetURL.isEmpty())
         stylesheetURL = webSettings->userStyleSheetLocation();