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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutText.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/LayoutText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
index bff3bf96482225184cda95b152af25a763d11b90..4b5f10a0e512c0b72353d2340596d0596f223a82 100644
--- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
@@ -868,7 +868,7 @@ static float maxWordFragmentWidth(LayoutText* layoutText,
return 0;
Vector<size_t, 8> hyphenLocations = hyphenation.hyphenLocations(
- layoutText->text().createView(wordOffset, wordLength));
+ StringView(layoutText->text(), wordOffset, wordLength));
if (hyphenLocations.isEmpty())
return 0;

Powered by Google App Engine
This is Rietveld 408576698