зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
917d54f3b7
Коммит
697797fc7b
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче