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

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

Issue 2686503003: Add support for shaping a substring to HarfBuzzShaper (Closed)
Patch Set: Fix windows compiler error 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..4bd2a1fbfed48ce7e6ffa1ea85f2d8e66c91cf04 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShapeIterator.cpp
+++ b/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShapeIterator.cpp
@@ -18,8 +18,9 @@ PassRefPtr<const ShapeResult> CachingWordShapeIterator::shapeWordWithoutSpacing(
unsigned wordLength = 0;
std::unique_ptr<UChar[]> wordText = wordRun.normalizedUTF16(&wordLength);
- HarfBuzzShaper shaper(wordText.get(), wordLength, wordRun.direction());
- RefPtr<const ShapeResult> shapeResult = shaper.shapeResult(font);
+ HarfBuzzShaper shaper(wordText.get(), wordLength);
+ RefPtr<const ShapeResult> shapeResult =
+ shaper.shape(font, wordRun.direction());
if (!shapeResult)
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698