mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
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:
parent
81e8e2b564
commit
824bc31626
@ -257,7 +257,7 @@ class RenderSectorRing extends RenderSectorWithChildren {
|
|||||||
RenderSector child = firstChild;
|
RenderSector child = firstChild;
|
||||||
while (child != null) {
|
while (child != null) {
|
||||||
assert(child.parentData is SectorChildListParentData);
|
assert(child.parentData is SectorChildListParentData);
|
||||||
canvas.paintChild(child, new Point(0.0, 0.0));
|
canvas.paintChild(child, Point.origin);
|
||||||
child = child.parentData.nextSibling;
|
child = child.parentData.nextSibling;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -362,7 +362,7 @@ class RenderSectorSlice extends RenderSectorWithChildren {
|
|||||||
RenderSector child = firstChild;
|
RenderSector child = firstChild;
|
||||||
while (child != null) {
|
while (child != null) {
|
||||||
assert(child.parentData is SectorChildListParentData);
|
assert(child.parentData is SectorChildListParentData);
|
||||||
canvas.paintChild(child, new Point(0.0, 0.0));
|
canvas.paintChild(child, Point.origin);
|
||||||
child = child.parentData.nextSibling;
|
child = child.parentData.nextSibling;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user