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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.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/ShapeResultBuffer.h
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.h b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.h
index df498cfa93c48cae480c13694d0288459725abfb..2cd0754bbd3cdedbb2e2714e7cb76e0f8aaabd4f 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.h
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.h
@@ -34,7 +34,7 @@ public:
float fillGlyphBuffer(GlyphBuffer*, const TextRun&, unsigned from, unsigned to) const;
float fillGlyphBufferForTextEmphasis(GlyphBuffer*, const TextRun&,
const GlyphData* emphasisData, unsigned from, unsigned to) const;
- int offsetForPosition(const TextRun&, float targetX) const;
+ int offsetForPosition(const TextRun&, float targetX, bool includePartialGlyphs) const;
CharacterRange getCharacterRange(TextDirection, float totalWidth,
unsigned from, unsigned to) const;
Vector<CharacterRange> individualCharacterRanges(TextDirection,

Powered by Google App Engine
This is Rietveld 408576698