text-decoration-skip: ink does not work with line wraps
[WebKit-https.git] / Source / WebCore / platform / graphics / mac / FontMac.mm
index af6287f662dfa153f15482601b74ea446c84b258..eae3b074c384a97bf304f4265fc7944bfe93a490 100644 (file)
@@ -436,14 +436,14 @@ static void findPathIntersections(void* stateAsVoidPointer, const CGPathElement*
     state.currentPoint = point;
 }
 
-DashArray Font::dashesForIntersectionsWithRect(const TextRun& run, const FloatPoint& textOrigin, int textRunStartIndex, int textRunEndIndex, const FloatRect& lineExtents) const
+DashArray Font::dashesForIntersectionsWithRect(const TextRun& run, const FloatPoint& textOrigin, const FloatRect& lineExtents) const
 {
     float deltaX;
     GlyphBuffer glyphBuffer;
     if (codePath(run) != Complex)
-        deltaX = getGlyphsAndAdvancesForSimpleText(run, textRunStartIndex, textRunEndIndex, glyphBuffer);
+        deltaX = getGlyphsAndAdvancesForSimpleText(run, 0, run.length(), glyphBuffer);
     else
-        deltaX = getGlyphsAndAdvancesForComplexText(run, textRunStartIndex, textRunEndIndex, glyphBuffer);
+        deltaX = getGlyphsAndAdvancesForComplexText(run, 0, run.length(), glyphBuffer);
     CGAffineTransform translation = CGAffineTransformMakeTranslation(textOrigin.x() + deltaX, textOrigin.y());
     translation = CGAffineTransformScale(translation, 1, -1);
     DashArray result;