зеркало из 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,7 +71,6 @@ PathBuilderCG::BezierTo(const Point &aCP1,
|
|||
|
||||
if (CGPathIsEmpty(mCGPath))
|
||||
MoveTo(aCP1);
|
||||
else
|
||||
CGPathAddCurveToPoint(mCGPath, NULL,
|
||||
aCP1.x, aCP1.y,
|
||||
aCP2.x, aCP2.y,
|
||||
|
@ -85,7 +84,6 @@ PathBuilderCG::QuadraticBezierTo(const Point &aCP1,
|
|||
{
|
||||
if (CGPathIsEmpty(mCGPath))
|
||||
MoveTo(aCP1);
|
||||
else
|
||||
CGPathAddQuadCurveToPoint(mCGPath, NULL,
|
||||
aCP1.x, aCP1.y,
|
||||
aCP2.x, aCP2.y);
|
||||
|
|
Загрузка…
Ссылка в новой задаче