Index: Source/core/rendering/RenderDeprecatedFlexibleBox.cpp |
diff --git a/Source/core/rendering/RenderDeprecatedFlexibleBox.cpp b/Source/core/rendering/RenderDeprecatedFlexibleBox.cpp |
index 0e8c492832e24ee0c77f761db697db881847e010..b25fecc82fd0fbb4b183c88a565134941e48da15 100644 |
--- a/Source/core/rendering/RenderDeprecatedFlexibleBox.cpp |
+++ b/Source/core/rendering/RenderDeprecatedFlexibleBox.cpp |
@@ -29,6 +29,7 @@ |
#include "core/rendering/FastTextAutosizer.h" |
#include "core/rendering/RenderLayer.h" |
#include "core/rendering/RenderView.h" |
+#include "core/rendering/TextRunConstructor.h" |
#include "platform/fonts/Font.h" |
#include "wtf/StdLibExtras.h" |
#include "wtf/unicode/CharacterNames.h" |
@@ -940,10 +941,10 @@ void RenderDeprecatedFlexibleBox::applyLineClamp(FlexBoxIterator& iterator, bool |
float totalWidth; |
InlineBox* anchorBox = lastLine->lastChild(); |
if (anchorBox && anchorBox->renderer().style()->isLink()) |
- totalWidth = anchorBox->logicalWidth() + font.width(RenderBlockFlow::constructTextRun(this, font, ellipsisAndSpace, 2, style(), style()->direction())); |
+ totalWidth = anchorBox->logicalWidth() + font.width(constructTextRun(this, font, ellipsisAndSpace, 2, style(), style()->direction())); |
else { |
anchorBox = 0; |
- totalWidth = font.width(RenderBlockFlow::constructTextRun(this, font, &horizontalEllipsis, 1, style(), style()->direction())); |
+ totalWidth = font.width(constructTextRun(this, font, &horizontalEllipsis, 1, style(), style()->direction())); |
} |
// See if this width can be accommodated on the last visible line |