| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:math' as math; | 5 import 'dart:math' as math; |
| 6 import 'dart:sky' as sky; | 6 import 'dart:sky' as sky; |
| 7 | 7 |
| 8 import 'package:vector_math/vector_math.dart'; | 8 import 'package:vector_math/vector_math.dart'; |
| 9 | 9 |
| 10 import '../base/debug.dart'; | 10 import '../base/debug.dart'; |
| (...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1004 | 1004 |
| 1005 ViewConstraints _rootConstraints; | 1005 ViewConstraints _rootConstraints; |
| 1006 ViewConstraints get rootConstraints => _rootConstraints; | 1006 ViewConstraints get rootConstraints => _rootConstraints; |
| 1007 void set rootConstraints(ViewConstraints value) { | 1007 void set rootConstraints(ViewConstraints value) { |
| 1008 if (_rootConstraints == value) | 1008 if (_rootConstraints == value) |
| 1009 return; | 1009 return; |
| 1010 _rootConstraints = value; | 1010 _rootConstraints = value; |
| 1011 markNeedsLayout(); | 1011 markNeedsLayout(); |
| 1012 } | 1012 } |
| 1013 | 1013 |
| 1014 void performResize() { |
| 1015 assert(false); |
| 1016 } |
| 1017 |
| 1014 void performLayout() { | 1018 void performLayout() { |
| 1015 if (_rootConstraints.orientation != _orientation) { | 1019 if (_rootConstraints.orientation != _orientation) { |
| 1016 if (_orientation != null && child != null) | 1020 if (_orientation != null && child != null) |
| 1017 child.rotate(oldAngle: _orientation, newAngle: _rootConstraints.orientat
ion, time: timeForRotation); | 1021 child.rotate(oldAngle: _orientation, newAngle: _rootConstraints.orientat
ion, time: timeForRotation); |
| 1018 _orientation = _rootConstraints.orientation; | 1022 _orientation = _rootConstraints.orientation; |
| 1019 } | 1023 } |
| 1020 _size = new Size(_rootConstraints.width, _rootConstraints.height); | 1024 _size = new Size(_rootConstraints.width, _rootConstraints.height); |
| 1021 assert(_size.height < double.INFINITY); | 1025 assert(_size.height < double.INFINITY); |
| 1022 assert(_size.width < double.INFINITY); | 1026 assert(_size.width < double.INFINITY); |
| 1023 | 1027 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1077 | 1081 |
| 1078 void defaultPaint(RenderObjectDisplayList canvas) { | 1082 void defaultPaint(RenderObjectDisplayList canvas) { |
| 1079 RenderBox child = firstChild; | 1083 RenderBox child = firstChild; |
| 1080 while (child != null) { | 1084 while (child != null) { |
| 1081 assert(child.parentData is ParentDataType); | 1085 assert(child.parentData is ParentDataType); |
| 1082 canvas.paintChild(child, child.parentData.position); | 1086 canvas.paintChild(child, child.parentData.position); |
| 1083 child = child.parentData.nextSibling; | 1087 child = child.parentData.nextSibling; |
| 1084 } | 1088 } |
| 1085 } | 1089 } |
| 1086 } | 1090 } |
| OLD | NEW |