diff options
author | Grace Kloba <> | 2009-03-24 17:45:54 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-24 17:45:54 -0700 |
commit | dcf033d6259f8d68d3230c2d23f0290d1347e226 (patch) | |
tree | 976186da937110753062090583aa5b35400bb381 /WebCore | |
parent | b13d419523835ae5d1423e305fbb3d4748594503 (diff) | |
download | external_webkit-dcf033d6259f8d68d3230c2d23f0290d1347e226.zip external_webkit-dcf033d6259f8d68d3230c2d23f0290d1347e226.tar.gz external_webkit-dcf033d6259f8d68d3230c2d23f0290d1347e226.tar.bz2 |
Automated import from //branches/master/...@140476,140476
Diffstat (limited to 'WebCore')
-rw-r--r-- | WebCore/rendering/bidi.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/WebCore/rendering/bidi.cpp b/WebCore/rendering/bidi.cpp index 212bf3c..accb326 100644 --- a/WebCore/rendering/bidi.cpp +++ b/WebCore/rendering/bidi.cpp @@ -903,8 +903,9 @@ void RenderBlock::layoutInlineChildren(bool relayoutChildren, int& repaintTop, i obj = obj->container(); } if (!isConstrained) { - int maxWidth = view()->frameView()->screenWidth() - 2 * ANDROID_FCTS_MARGIN_PADDING; - if (maxWidth > 0) { + int screenWidth = view()->frameView()->screenWidth(); + if (screenWidth > 0 && width() > screenWidth) { + int maxWidth = screenWidth - 2 * ANDROID_FCTS_MARGIN_PADDING; setWidth(min(width(), maxWidth)); m_minPrefWidth = min(m_minPrefWidth, maxWidth); m_maxPrefWidth = min(m_maxPrefWidth, maxWidth); |