| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 7 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 8 factory $CLASSNAME() => _$(CLASSNAME)FactoryProvider.createDocumentFragment(); | |
| 9 | |
| 10 factory $CLASSNAME.html(String html) => | 8 factory $CLASSNAME.html(String html) => |
| 11 _$(CLASSNAME)FactoryProvider.createDocumentFragment_html(html); | 9 _$(CLASSNAME)FactoryProvider.createDocumentFragment_html(html); |
| 12 | 10 |
| 13 factory $CLASSNAME.svg(String svgContent) => | 11 factory $CLASSNAME.svg(String svgContent) => |
| 14 _$(CLASSNAME)FactoryProvider.createDocumentFragment_svg(svgContent); | 12 _$(CLASSNAME)FactoryProvider.createDocumentFragment_svg(svgContent); |
| 15 | 13 |
| 16 $if DART2JS | 14 $if DART2JS |
| 17 // Native field is used only by Dart code so does not lead to instantiation | 15 // Native field is used only by Dart code so does not lead to instantiation |
| 18 // of native classes | 16 // of native classes |
| 19 @Creates('Null') | 17 @Creates('Null') |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 /** | 69 /** |
| 72 * Parses the specified text as HTML and adds the resulting node after the | 70 * Parses the specified text as HTML and adds the resulting node after the |
| 73 * last child of this document fragment. | 71 * last child of this document fragment. |
| 74 */ | 72 */ |
| 75 void appendHtml(String text) { | 73 void appendHtml(String text) { |
| 76 this.append(new DocumentFragment.html(text)); | 74 this.append(new DocumentFragment.html(text)); |
| 77 } | 75 } |
| 78 | 76 |
| 79 $!MEMBERS | 77 $!MEMBERS |
| 80 } | 78 } |
| OLD | NEW |