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

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

Issue 12510003: Fixing a number of dart:html analyzer issues (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
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 // TODO(jacobr): use _Lists.dart to remove some of the duplicated 7 // TODO(jacobr): use _Lists.dart to remove some of the duplicated
8 // functionality. 8 // functionality.
9 class _ChildrenElementList implements List { 9 class _ChildrenElementList implements List {
10 // Raw Element. 10 // Raw Element.
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 * <http://msdn.microsoft.com/en-us/library/ie/ms532998(v=vs.85).aspx>. 1054 * <http://msdn.microsoft.com/en-us/library/ie/ms532998(v=vs.85).aspx>.
1055 */ 1055 */
1056 static Element _createTableForIE(String html, String tag) { 1056 static Element _createTableForIE(String html, String tag) {
1057 var div = new Element.tag('div'); 1057 var div = new Element.tag('div');
1058 div.innerHtml = '<table>$html</table>'; 1058 div.innerHtml = '<table>$html</table>';
1059 var table = _singleNode(div.children); 1059 var table = _singleNode(div.children);
1060 Element element; 1060 Element element;
1061 switch (tag) { 1061 switch (tag) {
1062 case 'td': 1062 case 'td':
1063 case 'th': 1063 case 'th':
1064 element = _singleNode(_singleNode(table.rows).cells); 1064 TableRowElement row = _singleNode(table.rows);
1065 element = _singleNode(row.cells);
1065 break; 1066 break;
1066 case 'tr': 1067 case 'tr':
1067 element = _singleNode(table.rows); 1068 element = _singleNode(table.rows);
1068 break; 1069 break;
1069 case 'tbody': 1070 case 'tbody':
1070 element = _singleNode(table.tBodies); 1071 element = _singleNode(table.tBodies);
1071 break; 1072 break;
1072 case 'thead': 1073 case 'thead':
1073 element = table.tHead; 1074 element = table.tHead;
1074 break; 1075 break;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 const ScrollAlignment._internal(this._value); 1124 const ScrollAlignment._internal(this._value);
1124 toString() => 'ScrollAlignment.$_value'; 1125 toString() => 'ScrollAlignment.$_value';
1125 1126
1126 /// Attempt to align the element to the top of the scrollable area. 1127 /// Attempt to align the element to the top of the scrollable area.
1127 static const TOP = const ScrollAlignment._internal('TOP'); 1128 static const TOP = const ScrollAlignment._internal('TOP');
1128 /// Attempt to center the element in the scrollable area. 1129 /// Attempt to center the element in the scrollable area.
1129 static const CENTER = const ScrollAlignment._internal('CENTER'); 1130 static const CENTER = const ScrollAlignment._internal('CENTER');
1130 /// Attempt to align the element to the bottom of the scrollable area. 1131 /// Attempt to align the element to the bottom of the scrollable area.
1131 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 1132 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
1132 } 1133 }
OLDNEW
« no previous file with comments | « tools/dom/src/WrappedList.dart ('k') | tools/dom/templates/html/impl/impl_Geolocation.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698