OSDN Git Service

Fix 1849037. Don't force text wrap to the screen if text is not autoWrap.
authorGrace Kloba <klobag@google.com>
Fri, 31 Jul 2009 00:53:35 +0000 (17:53 -0700)
committerGrace Kloba <klobag@google.com>
Fri, 31 Jul 2009 00:53:35 +0000 (17:53 -0700)
WebCore/rendering/bidi.cpp

index 1a47e78..36d3ab3 100644 (file)
@@ -854,12 +854,13 @@ void RenderBlock::layoutInlineChildren(bool relayoutChildren, int& repaintTop, i
         if (doTextWrap) {
             int ta = style()->textAlign();
             int dir = style()->direction();
+            bool autowrap = style()->autoWrap();
             EFloat cssfloat = style()->floating();
-            doTextWrap = ((dir == LTR && cssfloat != FRIGHT) ||
+            doTextWrap = autowrap && (((dir == LTR && cssfloat != FRIGHT) ||
                     (dir == RTL && cssfloat != FLEFT)) && 
                     ((ta == TAAUTO) || (ta == JUSTIFY) ||
                     ((ta == LEFT || ta == WEBKIT_LEFT) && (dir == LTR)) ||
-                    ((ta == RIGHT || ta == WEBKIT_RIGHT) && (dir == RTL)));
+                    ((ta == RIGHT || ta == WEBKIT_RIGHT) && (dir == RTL))));
         }
         bool hasTextToWrap = false;
 #endif