summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorGrace Kloba <>2009-03-24 17:45:54 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-24 17:45:54 -0700
commitdcf033d6259f8d68d3230c2d23f0290d1347e226 (patch)
tree976186da937110753062090583aa5b35400bb381 /WebCore
parentb13d419523835ae5d1423e305fbb3d4748594503 (diff)
downloadexternal_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.cpp5
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);