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

Unified Diff: lib/html/src/frog_FactoryProviders.dart

Issue 9732019: dart:html perf optimization based on runing Dromaeo benchmarks (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes Created 8 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 side-by-side diff with in-line comments
Download patch
Index: lib/html/src/frog_FactoryProviders.dart
diff --git a/lib/html/src/frog_FactoryProviders.dart b/lib/html/src/frog_FactoryProviders.dart
index cba70a6a5c5d95ea1fd1a2c7209d04ec38803fc9..ad2514504fdbd123f915b9c1ca6174961989fed1 100644
--- a/lib/html/src/frog_FactoryProviders.dart
+++ b/lib/html/src/frog_FactoryProviders.dart
@@ -70,3 +70,7 @@ class _WebSocketFactoryProvider {
factory WebSocket(String url) native '''return new WebSocket(url);''';
}
+
+class _TextFactoryProvider {
+ factory Text(String data) native "return document.createTextNode(data);";
+}

Powered by Google App Engine
This is Rietveld 408576698