[Qt] GraphicsContext: Clean up Qt/WebCore type conversion functions
authorreni@webkit.org <reni@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Nov 2010 15:21:31 +0000 (15:21 +0000)
committerreni@webkit.org <reni@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Nov 2010 15:21:31 +0000 (15:21 +0000)
commit1a65d3fb0b537929298337c5e7a63e71f7dd8437
tree319bf8a536864b4febf5b5eab64b8fabd11851ce
parenteb3cdfd2d7821babd6b717fd665d92f4cf86847a
[Qt] GraphicsContext: Clean up Qt/WebCore type conversion functions
https://bugs.webkit.org/show_bug.cgi?id=49919

Reviewed by Andreas Kling.

Add ASSERT_NOT_REACHED() if the given WebCore type doesn't have an equivalent type in Qt.
Also change the return value of toQtLineJoin() from Qt::MiterJoin to the default Qt::SvgMiterJoin,
because the previous one doesn't work currently.

No new test is needed.

* platform/graphics/qt/GraphicsContextQt.cpp:
(WebCore::GraphicsContext::toQtCompositionMode):
(WebCore::toQtLineCap):
(WebCore::toQtLineJoin):
(WebCore::toQPenStyle):
(WebCore::toQtFillRule):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@72668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/graphics/qt/GraphicsContextQt.cpp