diff options
author | Steve Block <steveblock@google.com> | 2011-01-05 12:15:11 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-01-06 14:14:00 +0000 |
commit | d06194330da2bb8da887d2e1adeacb3a5c1504b2 (patch) | |
tree | e0af8413af65a8e30630563441af7bdb8478e513 /WebCore/platform/graphics/wx/GraphicsContextWx.cpp | |
parent | 419a5cf2f8db6ca014df624865197ffb82caad37 (diff) | |
download | external_webkit-d06194330da2bb8da887d2e1adeacb3a5c1504b2.zip external_webkit-d06194330da2bb8da887d2e1adeacb3a5c1504b2.tar.gz external_webkit-d06194330da2bb8da887d2e1adeacb3a5c1504b2.tar.bz2 |
Merge WebKit at r72805: Initial merge by Git
Note that this is a backwards merge from Chromium release 9.0.600.0
to 9.0.597.0, to align with the Chromium 9 stable release branch.
Change-Id: I5d2bb4e8cee9d39ae8485abf48bdb55ecf8b3790
Diffstat (limited to 'WebCore/platform/graphics/wx/GraphicsContextWx.cpp')
-rw-r--r-- | WebCore/platform/graphics/wx/GraphicsContextWx.cpp | 20 |
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()) |