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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

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:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 9af468e7e6a9b6d33cfd694956bd83e94711bade..162858a9979dc395efb863e9d935d042370108f9 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -9772,7 +9772,8 @@ class _ElementFactoryProvider {
switch (tag) {
case 'td':
case 'th':
- element = _singleNode(_singleNode(table.rows).cells);
+ TableRowElement row = _singleNode(table.rows);
+ element = _singleNode(row.cells);
break;
case 'tr':
element = _singleNode(table.rows);
@@ -11846,6 +11847,7 @@ class Geolocation native "*Geolocation" {
return new _GeopositionWrapper(domPosition);
}
+
@JSName('clearWatch')
@DomName('Geolocation.clearWatch')
@DocsEditable
@@ -25732,8 +25734,10 @@ class Window extends EventTarget implements WindowBase native "@*DOMWindow" {
* [animationFrame] again for the animation to continue.
*/
Future<num> get animationFrame {
- var completer = new Completer<int>();
- requestAnimationFrame(completer.complete);
+ var completer = new Completer<num>();
+ requestAnimationFrame((time) {
+ completer.complete(time);
+ });
return completer.future;
}
@@ -29585,7 +29589,7 @@ abstract class CssClassSet implements Set<String> {
Iterable<String> where(bool f(String element)) => readClasses().where(f);
- Iterable expand(Iterable f(String element)) => readClasses.expand(f);
+ Iterable expand(Iterable f(String element)) => readClasses().expand(f);
bool every(bool f(String element)) => readClasses().every(f);
@@ -32031,7 +32035,7 @@ class _WrappedList<E> implements List<E> {
void set length(int newLength) { _list.length = newLength; }
- void addLast(E value) { _list.addLast(value); }
+ void addLast(E value) { _list.add(value); }
Iterable<E> get reversed => _list.reversed;
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698