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