Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2224)

Side by Side Diff: sky/sdk/lib/rendering/box.dart

Issue 1190223002: Make the skyanalyzer check the stocks app during testing. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | sky/tools/webkitpy/layout_tests/port/base.py » ('j') | sky/tools/webkitpy/layout_tests/run_webkit_tests.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698