Clean up interface to Font::expansionOpportunityCount()
[WebKit-https.git] / Source / WebCore / rendering / RenderText.cpp
index 39012f2d3bf2ae7fc9040db4b7e53ba4312393e8..fc75302ba8427c98302364183a4431c93dc2c0cd 100644 (file)
@@ -1525,4 +1525,11 @@ void RenderText::momentarilyRevealLastTypedCharacter(unsigned lastTypedCharacter
     secureTextTimer->restartWithNewText(lastTypedCharacterOffset);
 }
 
+StringView RenderText::stringView(int start, int stop) const
+{
+    if (is8Bit())
+        return StringView(characters8() + start, stop - start);
+    return StringView(characters16() + start, stop - start);
+}
+
 } // namespace WebCore