Index: Source/core/rendering/InlineTextBox.h |
diff --git a/Source/core/rendering/InlineTextBox.h b/Source/core/rendering/InlineTextBox.h |
index fd6198cbadc6ce7c43172fb1d5e7a1a36d617b38..fc25c1bc3454849af1156c5402193d425e7ff56e 100644 |
--- a/Source/core/rendering/InlineTextBox.h |
+++ b/Source/core/rendering/InlineTextBox.h |
@@ -159,6 +159,9 @@ public: |
bool containsCaretOffset(int offset) const; // false for offset after line break |
+ // Fills a vector with the pixel width of each character. |
+ void characterWidths(Vector<float>&) const; |
+ |
private: |
InlineTextBox* m_prevTextBox; // The previous box that also uses our RenderObject |
InlineTextBox* m_nextTextBox; // The next box that also uses our RenderObject |