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

Unified Diff: Source/platform/fonts/shaping/CachingWordShaper.cpp

Issue 1239603002: Revert of Change fallback font collection in HarfBuzzShaper (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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: Source/platform/fonts/shaping/CachingWordShaper.cpp
diff --git a/Source/platform/fonts/shaping/CachingWordShaper.cpp b/Source/platform/fonts/shaping/CachingWordShaper.cpp
index b632fd49e7764c79e964a65396fac03cd3e98844..b9b2d77c9bad48c9dcf3cb0b6bdb9bb6fc0b6e61 100644
--- a/Source/platform/fonts/shaping/CachingWordShaper.cpp
+++ b/Source/platform/fonts/shaping/CachingWordShaper.cpp
@@ -56,14 +56,12 @@
{
float width = 0;
RefPtr<ShapeResult> wordResult;
- CachingWordShapeIterator iterator(m_shapeCache, run, font);
+ CachingWordShapeIterator iterator(m_shapeCache, run, font, fallbackFonts);
while (iterator.next(&wordResult)) {
if (wordResult) {
width += wordResult->width();
if (glyphBounds)
glyphBounds->unite(wordResult->bounds());
- if (fallbackFonts)
- wordResult->fallbackFonts(fallbackFonts);
}
}
@@ -74,15 +72,13 @@
const TextRun& run, HashSet<const SimpleFontData*>* fallbackFonts,
Vector<RefPtr<ShapeResult>>* results)
{
- CachingWordShapeIterator iterator(shapeCache, run, font);
+ CachingWordShapeIterator iterator(shapeCache, run, font, fallbackFonts);
RefPtr<ShapeResult> wordResult;
float totalWidth = 0;
while (iterator.next(&wordResult)) {
if (wordResult) {
results->append(wordResult);
totalWidth += wordResult->width();
- if (fallbackFonts)
- wordResult->fallbackFonts(fallbackFonts);
}
}
return totalWidth;
« no previous file with comments | « Source/platform/fonts/shaping/CachingWordShapeIterator.h ('k') | Source/platform/fonts/shaping/CachingWordShaperTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698