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

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

Issue 15960004: Revert to ? presence checks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/web_gl/dart2js/web_gl_dart2js.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 56cfd19145364c2af42d2c36e19d47c792498e15..dfef133ee1f6b9363f5f8ee8000ccc5624022afd 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -1211,7 +1211,7 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend
_putImageData_1(imagedata_1, dx, dy);
return;
}
- if (dirtyX != null && dirtyY != null && dirtyWidth != null && dirtyHeight != null) {
+ if (?dirtyX && ?dirtyY && ?dirtyWidth && ?dirtyHeight) {
var imagedata_2 = _convertDartToNative_ImageData(imagedata);
_putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight);
return;
@@ -1308,7 +1308,7 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend
_putImageDataHD_1(imagedata_1, dx, dy);
return;
}
- if (dirtyX != null && dirtyY != null && dirtyWidth != null && dirtyHeight != null) {
+ if (?dirtyX && ?dirtyY && ?dirtyWidth && ?dirtyHeight) {
var imagedata_2 = _convertDartToNative_ImageData(imagedata);
_putImageDataHD_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight);
return;
« no previous file with comments | « no previous file | sdk/lib/web_gl/dart2js/web_gl_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698