OSDN Git Service

Don't reflow if a RenderBlock has background color or image.
authorShimeng (Simon) Wang <swang@google.com>
Fri, 7 Jan 2011 01:27:02 +0000 (17:27 -0800)
committerShimeng (Simon) Wang <swang@google.com>
Fri, 7 Jan 2011 01:27:02 +0000 (17:27 -0800)
issue: 3313826
Change-Id: Ic9c87880eb6f41f72319f72123cc21cc2fe623f0

WebCore/rendering/RenderBlockLineLayout.cpp

index 878d1ab..6b9fc68 100644 (file)
@@ -567,7 +567,7 @@ void RenderBlock::layoutInlineChildren(bool relayoutChildren, int& repaintLogica
             const int lineHeight = style()->computedLineHeight();
             const int fontSize = style()->fontSize();
             doTextWrap = autowrap && !positioned &&
-                    (fontSize <= lineHeight) && !style()->hasBackgroundImage() &&
+                    (fontSize <= lineHeight) && !style()->hasBackground() &&
                     (((dir == LTR && cssfloat != FRIGHT) ||
                     (dir == RTL && cssfloat != FLEFT)) &&
                     ((ta == TAAUTO) || (ta == JUSTIFY) ||