diff options
Diffstat (limited to 'Source/WebCore/rendering/RenderBlockLineLayout.cpp')
-rwxr-xr-x | Source/WebCore/rendering/RenderBlockLineLayout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebCore/rendering/RenderBlockLineLayout.cpp b/Source/WebCore/rendering/RenderBlockLineLayout.cpp index bceb24ac7..362d31fc7 100755 --- a/Source/WebCore/rendering/RenderBlockLineLayout.cpp +++ b/Source/WebCore/rendering/RenderBlockLineLayout.cpp @@ -1948,7 +1948,7 @@ static inline float textWidth(RenderText* text, unsigned from, unsigned len, con ASSERT(run.charactersLength() >= run.length()); run.setCharacterScanForCodePath(!text->canUseSimpleFontCodePath()); - run.setAllowTabs(!collapseWhiteSpace); + run.setTabSize(!collapseWhiteSpace, text->style()->tabSize()); run.setXPos(xPos); return font.width(run); } @@ -1980,7 +1980,7 @@ static void tryHyphenating(RenderText* text, const Font& font, const AtomicStrin run.setCharactersLength(text->textLength() - lastSpace); ASSERT(run.charactersLength() >= run.length()); - run.setAllowTabs(!collapseWhiteSpace); + run.setTabSize(!collapseWhiteSpace, text->style()->tabSize()); run.setXPos(xPos + lastSpaceWordSpacing); unsigned prefixLength = font.offsetForPosition(run, maxPrefixWidth, false); |