Index: Source/core/rendering/RenderBlockLineLayout.cpp |
diff --git a/Source/core/rendering/RenderBlockLineLayout.cpp b/Source/core/rendering/RenderBlockLineLayout.cpp |
index 8c47b06bc5481ad5e1d47566e24d89913d44cf44..61628db5208b219af3f54071ae3998e22f71ce11 100644 |
--- a/Source/core/rendering/RenderBlockLineLayout.cpp |
+++ b/Source/core/rendering/RenderBlockLineLayout.cpp |
@@ -31,6 +31,7 @@ |
#include "core/rendering/RenderRegion.h" |
#include "core/rendering/RenderRubyRun.h" |
#include "core/rendering/RenderView.h" |
+#include "core/rendering/TextRunConstructor.h" |
#include "core/rendering/TrailingFloatsRootInlineBox.h" |
#include "core/rendering/VerticalPositionCache.h" |
#include "core/rendering/line/BreakingContextInlineHeaders.h" |
@@ -1315,7 +1316,7 @@ static inline void stripTrailingSpace(float& inlineMax, float& inlineMin, Render |
RenderText* t = toRenderText(trailingSpaceChild); |
const UChar space = ' '; |
const Font& font = t->style()->font(); // FIXME: This ignores first-line. |
- float spaceWidth = font.width(RenderBlockFlow::constructTextRun(t, font, &space, 1, t->style(), LTR)); |
+ float spaceWidth = font.width(constructTextRun(t, font, &space, 1, t->style(), LTR)); |
inlineMax -= spaceWidth + font.fontDescription().wordSpacing(); |
if (inlineMin > inlineMax) |
inlineMin = inlineMax; |