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

Side by Side Diff: sdk/lib/html/src/shared_SVGFactoryProviders.dart

Issue 11410063: Change const Regexp -> new RegExp in a few HTML files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/html/templates/html/impl/impl_Document.darttemplate » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of svg; 5 part of svg;
6 6
7 final _START_TAG_REGEXP = const RegExp('<(\\w+)'); 7 final _START_TAG_REGEXP = new RegExp('<(\\w+)');
8 8
9 class _SVGElementFactoryProvider { 9 class _SVGElementFactoryProvider {
10 static SVGElement createSVGElement_tag(String tag) { 10 static SVGElement createSVGElement_tag(String tag) {
11 final Element temp = 11 final Element temp =
12 document.$dom_createElementNS("http://www.w3.org/2000/svg", tag); 12 document.$dom_createElementNS("http://www.w3.org/2000/svg", tag);
13 return temp; 13 return temp;
14 } 14 }
15 15
16 static SVGElement createSVGElement_svg(String svg) { 16 static SVGElement createSVGElement_svg(String svg) {
17 Element parentTag; 17 Element parentTag;
(...skipping 14 matching lines...) Expand all
32 } 32 }
33 33
34 class _SVGSVGElementFactoryProvider { 34 class _SVGSVGElementFactoryProvider {
35 static SVGSVGElement createSVGSVGElement() { 35 static SVGSVGElement createSVGSVGElement() {
36 final el = new SVGElement.tag("svg"); 36 final el = new SVGElement.tag("svg");
37 // The SVG spec requires the version attribute to match the spec version 37 // The SVG spec requires the version attribute to match the spec version
38 el.attributes['version'] = "1.1"; 38 el.attributes['version'] = "1.1";
39 return el; 39 return el;
40 } 40 }
41 } 41 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/templates/html/impl/impl_Document.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698