Commit 1aa2751b authored by Ian Hickson's avatar Ian Hickson

Trivial whitespace fixes.

parent 4e329a67
...@@ -147,7 +147,7 @@ class TestParticleSystem { ...@@ -147,7 +147,7 @@ class TestParticleSystem {
_emitCounter += dt; _emitCounter += dt;
} }
while(_particles.length < maxParticles while (_particles.length < maxParticles
&& _emitCounter > rate && _emitCounter > rate
&& (numParticlesToEmit == 0 || _numEmittedParticles < numParticlesToEmit)) { && (numParticlesToEmit == 0 || _numEmittedParticles < numParticlesToEmit)) {
// Add a new particle // Add a new particle
......
...@@ -29,7 +29,7 @@ class IndexedStackDemoState extends State<IndexedStackDemo> { ...@@ -29,7 +29,7 @@ class IndexedStackDemoState extends State<IndexedStackDemo> {
} }
Widget build(BuildContext context) { Widget build(BuildContext context) {
List <PopupMenuItem> items = _buildMenu(); List<PopupMenuItem> items = _buildMenu();
IndexedStack indexedStack = new IndexedStack(items, index: _itemIndex, alignment: const FractionalOffset(0.5, 0.0)); IndexedStack indexedStack = new IndexedStack(items, index: _itemIndex, alignment: const FractionalOffset(0.5, 0.0));
return new Scaffold( return new Scaffold(
......
...@@ -592,7 +592,7 @@ abstract class RenderBox extends RenderObject { ...@@ -592,7 +592,7 @@ abstract class RenderBox extends RenderObject {
assert(attached); assert(attached);
Matrix4 transform = new Matrix4.identity(); Matrix4 transform = new Matrix4.identity();
RenderObject renderer = this; RenderObject renderer = this;
while(renderer != null) { while (renderer != null) {
renderer.applyPaintTransform(transform); renderer.applyPaintTransform(transform);
renderer = renderer.parent; renderer = renderer.parent;
} }
...@@ -604,7 +604,7 @@ abstract class RenderBox extends RenderObject { ...@@ -604,7 +604,7 @@ abstract class RenderBox extends RenderObject {
/// Convert the given point from the local coordiante system for this box to /// Convert the given point from the local coordiante system for this box to
/// the global coordinate sytem /// the global coordinate sytem
Point localToGlobal(Point point) { Point localToGlobal(Point point) {
List <RenderObject> renderers = <RenderObject>[]; List<RenderObject> renderers = <RenderObject>[];
for (RenderObject renderer = this; renderer != null; renderer = renderer.parent) for (RenderObject renderer = this; renderer != null; renderer = renderer.parent)
renderers.add(renderer); renderers.add(renderer);
Matrix4 transform = new Matrix4.identity(); Matrix4 transform = new Matrix4.identity();
......
...@@ -614,7 +614,7 @@ abstract class RenderObject extends AbstractNode implements HitTestTarget { ...@@ -614,7 +614,7 @@ abstract class RenderObject extends AbstractNode implements HitTestTarget {
_debugDoingLayout = true; _debugDoingLayout = true;
try { try {
// TODO(ianh): assert that we're not allowing previously dirty nodes to redirty themeselves // TODO(ianh): assert that we're not allowing previously dirty nodes to redirty themeselves
while(_nodesNeedingLayout.isNotEmpty) { while (_nodesNeedingLayout.isNotEmpty) {
List<RenderObject> dirtyNodes = _nodesNeedingLayout; List<RenderObject> dirtyNodes = _nodesNeedingLayout;
_nodesNeedingLayout = new List<RenderObject>(); _nodesNeedingLayout = new List<RenderObject>();
dirtyNodes..sort((RenderObject a, RenderObject b) => a.depth - b.depth)..forEach((RenderObject node) { dirtyNodes..sort((RenderObject a, RenderObject b) => a.depth - b.depth)..forEach((RenderObject node) {
......
...@@ -51,7 +51,7 @@ class WidgetTester { ...@@ -51,7 +51,7 @@ class WidgetTester {
if (layer is ContainerLayer) { if (layer is ContainerLayer) {
ContainerLayer root = layer; ContainerLayer root = layer;
Layer child = root.firstChild; Layer child = root.firstChild;
while(child != null) { while (child != null) {
result.addAll(_layers(child)); result.addAll(_layers(child));
child = child.nextSibling; child = child.nextSibling;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment