Index: Source/platform/fonts/shaping/HarfBuzzShaper.h |
diff --git a/Source/platform/fonts/shaping/HarfBuzzShaper.h b/Source/platform/fonts/shaping/HarfBuzzShaper.h |
index 29cf473532a06de38223598a42640adb35d974d3..36fb2973ffa8e76cdf2e081a3b062624afdf990f 100644 |
--- a/Source/platform/fonts/shaping/HarfBuzzShaper.h |
+++ b/Source/platform/fonts/shaping/HarfBuzzShaper.h |
@@ -62,10 +62,11 @@ public: |
float width() { return m_width; } |
FloatRect bounds() { return m_glyphBoundingBox; } |
- int offsetForPosition(float targetX); |
unsigned numCharacters() const { return m_numCharacters; } |
void fallbackFonts(HashSet<const SimpleFontData*>*) const; |
+ static int offsetForPosition(Vector<RefPtr<ShapeResult>>&, |
+ const TextRun&, float targetX); |
static float fillGlyphBuffer(Vector<RefPtr<ShapeResult>>&, |
GlyphBuffer*, const TextRun&, unsigned from, unsigned to); |
static float fillGlyphBufferForTextEmphasis(Vector<RefPtr<ShapeResult>>&, |
@@ -86,6 +87,7 @@ private: |
ShapeResult(const Font*, unsigned numCharacters, TextDirection); |
+ int offsetForPosition(float targetX); |
template<TextDirection> |
float fillGlyphBufferForRun(GlyphBuffer*, const RunInfo*, |
float initialAdvance, unsigned from, unsigned to, unsigned runOffset); |