From 98be889dd4fae67dbbdaa7d65a7113229e35529d Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Tue, 24 May 2011 20:00:38 +0100 Subject: Merge WebKit at r80534: Fix GraphicsContextAndroid.cpp Need to provide an Android implementation of new setCTM() function. See http://trac.webkit.org/changeset/78704 Change-Id: Iefd0225495bec6f4945f02660a450018e4270593 --- .../WebCore/platform/graphics/android/GraphicsContextAndroid.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Source') diff --git a/Source/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp b/Source/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp index 4656354..3e20a75 100644 --- a/Source/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp +++ b/Source/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp @@ -1195,6 +1195,14 @@ AffineTransform GraphicsContext::getCTM() const SkScalarToDouble(m.getTranslateY())); // f } +void GraphicsContext::setCTM(const AffineTransform& transform) +{ + if (paintingDisabled()) + return; + + GC2CANVAS(this)->setMatrix(transform); +} + /////////////////////////////////////////////////////////////////////////////// void GraphicsContext::fillPath(const Path& pathToFill) -- cgit v1.1