Bug 904884 - Assign RAII class instances to variables in PathCario so that they stay alive for the correct scope. r=nrc

This commit is contained in:
Matt Woodrow 2013-08-21 11:55:53 +12:00
Родитель 917d54f3b7
Коммит 697797fc7b
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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;