From: Grace Kloba Date: Tue, 4 Aug 2009 01:07:14 +0000 (-0700) Subject: Fix 1635950. If the RenderBlock is positioned, don't wrap text to screen X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e4885029db754edf0ca1c34cc9f3473ec01a5b66;p=android-x86%2Fexternal-webkit.git Fix 1635950. If the RenderBlock is positioned, don't wrap text to screen width as it may cause text overlap. --- diff --git a/WebCore/rendering/bidi.cpp b/WebCore/rendering/bidi.cpp index 36d3ab330..24c2051eb 100644 --- a/WebCore/rendering/bidi.cpp +++ b/WebCore/rendering/bidi.cpp @@ -855,8 +855,12 @@ void RenderBlock::layoutInlineChildren(bool relayoutChildren, int& repaintTop, i int ta = style()->textAlign(); int dir = style()->direction(); bool autowrap = style()->autoWrap(); + // if the RenderBlock is positioned, don't wrap text around screen + // width as it may cause text to overlap. + bool positioned = isPositioned(); EFloat cssfloat = style()->floating(); - doTextWrap = autowrap && (((dir == LTR && cssfloat != FRIGHT) || + doTextWrap = autowrap && !positioned && + (((dir == LTR && cssfloat != FRIGHT) || (dir == RTL && cssfloat != FLEFT)) && ((ta == TAAUTO) || (ta == JUSTIFY) || ((ta == LEFT || ta == WEBKIT_LEFT) && (dir == LTR)) ||