summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/wx/GraphicsContextWx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/wx/GraphicsContextWx.cpp')
-rw-r--r--WebCore/platform/graphics/wx/GraphicsContextWx.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/WebCore/platform/graphics/wx/GraphicsContextWx.cpp b/WebCore/platform/graphics/wx/GraphicsContextWx.cpp
index ba96352..5007ffe 100644
--- a/WebCore/platform/graphics/wx/GraphicsContextWx.cpp
+++ b/WebCore/platform/graphics/wx/GraphicsContextWx.cpp
@@ -337,7 +337,7 @@ void GraphicsContext::clipOut(const IntRect&)
notImplemented();
}
-void GraphicsContext::clipPath(const Path&, WindRule)
+void GraphicsContext::clipPath(WindRule)
{
notImplemented();
}
@@ -533,32 +533,30 @@ InterpolationQuality GraphicsContext::imageInterpolationQuality() const
return InterpolationDefault;
}
-void GraphicsContext::fillPath(const Path& path)
+void GraphicsContext::fillPath()
{
#if USE(WXGC)
- // FIXME: Be smarter about this.
- beginPath();
- addPath(path);
-
wxGraphicsContext* gc = m_data->context->GetGraphicsContext();
if (gc)
gc->FillPath(m_data->currentPath);
#endif
}
-void GraphicsContext::strokePath(const Path& path)
+void GraphicsContext::strokePath()
{
#if USE(WXGC)
- // FIXME: Be smarter about this.
- beginPath();
- addPath(path);
-
wxGraphicsContext* gc = m_data->context->GetGraphicsContext();
if (gc)
gc->StrokePath(m_data->currentPath);
#endif
}
+void GraphicsContext::drawPath()
+{
+ fillPath();
+ strokePath();
+}
+
void GraphicsContext::fillRect(const FloatRect& rect)
{
if (paintingDisabled())