text-decoration-skip: ink does not work with line wraps
[WebKit-https.git] / Source / WebCore / rendering / TextPainter.cpp
index d387fb3bbace9145b13e1026358ec4c58cb199ea..d5bbdb92db49103d8b72bc5f5fcfe02b5f406dc5 100644 (file)
@@ -103,7 +103,7 @@ void TextPainter::paintText()
     ASSERT(m_savedDrawingStateForMask.m_textPaintStyle);
     ASSERT(m_savedDrawingStateForMask.m_selectionPaintStyle);
     
-    FloatPoint boxOrigin = boxRect().location();
+    FloatPoint boxOrigin = m_boxRect.location();
 
     if (!m_paintSelectedTextOnly) {
         // For stroked painting, we have to change the text drawing mode. It's probably dangerous to leave that mutated as a side
@@ -176,4 +176,11 @@ void TextPainter::paintTextInContext(GraphicsContext& context, float amountToInc
     m_savedDrawingStateForMask = savedDrawingStateForMask;
 }
 
+#if ENABLE(CSS3_TEXT_DECORATION_SKIP_INK)
+DashArray TextPainter::dashesForIntersectionsWithRect(const FloatRect& lineExtents)
+{
+    return m_font.dashesForIntersectionsWithRect(m_textRun, m_textOrigin, lineExtents);
+}
+#endif
+
 } // namespace WebCore