This patch makes drawHighlightForText a completely cross-platform method
[WebKit-https.git] / WebCore / platform / GraphicsContext.cpp
index aa2e65d..7c080a4 100644 (file)
@@ -207,7 +207,7 @@ void GraphicsContext::drawHighlightForText(const TextRun& run, const IntPoint& p
     if (paintingDisabled())
         return;
 
-    return font().drawHighlightForText(this, run, point, h, tabWidth, xpos, toAdd, d, visuallyOrdered, backgroundColor);
+    fillRect(font().selectionRectForText(run, point, h, tabWidth, xpos, toAdd, d == RTL, visuallyOrdered), backgroundColor);
 }
 
 void GraphicsContext::drawLineForText(const IntPoint& point, int yOffset, int width)