}
#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) m.news.naver.com
- // FIXME2: By this patch, contents size is not changed properly on big size contents
- // ex) www.expedia.com - fixedLayoutSize.width: 980, changedContentsSize: 1272
- // 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() < landscapeWidth)
+ // A page on naver isn't fitted when device is moved from landscape to portrait.
+ String url = frame->document()->url().string();
+ if (url.startsWith("https://nid.naver.com/user"))
return false;
return true;