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

Unified Diff: tools/dom/src/shared_FactoryProviders.dart

Issue 16335012: Fixing some of the tests disabled from the chrome IDL roll. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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: tools/dom/src/shared_FactoryProviders.dart
diff --git a/tools/dom/src/shared_FactoryProviders.dart b/tools/dom/src/shared_FactoryProviders.dart
deleted file mode 100644
index 0355ba98d2fd53131fec54b8dcdb204c139dac17..0000000000000000000000000000000000000000
--- a/tools/dom/src/shared_FactoryProviders.dart
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-part of html;
-
-class _CssStyleDeclarationFactoryProvider {
- static CssStyleDeclaration createCssStyleDeclaration_css(String css) {
- final style = new Element.tag('div').style;
- style.cssText = css;
- return style;
- }
-
- static CssStyleDeclaration createCssStyleDeclaration() {
- return new CssStyleDeclaration.css('');
- }
-}
-
-class _DocumentFragmentFactoryProvider {
- @DomName('Document.createDocumentFragment')
- static DocumentFragment createDocumentFragment() =>
- document.createDocumentFragment();
-
- static DocumentFragment createDocumentFragment_html(String html) {
- final fragment = new DocumentFragment();
- fragment.innerHtml = html;
- return fragment;
- }
-
- // TODO(nweiz): enable this when XML is ported.
- // factory DocumentFragment.xml(String xml) {
- // final fragment = new DocumentFragment();
- // final e = new XMLElement.tag("xml");
- // e.innerHtml = xml;
- //
- // // Copy list first since we don't want liveness during iteration.
- // final List nodes = new List.from(e.nodes);
- // fragment.nodes.addAll(nodes);
- // return fragment;
- // }
-
- static DocumentFragment createDocumentFragment_svg(String svgContent) {
- final fragment = new DocumentFragment();
- final e = new svg.SvgSvgElement();
- e.innerHtml = svgContent;
-
- // Copy list first since we don't want liveness during iteration.
- final List nodes = new List.from(e.nodes);
- fragment.nodes.addAll(nodes);
- return fragment;
- }
-}
« no previous file with comments | « tools/dom/src/dartium_FactoryProviders.dart ('k') | tools/dom/templates/html/dart2js/html_dart2js.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698