From 697797fc7bab4d2fbbd58299f3f0cf6303cb5a20 Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Wed, 21 Aug 2013 11:55:53 +1200 Subject: [PATCH] Bug 904884 - Assign RAII class instances to variables in PathCario so that they stay alive for the correct scope. r=nrc --- gfx/2d/PathCairo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gfx/2d/PathCairo.cpp b/gfx/2d/PathCairo.cpp index c2c370b56a89..a6417cb1b531 100644 --- a/gfx/2d/PathCairo.cpp +++ b/gfx/2d/PathCairo.cpp @@ -252,7 +252,7 @@ PathCairo::TransformedCopyToBuilder(const Matrix &aTransform, FillRule aFillRule bool PathCairo::ContainsPoint(const Point &aPoint, const Matrix &aTransform) const { - CairoTempMatrix(*mPathContext, mTransform); + CairoTempMatrix temp(*mPathContext, mTransform); Matrix inverse = aTransform; inverse.Invert(); @@ -268,7 +268,7 @@ PathCairo::StrokeContainsPoint(const StrokeOptions &aStrokeOptions, const Point &aPoint, const Matrix &aTransform) const { - CairoTempMatrix(*mPathContext, mTransform); + CairoTempMatrix temp(*mPathContext, mTransform); Matrix inverse = aTransform; inverse.Invert(); @@ -281,7 +281,7 @@ PathCairo::StrokeContainsPoint(const StrokeOptions &aStrokeOptions, Rect PathCairo::GetBounds(const Matrix &aTransform) const { - CairoTempMatrix(*mPathContext, mTransform); + CairoTempMatrix temp(*mPathContext, mTransform); double x1, y1, x2, y2; @@ -294,7 +294,7 @@ Rect PathCairo::GetStrokedBounds(const StrokeOptions &aStrokeOptions, const Matrix &aTransform) const { - CairoTempMatrix(*mPathContext, mTransform); + CairoTempMatrix temp(*mPathContext, mTransform); double x1, y1, x2, y2;