Index: Source/WebCore/rendering/RenderBlockLineLayout.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderBlockLineLayout.cpp (revision 128797) |
+++ Source/WebCore/rendering/RenderBlockLineLayout.cpp (working copy) |
@@ -397,9 +397,9 @@ |
static inline void dirtyLineBoxesForRenderer(RenderObject* o, bool fullLayout) |
{ |
if (o->isText()) { |
- if (o->preferredLogicalWidthsDirty() && (o->isCounter() || o->isQuote())) |
- toRenderText(o)->computePreferredLogicalWidths(0); // FIXME: Counters depend on this hack. No clue why. Should be investigated and removed. |
- toRenderText(o)->dirtyLineBoxes(fullLayout); |
+ RenderText* renderText = toRenderText(o); |
+ renderText->updateTextIfNeeded(); // FIXME: Counters depend on this hack. No clue why. Should be investigated and removed. |
+ renderText->dirtyLineBoxes(fullLayout); |
} else |
toRenderInline(o)->dirtyLineBoxes(fullLayout); |
} |