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

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

Issue 2025503002: Revert of Expand WTF::StringView's API to be more like StringPiece. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 f6db5b6693eb76d9a95a066a8379fb658fb0bb88..8e7a2ebf5f0788c1a15bc83ecf562c770f5115bc 100644
--- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
@@ -873,7 +873,7 @@
return 0;
Vector<size_t, 8> hyphenLocations = hyphenation.hyphenLocations(
- StringView(layoutText->text(), wordOffset, wordLength));
+ layoutText->text().createView(wordOffset, wordLength));
if (hyphenLocations.isEmpty())
return 0;

Powered by Google App Engine
This is Rietveld 408576698