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

Side by Side Diff: sky/tests/resources/dom-serializer.sky

Issue 980423002: Organize sky/framework a bit (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « sky/framework/view-configuration.dart ('k') | sky/tests/resources/dump-as-markup.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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', '&nbsp;'], 10 ['\u00a0', '&nbsp;'],
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
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>
OLDNEW
« no previous file with comments | « sky/framework/view-configuration.dart ('k') | sky/tests/resources/dump-as-markup.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698