| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 // Copyright 2015 The Chromium Authors. All rights reserved. | 2 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 <script> | 6 <script> |
| 7 import "dart:sky"; | 7 import "dart:sky"; |
| 8 | 8 |
| 9 final kEntityMap = new Map.fromIterable([ | 9 final kEntityMap = new Map.fromIterable([ |
| 10 ['\u00a0', ' '], | 10 ['\u00a0', ' '], |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 String serializeNode(Node node, [int depth = 0]) { | 90 String serializeNode(Node node, [int depth = 0]) { |
| 91 if (node is Text) | 91 if (node is Text) |
| 92 return serializeText(node); | 92 return serializeText(node); |
| 93 if (node is Element) | 93 if (node is Element) |
| 94 return serializeElement(node, depth); | 94 return serializeElement(node, depth); |
| 95 if (node is Document || node is ShadowRoot) | 95 if (node is Document || node is ShadowRoot) |
| 96 return serializeChildren(node, depth); | 96 return serializeChildren(node, depth); |
| 97 throw new Error('Cannot serialize node'); | 97 throw new Error('Cannot serialize node'); |
| 98 } | 98 } |
| 99 </script> | 99 </script> |
| OLD | NEW |