Instead of swapping start and end positions, we should call 0-startPosition and endPosition-length drawText calls.
Created attachment 267068 [details] Patch
Comment on attachment 267068 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=267068&action=review > Source/WebCore/rendering/TextPainter.cpp:172 > // For stroked painting, we have to change the text drawing mode. It's probably dangerous to leave that mutated as a side Comment should probably go above the GraphicsContextStateSaver. > Source/WebCore/rendering/TextPainter.cpp:184 > // paint only the text that is selected Period makes it a sentence.
Committed r193891: <http://trac.webkit.org/changeset/193891>