Bug 916034 - Return the current surface from GetCairo when backed with a DrawTargetCairo. r=jrmuizel

This commit is contained in:
Matt Woodrow 2013-09-13 21:06:54 +12:00
parent 55fa4d501c
commit a9bc091490

View File

@ -196,7 +196,7 @@ gfxContext::GetCairo()
if (mDT->GetType() == BACKEND_CAIRO) {
cairo_t *ctx =
(cairo_t*)mOriginalDT->GetNativeSurface(NATIVE_SURFACE_CAIRO_CONTEXT);
(cairo_t*)mDT->GetNativeSurface(NATIVE_SURFACE_CAIRO_CONTEXT);
if (ctx) {
return ctx;
}