}
#if ENABLE(TIZEN_VIEWPORT_META_TAG)
+static const int landscapeWidth = 640;
bool WebChromeClient::canContentsSizeChange(Frame* frame, const IntSize& size) const
{
// FIXME1: This patch should be removed AS SOON AS unexpected layout change problem is fixed.
// 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()
- // 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)
+ if (view->fixedLayoutSize().width() < size.width() && size.width() < landscapeWidth)
return false;
+
return true;
}
#endif