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 @DomName('$DOMNAME') |
23 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 23 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
24 factory $CLASSNAME() => _$(CLASSNAME)FactoryProvider.createDocumentFragment(); | 24 factory $CLASSNAME() => _$(CLASSNAME)FactoryProvider.createDocumentFragment(); |
25 | 25 |
26 factory $CLASSNAME.html(String html) => | 26 factory $CLASSNAME.html(String html) => |
27 _$(CLASSNAME)FactoryProvider.createDocumentFragment_html(html); | 27 _$(CLASSNAME)FactoryProvider.createDocumentFragment_html(html); |
28 | 28 |
29 factory $CLASSNAME.svg(String svgContent) => | 29 factory $CLASSNAME.svg(String svgContent) => |
30 _$(CLASSNAME)FactoryProvider.createDocumentFragment_svg(svgContent); | 30 _$(CLASSNAME)FactoryProvider.createDocumentFragment_svg(svgContent); |
31 | 31 |
32 @deprecated | 32 @deprecated |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 "WebKit drop zone can't be set for document fragments."); | 263 "WebKit drop zone can't be set for document fragments."); |
264 } | 264 } |
265 | 265 |
266 void set webkitRegionOverflow(String value) { | 266 void set webkitRegionOverflow(String value) { |
267 throw new UnsupportedError( | 267 throw new UnsupportedError( |
268 "WebKit region overflow can't be set for document fragments."); | 268 "WebKit region overflow can't be set for document fragments."); |
269 } | 269 } |
270 | 270 |
271 $!MEMBERS | 271 $!MEMBERS |
272 } | 272 } |
OLD | NEW |