Add Point.origin for new Point(0.0, 0.0)

R=eseidel@chromium.org, ianh@google.com

Review URL: https://codereview.chromium.org/1166183002
This commit is contained in:
Adam Barth 2015-06-08 13:36:52 -07:00
parent 81e8e2b564
commit 824bc31626

View File

@ -257,7 +257,7 @@ class RenderSectorRing extends RenderSectorWithChildren {
RenderSector child = firstChild;
while (child != null) {
assert(child.parentData is SectorChildListParentData);
canvas.paintChild(child, new Point(0.0, 0.0));
canvas.paintChild(child, Point.origin);
child = child.parentData.nextSibling;
}
}
@ -362,7 +362,7 @@ class RenderSectorSlice extends RenderSectorWithChildren {
RenderSector child = firstChild;
while (child != null) {
assert(child.parentData is SectorChildListParentData);
canvas.paintChild(child, new Point(0.0, 0.0));
canvas.paintChild(child, Point.origin);
child = child.parentData.nextSibling;
}
}