diff options
author | Shimeng (Simon) Wang <swang@google.com> | 2011-05-24 15:22:24 -0700 |
---|---|---|
committer | Shimeng (Simon) Wang <swang@google.com> | 2011-05-24 15:22:24 -0700 |
commit | 70f9c23fc96ec055711830b2d666b56d0192404c (patch) | |
tree | 2c1e88ca9275e522e33840c97e7dcc7f7cd89f79 | |
parent | 99231f8e5c2dfae0faab1efc56462f750832f3c8 (diff) | |
download | external_webkit-70f9c23fc96ec055711830b2d666b56d0192404c.zip external_webkit-70f9c23fc96ec055711830b2d666b56d0192404c.tar.gz external_webkit-70f9c23fc96ec055711830b2d666b56d0192404c.tar.bz2 |
Don't change website's content width.
This code is not needed since now fixed viewport is used for
all devices including phone.
issue: 4343683
Change-Id: I885eae15d30fc5f3f8f3855febc1d98cf6554c93
-rw-r--r-- | Source/WebCore/rendering/RenderView.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Source/WebCore/rendering/RenderView.cpp b/Source/WebCore/rendering/RenderView.cpp index 687ba85..cdd21fa 100644 --- a/Source/WebCore/rendering/RenderView.cpp +++ b/Source/WebCore/rendering/RenderView.cpp @@ -89,10 +89,6 @@ void RenderView::computeLogicalWidth() setLogicalWidth(viewLogicalWidth()); #ifdef ANDROID_LAYOUT setVisibleWidth(m_frameView->textWrapWidth()); - const Settings * settings = document()->settings(); - ASSERT(settings); - if (settings->useWideViewport() && settings->viewportWidth() == -1 && width() < minPreferredLogicalWidth()) - setWidth(m_minPreferredLogicalWidth); #endif } |