summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-10-28 12:51:53 -0400
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-10-28 12:51:53 -0400
commit4e71352fc03ff3e392a94407c2298c045b610311 (patch)
tree0b04ada7110bb40d2120e789047791be975e45a0
parent7b035dc1012763a04adddc6de25256647fea50bd (diff)
parent8e7024d69d9885dc2d064817dae1acd41badc23f (diff)
downloadexternal_webkit-4e71352fc03ff3e392a94407c2298c045b610311.zip
external_webkit-4e71352fc03ff3e392a94407c2298c045b610311.tar.gz
external_webkit-4e71352fc03ff3e392a94407c2298c045b610311.tar.bz2
Merge change I8e7024d6 into eclair-mr2
* changes: We were excluding device-width to fix http://b/issue?id=1331654. But some mobile sites will have minimum pref width wider than the screen width, like in http://www.boygeniusreport.com/2009/10/23/motorola-droid-preview/.
-rw-r--r--WebCore/rendering/RenderBlockLineLayout.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/WebCore/rendering/RenderBlockLineLayout.cpp b/WebCore/rendering/RenderBlockLineLayout.cpp
index 9142953..14e7dce 100644
--- a/WebCore/rendering/RenderBlockLineLayout.cpp
+++ b/WebCore/rendering/RenderBlockLineLayout.cpp
@@ -847,14 +847,13 @@ void RenderBlock::layoutInlineChildren(bool relayoutChildren, int& repaintTop, i
if (firstChild()) {
#ifdef ANDROID_LAYOUT
- // if we are in fitColumnToScreen mode and viewport width is not device-width,
+ // if we are in fitColumnToScreen mode
// and the current object is not float:right in LTR or not float:left in RTL,
// and text align is auto, or justify or left in LTR, or right in RTL, we
// will wrap text around screen width so that it doesn't need to scroll
// horizontally when reading a paragraph.
const Settings* settings = document()->settings();
- bool doTextWrap = settings && settings->viewportWidth() != 0 &&
- settings->layoutAlgorithm() == Settings::kLayoutFitColumnToScreen;
+ bool doTextWrap = settings && settings->layoutAlgorithm() == Settings::kLayoutFitColumnToScreen;
if (doTextWrap) {
int ta = style()->textAlign();
int dir = style()->direction();