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

Unified Diff: sky/benchmarks/layout/simple-blocks.sky

Issue 879733002: Replace createTextNode with new Text(). (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/benchmarks/dom/creation.sky ('k') | sky/engine/core/dom/Document.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/benchmarks/layout/simple-blocks.sky
diff --git a/sky/benchmarks/layout/simple-blocks.sky b/sky/benchmarks/layout/simple-blocks.sky
index 094f763b10376d9baa4926403d94fa77be1db1c5..61657b241628519ce86f2301d2b94b4eadec412f 100644
--- a/sky/benchmarks/layout/simple-blocks.sky
+++ b/sky/benchmarks/layout/simple-blocks.sky
@@ -15,9 +15,9 @@ var content = document.getElementById('content');
var out = [];
for (var i = 0; i < 1000; i++) {
var div = document.createElement('div');
- div.appendChild(document.createElement('span')).appendChild(document.createTextNode('foo'));
- div.appendChild(document.createTextNode(' '));
- div.appendChild(document.createElement('span')).appendChild(document.createTextNode('bar'));
+ div.appendChild(document.createElement('span')).appendChild(new Text('foo'));
+ div.appendChild(new Text(' '));
+ div.appendChild(document.createElement('span')).appendChild(new Text('bar'));
content.appendChild(div);
}
« no previous file with comments | « sky/benchmarks/dom/creation.sky ('k') | sky/engine/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698