Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: tools/dom/templates/html/impl/impl_Element.darttemplate

Issue 235503007: Exposing Node.baseURL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698