diff options
author | Ben Murdoch <benm@google.com> | 2011-05-24 11:24:40 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-06-02 09:53:15 +0100 |
commit | 81bc750723a18f21cd17d1b173cd2a4dda9cea6e (patch) | |
tree | 7a9e5ed86ff429fd347a25153107221543909b19 /Source/WebCore/platform/graphics/wx | |
parent | 94088a6d336c1dd80a1e734af51e96abcbb689a7 (diff) | |
download | external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.zip external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.gz external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.bz2 |
Merge WebKit at r80534: Intial merge by Git
Change-Id: Ia7a83357124c9e1cdb1debf55d9661ec0bd09a61
Diffstat (limited to 'Source/WebCore/platform/graphics/wx')
-rw-r--r-- | Source/WebCore/platform/graphics/wx/FontWx.cpp | 2 | ||||
-rw-r--r-- | Source/WebCore/platform/graphics/wx/GraphicsContextWx.cpp | 19 |
2 files changed, 17 insertions, 4 deletions
diff --git a/Source/WebCore/platform/graphics/wx/FontWx.cpp b/Source/WebCore/platform/graphics/wx/FontWx.cpp index c48f3c7..782d328 100644 --- a/Source/WebCore/platform/graphics/wx/FontWx.cpp +++ b/Source/WebCore/platform/graphics/wx/FontWx.cpp @@ -139,7 +139,7 @@ void Font::drawComplexText(GraphicsContext* context, const TextRun& run, const F controller.advance(run.length()); startX += controller.runWidthSoFar() - afterWidth; #else - startX += controller.totalWidth() + controller.finalRoundingWidth() - afterWidth; + startX += controller.totalWidth() - afterWidth; for (int i = 0, end = glyphBuffer.size() - 1; i < glyphBuffer.size() / 2; ++i, --end) glyphBuffer.swap(i, end); #endif diff --git a/Source/WebCore/platform/graphics/wx/GraphicsContextWx.cpp b/Source/WebCore/platform/graphics/wx/GraphicsContextWx.cpp index 991be79..47f3211 100644 --- a/Source/WebCore/platform/graphics/wx/GraphicsContextWx.cpp +++ b/Source/WebCore/platform/graphics/wx/GraphicsContextWx.cpp @@ -336,17 +336,17 @@ void GraphicsContext::clipPath(const Path&, WindRule) notImplemented(); } -void GraphicsContext::drawLineForText(const IntPoint& origin, int width, bool printing) +void GraphicsContext::drawLineForText(const FloatPoint& origin, float width, bool printing) { if (paintingDisabled()) return; - IntPoint endPoint = origin + IntSize(width, 0); + FloatPoint endPoint = origin + FloatSize(width, 0); m_data->context->SetPen(wxPen(strokeColor(), strokeThickness(), wxSOLID)); m_data->context->DrawLine(origin.x(), origin.y(), endPoint.x(), endPoint.y()); } -void GraphicsContext::drawLineForTextChecking(const IntPoint& origin, int width, TextCheckingLineStyle style) +void GraphicsContext::drawLineForTextChecking(const FloatPoint& origin, float width, TextCheckingLineStyle style) { switch (style) { case TextCheckingSpellingLineStyle: @@ -494,6 +494,19 @@ void GraphicsContext::concatCTM(const AffineTransform& transform) return; } +void GraphicsContext::setCTM(const AffineTransform& transform) +{ + if (paintingDisabled()) + return; + +#if USE(WXGC) + wxGraphicsContext* gc = m_data->context->GetGraphicsContext(); + if (gc) + gc->SetTransform(transform); +#endif + return; +} + void GraphicsContext::setPlatformShouldAntialias(bool enable) { if (paintingDisabled()) |