summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-16 11:26:52 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-16 11:26:52 +0000
commite1e4ed6aa119d02012caab29a32b4c32e5fbe36b (patch)
treeed22d761897bcef60b8c4a3a29d01fca0da78637 /skia
parent0d2c1bd7af3bb29389ec571df2276f8ed34fd6e3 (diff)
downloadchromium_src-e1e4ed6aa119d02012caab29a32b4c32e5fbe36b.zip
chromium_src-e1e4ed6aa119d02012caab29a32b4c32e5fbe36b.tar.gz
chromium_src-e1e4ed6aa119d02012caab29a32b4c32e5fbe36b.tar.bz2
Fix 3D-CSS transform printing - proxy device origin.
Depends on Skia r2108,2116 BUG=82746 TEST=print http://www.webkit.org/blog-files/3d-transforms/poster-circle.html Review URL: http://codereview.chromium.org/7620016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96920 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/vector_platform_device_skia.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/skia/ext/vector_platform_device_skia.cc b/skia/ext/vector_platform_device_skia.cc
index dbc5843..bda7a60 100644
--- a/skia/ext/vector_platform_device_skia.cc
+++ b/skia/ext/vector_platform_device_skia.cc
@@ -186,6 +186,8 @@ void VectorPlatformDeviceSkia::drawDevice(const SkDraw& draw,
// to unwrap the embedded SkPDFDevice.
VectorPlatformDeviceSkia* vector_device =
static_cast<VectorPlatformDeviceSkia*>(device);
+ vector_device->pdf_device_->setOrigin(vector_device->getOrigin().fX,
+ vector_device->getOrigin().fY);
real_device = vector_device->pdf_device_.get();
}
pdf_device_->drawDevice(draw, real_device, x, y, paint);