Reviewed by Hyatt. Landed by Maciej.
Adding setPlatformPen/setPlatformFont/setPlatformFillColor
to graphics context to be able to set consistant state
on the platform specific painter without having to change
fill/stroke/font on every operation. This fixes color/stroke/fill
and font handling in the Qt port.
* platform/graphics/GraphicsContext.cpp:
(WebCore::GraphicsContext::setFont):
(WebCore::GraphicsContext::setPen):
(WebCore::GraphicsContext::setFillColor):
(WebCore::GraphicsContext::setPlatformPen):
(WebCore::GraphicsContext::setPlatformFillColor):
(WebCore::GraphicsContext::setPlatformFont):
* platform/graphics/GraphicsContext.h:
* platform/qt/GraphicsContextQt.cpp:
(WebCore::toQtCompositionMode):
(WebCore::toQtLineCap):
(WebCore::toQtLineJoin):
(WebCore::toQPenStyle):
(WebCore::penToQPen):
(WebCore::TransparencyLayer::TransparencyLayer):
(WebCore::GraphicsContext::addRoundedRectClip):
(WebCore::GraphicsContext::setPlatformFont):
(WebCore::GraphicsContext::setPlatformPen):
(WebCore::GraphicsContext::setPlatformFillColor):
* platform/qt/ScrollViewCanvasQt.cpp:
(WebCore::ScrollViewCanvasQt::ScrollViewCanvasQt):
(WebCore::ScrollViewCanvasQt::paintEvent):
(WebCore::ScrollViewCanvasQt::handleKeyEvent):
* platform/qt/ScrollViewCanvasQt.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17563
268f45cc-cd09-0410-ab3c-
d52691b4dbfc