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 html; | 5 part of html; |
6 | 6 |
7 Future<CSSStyleDeclaration> _emptyStyleFuture() { | 7 Future<CSSStyleDeclaration> _emptyStyleFuture() { |
8 return _createMeasurementFuture(() => new Element.tag('div').style, | 8 return _createMeasurementFuture(() => new Element.tag('div').style, |
9 new Completer<CSSStyleDeclaration>()); | 9 new Completer<CSSStyleDeclaration>()); |
10 } | 10 } |
11 | 11 |
12 class _FrozenCssClassSet extends CssClassSet { | 12 class _FrozenCssClassSet extends CssClassSet { |
13 void writeClasses(Set s) { | 13 void writeClasses(Set s) { |
14 throw new UnsupportedError( | 14 throw new UnsupportedError( |
15 'frozen class set cannot be modified'); | 15 'frozen class set cannot be modified'); |
16 } | 16 } |
17 Set<String> readClasses() => new Set<String>(); | 17 Set<String> readClasses() => new Set<String>(); |
18 | 18 |
19 bool get frozen => true; | 19 bool get frozen => true; |
20 } | 20 } |
21 | 21 |
| 22 /// @domName $DOMNAME |
22 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 23 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
23 factory $CLASSNAME() => _$(CLASSNAME)FactoryProvider.createDocumentFragment(); | 24 factory $CLASSNAME() => _$(CLASSNAME)FactoryProvider.createDocumentFragment(); |
24 | 25 |
25 factory $CLASSNAME.html(String html) => | 26 factory $CLASSNAME.html(String html) => |
26 _$(CLASSNAME)FactoryProvider.createDocumentFragment_html(html); | 27 _$(CLASSNAME)FactoryProvider.createDocumentFragment_html(html); |
27 | 28 |
28 factory $CLASSNAME.svg(String svgContent) => | 29 factory $CLASSNAME.svg(String svgContent) => |
29 _$(CLASSNAME)FactoryProvider.createDocumentFragment_svg(svgContent); | 30 _$(CLASSNAME)FactoryProvider.createDocumentFragment_svg(svgContent); |
30 | 31 |
31 List<Element> get elements => this.children; | 32 List<Element> get elements => this.children; |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 "WebKit drop zone can't be set for document fragments."); | 258 "WebKit drop zone can't be set for document fragments."); |
258 } | 259 } |
259 | 260 |
260 void set webkitRegionOverflow(String value) { | 261 void set webkitRegionOverflow(String value) { |
261 throw new UnsupportedError( | 262 throw new UnsupportedError( |
262 "WebKit region overflow can't be set for document fragments."); | 263 "WebKit region overflow can't be set for document fragments."); |
263 } | 264 } |
264 | 265 |
265 $!MEMBERS | 266 $!MEMBERS |
266 } | 267 } |
OLD | NEW |