Fix errors in Sky detected by Dart analyzer

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1000863002
This commit is contained in:
Adam Barth 2015-03-11 22:04:22 -07:00
parent 0beafd3555
commit d8fe727434

View File

@ -117,7 +117,7 @@ class Document extends ParentNode {
} }
class HTMLImageElement extends Element { class HTMLImageElement extends Element {
Image(); HTMLImageElement();
String src; String src;
Object style = {}; Object style = {};
} }
@ -139,6 +139,7 @@ class Window {
new Timer(const Duration(milliseconds: 16), () { new Timer(const Duration(milliseconds: 16), () {
_callRAF(fn); _callRAF(fn);
}); });
return 1;
} }
void cancelAnimationFrame(int id) { void cancelAnimationFrame(int id) {
@ -150,7 +151,7 @@ Document document = new Document();
Window window = new Window(); Window window = new Window();
class ClientRect { class ClientRect {
double top double top;
double right; double right;
double bottomr; double bottomr;
double left; double left;