зеркало из https://github.com/mozilla/gecko-dev.git
Bug 879659 - Followup for unused variable error.
This commit is contained in:
Родитель
5e681ec894
Коммит
a1c5d8d92b
|
@ -46,8 +46,6 @@ SVGPolygonElement::GetMarkPoints(nsTArray<nsSVGMark> *aMarks)
|
||||||
|
|
||||||
nsSVGMark *endMark = &aMarks->LastElement();
|
nsSVGMark *endMark = &aMarks->LastElement();
|
||||||
nsSVGMark *startMark = &aMarks->ElementAt(0);
|
nsSVGMark *startMark = &aMarks->ElementAt(0);
|
||||||
gfxFloat xmid = (startMark->x + endMark->x) / 2;
|
|
||||||
gfxFloat ymid = (startMark->y + endMark->y) / 2;
|
|
||||||
float angle = atan2(startMark->y - endMark->y, startMark->x - endMark->x);
|
float angle = atan2(startMark->y - endMark->y, startMark->x - endMark->x);
|
||||||
|
|
||||||
endMark->angle = SVGContentUtils::AngleBisect(angle, endMark->angle);
|
endMark->angle = SVGContentUtils::AngleBisect(angle, endMark->angle);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче