OLD | NEW |
1 library layout; | 1 library layout; |
2 | 2 |
3 import 'node.dart'; | 3 import 'node.dart'; |
4 import 'dart:sky' as sky; | 4 import 'dart:sky' as sky; |
5 import 'dart:collection'; | 5 import 'dart:collection'; |
6 | 6 |
7 // UTILS | 7 // UTILS |
8 | 8 |
9 // Bridge to legacy CSS-like style specification | 9 // Bridge to legacy CSS-like style specification |
10 // Eventually we'll replace this with something else | 10 // Eventually we'll replace this with something else |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 print(prefix + node.toString() + _attributes(node)); | 551 print(prefix + node.toString() + _attributes(node)); |
552 var children = node.getChildNodes(); | 552 var children = node.getChildNodes(); |
553 prefix = prefix + ' '; | 553 prefix = prefix + ' '; |
554 for (var child in children) | 554 for (var child in children) |
555 _serialiseDOM(child, prefix); | 555 _serialiseDOM(child, prefix); |
556 } | 556 } |
557 | 557 |
558 void dumpState() { | 558 void dumpState() { |
559 _serialiseDOM(sky.document); | 559 _serialiseDOM(sky.document); |
560 } | 560 } |
OLD | NEW |