| Index: third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| index 3af1361a9399b5cd5c46907d1371ee89efdcea0a..bdb9aded6edeefb68ecffd91debd5c14bbb4c19e 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| @@ -727,7 +727,7 @@ ALWAYS_INLINE float LayoutText::widthFromFont(const Font& f, int start, int len,
|
| TextRun run = constructTextRun(f, this, start, len, styleRef(), textDirection);
|
| run.setCharactersLength(textLength() - start);
|
| ASSERT(run.charactersLength() >= run.length());
|
| - run.setTabSize(!style()->collapseWhiteSpace(), style()->tabSize());
|
| + run.setTabSize(!style()->collapseWhiteSpace(), style()->getTabSize());
|
| run.setXPos(leadWidth + textWidthSoFar);
|
|
|
| FloatRect newGlyphBounds;
|
| @@ -1081,7 +1081,7 @@ void LayoutText::computePreferredLogicalWidths(float leadWidth, HashSet<const Si
|
| TextRun run = constructTextRun(f, this, i, 1, styleToUse, textDirection);
|
| run.setCharactersLength(len - i);
|
| ASSERT(run.charactersLength() >= run.length());
|
| - run.setTabSize(!style()->collapseWhiteSpace(), style()->tabSize());
|
| + run.setTabSize(!style()->collapseWhiteSpace(), style()->getTabSize());
|
| run.setXPos(leadWidth + currMaxWidth);
|
|
|
| currMaxWidth += f.width(run);
|
| @@ -1513,7 +1513,7 @@ float LayoutText::width(unsigned from, unsigned len, const Font& f, LayoutUnit x
|
| run.setCharactersLength(textLength() - from);
|
| ASSERT(run.charactersLength() >= run.length());
|
|
|
| - run.setTabSize(!style()->collapseWhiteSpace(), style()->tabSize());
|
| + run.setTabSize(!style()->collapseWhiteSpace(), style()->getTabSize());
|
| run.setXPos(xPos.toFloat());
|
| w = f.width(run, fallbackFonts, glyphBounds);
|
| }
|
|
|