Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1724)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutListMarker.cpp

Issue 2007103003: Expand WTF::StringView's API to be more like StringPiece. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove bad assert. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 0eb1c68d507d18f00288740c1bdb4f8d79c64466..095c8f9776966c273bc90c35b4b76ccb54b91fbd 100644
--- a/third_party/WebKit/Source/core/layout/LayoutListMarker.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutListMarker.cpp
@@ -203,7 +203,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()), ' ' };
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.h ('k') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698