OSDN Git Service

Merge "Do not reflow text if a div has border."
authorShimeng (Simon) Wang <swang@google.com>
Thu, 23 Jun 2011 18:53:30 +0000 (11:53 -0700)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Thu, 23 Jun 2011 18:53:30 +0000 (11:53 -0700)
Source/WebCore/rendering/RenderBlockLineLayout.cpp

index a5716ed..e464022 100644 (file)
@@ -777,7 +777,7 @@ void RenderBlock::layoutInlineChildren(bool relayoutChildren, int& repaintLogica
             EFloat cssfloat = style()->floating();
             const int lineHeight = style()->computedLineHeight();
             const int fontSize = style()->fontSize();
-            doTextWrap = autowrap && !positioned &&
+            doTextWrap = autowrap && !positioned && !style()->hasBorder() &&
                     (fontSize <= lineHeight) && !style()->hasBackground() &&
                     (((dir == LTR && cssfloat != FRIGHT) ||
                     (dir == RTL && cssfloat != FLEFT)) &&