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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/CachingWordShapeIterator.cpp

Issue 2686503003: Add support for shaping a substring to HarfBuzzShaper (Closed)
Patch Set: Cleanup comments and adjust tolerance Created 3 years, 10 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/platform/fonts/shaping/CachingWordShapeIterator.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShapeIterator.cpp b/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShapeIterator.cpp
index 4f17d0e0cc44f2b8df503d9eb5f284db45f5453b..a9acf9fbc00592490559af19cba8db3f8ab5309f 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShapeIterator.cpp
+++ b/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShapeIterator.cpp
@@ -19,7 +19,7 @@ PassRefPtr<const ShapeResult> CachingWordShapeIterator::shapeWordWithoutSpacing(
std::unique_ptr<UChar[]> wordText = wordRun.normalizedUTF16(&wordLength);
HarfBuzzShaper shaper(wordText.get(), wordLength, wordRun.direction());
- RefPtr<const ShapeResult> shapeResult = shaper.shapeResult(font);
+ RefPtr<const ShapeResult> shapeResult = shaper.shape(font);
if (!shapeResult)
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698