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

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

Issue 1248453004: Change Font::offsetForPositionForComplexText to use CachingWordShapeIterator (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: TestExpectations and rebase 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.h
diff --git a/Source/platform/fonts/shaping/CachingWordShaper.h b/Source/platform/fonts/shaping/CachingWordShaper.h
index a8017d4f29f4d5a131042b21b266795a27081e1c..ed4dca3ef71273964e5f2ced1f0f36ff2e16d8a0 100644
--- a/Source/platform/fonts/shaping/CachingWordShaper.h
+++ b/Source/platform/fonts/shaping/CachingWordShaper.h
@@ -48,6 +48,7 @@ public:
float width(const Font*, const TextRun&,
HashSet<const SimpleFontData*>* fallbackFonts,
FloatRect* glyphBounds);
+ int offsetForPosition(const Font*, const TextRun&, float targetX);
float fillGlyphBuffer(const Font*, const TextRun&,
HashSet<const SimpleFontData*>*, GlyphBuffer*,
unsigned from, unsigned to);

Powered by Google App Engine
This is Rietveld 408576698