summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2016-08-06 19:25:36 +0300
committerKonstantin Tokarev <annulen@yandex.ru>2016-08-08 09:24:03 +0000
commit28010af899d96024c7336363687873144f4f2a82 (patch)
tree534eaf9ee7d1e657c8eb5fbc044350166c932a16
parentf010d89fa2e4aa463d3392c5f37fa22efd48e04e (diff)
downloadqtwebkit-28010af899d96024c7336363687873144f4f2a82.tar.gz
Dashed and dotted borders having radius have overlong dash lengths
WebKit assumes FlatCap as default, while Qt uses SquareCap. In case of dotted borders, they are rendered as solid, because gaps are completely filled by dash caps. Task-number: QTBUG-55171 QTBUG-55175 Change-Id: Ie18f3c9b9a92db55aa716792316d9b0e9263f223 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp b/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
index 65b93535a..b11e05d8b 100644
--- a/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
+++ b/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
@@ -356,6 +356,7 @@ void GraphicsContext::platformInit(PlatformGraphicsContext* painter)
QPen pen(painter->pen());
pen.setColor(strokeColor());
pen.setJoinStyle(toQtLineJoin(MiterJoin));
+ pen.setCapStyle(Qt::FlatCap);
painter->setPen(pen);
}