Add a condition to fix wordpress.com
authorGyuyoung Kim <gyuyoung.kim@samsung.com>
Mon, 1 Jul 2013 04:03:29 +0000 (13:03 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 1 Jul 2013 05:22:50 +0000 (05:22 +0000)
[Issue#] WEB-3293
[Problem] Help page on workpress.com doesn't be panned.
[Cause] A workaround patch of Viewport meta tag influences on this issue.
[Solution] Add a new condition for wordpress.com

Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp

index 75af613..acb4939 100755 (executable)
@@ -515,7 +515,12 @@ bool WebChromeClient::canContentsSizeChange(Frame* frame, const IntSize& size) c
     // ex) www.adobe.com - fixedLayoutSize.width: 360, changedContentsSize: 950
     // ex) www.mt.co.kr (desktop site) - fixedLayoutSize.width: 980, changedContentsSize: 1090
     FrameView* view = m_page->mainFrame()->view();
-    if (view->fixedLayoutSize().width() != size.width() && size.width() < m_page->viewportSize().width())
+    if (view->fixedLayoutSize().width() != size.width()
+        && size.width() < m_page->viewportSize().width()
+        // This condition is for regression by this work-around patch.
+        // http://en.wordpress.com/wp-login.php?action=lostpassword site doesn't work by this patch.
+        // This patch should be removed as soon as possible.
+        && m_page->corePage()->viewportArguments().initialScale > 0.9)
         return false;
     return true;
 }