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

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

Issue 1223063005: Remove createNewDisplayList from RenderTransform and RenderInkWell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | sky/sdk/lib/widgets/ink_well.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:sky/base/debug.dart'; 8 import 'package:sky/base/debug.dart';
9 import 'package:sky/painting/box_painter.dart'; 9 import 'package:sky/painting/box_painter.dart';
10 import 'package:sky/rendering/object.dart'; 10 import 'package:sky/rendering/object.dart';
(...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 assert(size.width != null); 1281 assert(size.width != null);
1282 assert(size.height != null); 1282 assert(size.height != null);
1283 _painter.paint(canvas, offset & size); 1283 _painter.paint(canvas, offset & size);
1284 super.paint(canvas, offset); 1284 super.paint(canvas, offset);
1285 } 1285 }
1286 1286
1287 String debugDescribeSettings(String prefix) => '${super.debugDescribeSettings( prefix)}${prefix}decoration:\n${_painter.decoration.toString(prefix + " ")}\n'; 1287 String debugDescribeSettings(String prefix) => '${super.debugDescribeSettings( prefix)}${prefix}decoration:\n${_painter.decoration.toString(prefix + " ")}\n';
1288 } 1288 }
1289 1289
1290 class RenderTransform extends RenderProxyBox { 1290 class RenderTransform extends RenderProxyBox {
1291 bool get createNewDisplayList => true;
1292
1293 RenderTransform({ 1291 RenderTransform({
1294 Matrix4 transform, 1292 Matrix4 transform,
1295 RenderBox child 1293 RenderBox child
1296 }) : super(child) { 1294 }) : super(child) {
1297 assert(transform != null); 1295 assert(transform != null);
1298 this.transform = transform; 1296 this.transform = transform;
1299 } 1297 }
1300 1298
1301 Matrix4 _transform; 1299 Matrix4 _transform;
1302 1300
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 1566
1569 void defaultPaint(PaintingCanvas canvas, Offset offset) { 1567 void defaultPaint(PaintingCanvas canvas, Offset offset) {
1570 RenderBox child = firstChild; 1568 RenderBox child = firstChild;
1571 while (child != null) { 1569 while (child != null) {
1572 assert(child.parentData is ParentDataType); 1570 assert(child.parentData is ParentDataType);
1573 canvas.paintChild(child, child.parentData.position + offset); 1571 canvas.paintChild(child, child.parentData.position + offset);
1574 child = child.parentData.nextSibling; 1572 child = child.parentData.nextSibling;
1575 } 1573 }
1576 } 1574 }
1577 } 1575 }
OLDNEW
« no previous file with comments | « no previous file | sky/sdk/lib/widgets/ink_well.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698