зеркало из https://github.com/mozilla/gecko-dev.git
Bug 729145. Don't ignore curves when we don't have a current point. r=mwoodrow
This was a copy & paste typo and is caught by http://philip.html5.org/tests/canvas/suite/tests/2d.path.quadraticCurveTo.ensuresubpath.2.html which is not in our test suite. --HG-- extra : rebase_source : dc77d4bfa4da0d79e97da1e10e72bbd77223e8fa
This commit is contained in:
Родитель
aba5af153e
Коммит
e0272b3ff7
|
@ -71,8 +71,7 @@ PathBuilderCG::BezierTo(const Point &aCP1,
|
||||||
|
|
||||||
if (CGPathIsEmpty(mCGPath))
|
if (CGPathIsEmpty(mCGPath))
|
||||||
MoveTo(aCP1);
|
MoveTo(aCP1);
|
||||||
else
|
CGPathAddCurveToPoint(mCGPath, NULL,
|
||||||
CGPathAddCurveToPoint(mCGPath, NULL,
|
|
||||||
aCP1.x, aCP1.y,
|
aCP1.x, aCP1.y,
|
||||||
aCP2.x, aCP2.y,
|
aCP2.x, aCP2.y,
|
||||||
aCP3.x, aCP3.y);
|
aCP3.x, aCP3.y);
|
||||||
|
@ -85,8 +84,7 @@ PathBuilderCG::QuadraticBezierTo(const Point &aCP1,
|
||||||
{
|
{
|
||||||
if (CGPathIsEmpty(mCGPath))
|
if (CGPathIsEmpty(mCGPath))
|
||||||
MoveTo(aCP1);
|
MoveTo(aCP1);
|
||||||
else
|
CGPathAddQuadCurveToPoint(mCGPath, NULL,
|
||||||
CGPathAddQuadCurveToPoint(mCGPath, NULL,
|
|
||||||
aCP1.x, aCP1.y,
|
aCP1.x, aCP1.y,
|
||||||
aCP2.x, aCP2.y);
|
aCP2.x, aCP2.y);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче