Index: third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBloberizer.h |
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBloberizer.h b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBloberizer.h |
index f86e2b730689e68ff8b267ebff2c26521d2f1e89..78348675ae8a2f4060392b6d1424956493ac130a 100644 |
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBloberizer.h |
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBloberizer.h |
@@ -39,6 +39,12 @@ class PLATFORM_EXPORT ShapeResultBloberizer { |
void FillTextEmphasisGlyphs(const TextRunPaintInfo&, |
const GlyphData& emphasis_data, |
const ShapeResultBuffer&); |
+ void FillTextEmphasisGlyphs(const StringView&, |
+ TextDirection, |
+ unsigned from, |
+ unsigned to, |
+ const GlyphData& emphasis_data, |
+ const ShapeResult*); |
void Add(Glyph glyph, const SimpleFontData* font_data, float h_offset) { |
// cannot mix x-only/xy offsets |
@@ -110,8 +116,13 @@ class PLATFORM_EXPORT ShapeResultBloberizer { |
float FillFastHorizontalGlyphs(const ShapeResultBuffer&, TextDirection); |
float FillFastHorizontalGlyphs(const ShapeResult*, float advance = 0); |
+ template <typename TextContainerType> |
float FillTextEmphasisGlyphsForRun(const ShapeResult::RunInfo*, |
- const TextRunPaintInfo&, |
+ const TextContainerType&, |
+ unsigned text_length, |
+ TextDirection, |
+ unsigned from, |
+ unsigned to, |
const GlyphData& emphasis_data, |
float initial_advance, |
unsigned run_offset); |