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

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: Rebase Created 5 years, 4 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 7c2c61fc89bad069b5baf6e2dd21a0eef47bc548..37f750d46d8e7fca50cd7b0ce95447e1ef384582 100644
--- a/Source/platform/fonts/shaping/CachingWordShaper.h
+++ b/Source/platform/fonts/shaping/CachingWordShaper.h
@@ -49,6 +49,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