| OLD | NEW |
| 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 $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 class _ChildrenElementList extends ListBase<Element> | 7 class _ChildrenElementList extends ListBase<Element> |
| 8 implements NodeListWrapper { | 8 implements NodeListWrapper { |
| 9 // Raw Element. | 9 // Raw Element. |
| 10 final Element _element; | 10 final Element _element; |
| (...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1216 throw new ArgumentError( | 1216 throw new ArgumentError( |
| 1217 'validator can only be passed if treeSanitizer is null'); | 1217 'validator can only be passed if treeSanitizer is null'); |
| 1218 } | 1218 } |
| 1219 | 1219 |
| 1220 if (_parseDocument == null) { | 1220 if (_parseDocument == null) { |
| 1221 _parseDocument = document.implementation.createHtmlDocument(''); | 1221 _parseDocument = document.implementation.createHtmlDocument(''); |
| 1222 _parseRange = _parseDocument.createRange(); | 1222 _parseRange = _parseDocument.createRange(); |
| 1223 | 1223 |
| 1224 // Workaround for Chrome bug 229142- URIs are not resolved in new doc. | 1224 // Workaround for Chrome bug 229142- URIs are not resolved in new doc. |
| 1225 var base = _parseDocument.createElement('base'); | 1225 var base = _parseDocument.createElement('base'); |
| 1226 base.href = document._baseUri; | 1226 base.href = document.baseUri; |
| 1227 _parseDocument.head.append(base); | 1227 _parseDocument.head.append(base); |
| 1228 } | 1228 } |
| 1229 var contextElement; | 1229 var contextElement; |
| 1230 if (this is BodyElement) { | 1230 if (this is BodyElement) { |
| 1231 contextElement = _parseDocument.body; | 1231 contextElement = _parseDocument.body; |
| 1232 } else { | 1232 } else { |
| 1233 contextElement = _parseDocument.createElement(tagName); | 1233 contextElement = _parseDocument.createElement(tagName); |
| 1234 _parseDocument.body.append(contextElement); | 1234 _parseDocument.body.append(contextElement); |
| 1235 } | 1235 } |
| 1236 var fragment; | 1236 var fragment; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1339 const ScrollAlignment._internal(this._value); | 1339 const ScrollAlignment._internal(this._value); |
| 1340 toString() => 'ScrollAlignment.$_value'; | 1340 toString() => 'ScrollAlignment.$_value'; |
| 1341 | 1341 |
| 1342 /// Attempt to align the element to the top of the scrollable area. | 1342 /// Attempt to align the element to the top of the scrollable area. |
| 1343 static const TOP = const ScrollAlignment._internal('TOP'); | 1343 static const TOP = const ScrollAlignment._internal('TOP'); |
| 1344 /// Attempt to center the element in the scrollable area. | 1344 /// Attempt to center the element in the scrollable area. |
| 1345 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1345 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1346 /// Attempt to align the element to the bottom of the scrollable area. | 1346 /// Attempt to align the element to the bottom of the scrollable area. |
| 1347 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1347 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1348 } | 1348 } |
| OLD | NEW |