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

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

Issue 1966703002: Support includePartialGlyphs=false in Font::offsetForPositionForComplexText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment as per eae review Created 4 years, 7 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/CachingWordShaper.h
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaper.h b/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaper.h
index efb8c8be11587ea47850e7a5348edf980dca3686..dcab4f03d468a05e83a7b35f13233018329a6343 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaper.h
+++ b/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaper.h
@@ -52,7 +52,7 @@ public:
float width(const Font*, const TextRun&,
HashSet<const SimpleFontData*>* fallbackFonts,
FloatRect* glyphBounds);
- int offsetForPosition(const Font*, const TextRun&, float targetX);
+ int offsetForPosition(const Font*, const TextRun&, float targetX, bool includePartialGlyphs);
float fillGlyphBuffer(const Font*, const TextRun&,
HashSet<const SimpleFontData*>*, GlyphBuffer*,
unsigned from, unsigned to);

Powered by Google App Engine
This is Rietveld 408576698