| Index: third_party/WebKit/Source/core/layout/LayoutListMarker.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutListMarker.cpp b/third_party/WebKit/Source/core/layout/LayoutListMarker.cpp
|
| index 31e5f27a948e60f885ee9b889de0a50a7b97edce..ee3042ebc3f725ffeddc1b461b461c50c0b15fdb 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutListMarker.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutListMarker.cpp
|
| @@ -204,7 +204,7 @@ LayoutUnit LayoutListMarker::getWidthOfTextWithSuffix() const
|
| if (m_text.isEmpty())
|
| return LayoutUnit();
|
| const Font& font = style()->font();
|
| - LayoutUnit itemWidth = LayoutUnit(font.width(m_text));
|
| + LayoutUnit itemWidth = LayoutUnit(font.width(TextRun(m_text)));
|
| // TODO(wkorman): Look into constructing a text run for both text and suffix
|
| // and painting them together.
|
| UChar suffix[2] = { ListMarkerText::suffix(style()->listStyleType(), m_listItem->value()), ' ' };
|
|
|