Bug 1103620 - Remove gfxContext::CurveTo and gfxContext::QuadraticCurveTo. r=mattwoodrow

This commit is contained in:
Jonathan Watt 2014-11-19 08:05:14 +00:00
Родитель 4e948afe75
Коммит 20d92be1bc
2 изменённых файлов: 0 добавлений и 24 удалений

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

@ -264,20 +264,6 @@ gfxContext::LineTo(const gfxPoint& pt)
mPathBuilder->LineTo(ToPoint(pt));
}
void
gfxContext::CurveTo(const gfxPoint& pt1, const gfxPoint& pt2, const gfxPoint& pt3)
{
EnsurePathBuilder();
mPathBuilder->BezierTo(ToPoint(pt1), ToPoint(pt2), ToPoint(pt3));
}
void
gfxContext::QuadraticCurveTo(const gfxPoint& pt1, const gfxPoint& pt2)
{
EnsurePathBuilder();
mPathBuilder->QuadraticBezierTo(ToPoint(pt1), ToPoint(pt2));
}
void
gfxContext::Line(const gfxPoint& start, const gfxPoint& end)
{

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

@ -156,16 +156,6 @@ public:
*/
void LineTo(const gfxPoint& pt);
/**
* Draws a cubic Bézier curve with control points pt1, pt2 and pt3.
*/
void CurveTo(const gfxPoint& pt1, const gfxPoint& pt2, const gfxPoint& pt3);
/**
* Draws a quadratic Bézier curve with control points pt1, pt2 and pt3.
*/
void QuadraticCurveTo(const gfxPoint& pt1, const gfxPoint& pt2);
// path helpers
/**
* Draws a line from start to end.