| 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 d433cbf83736b7a432d4d421767c053c747b93ff..474f7360389bc909639d6523653f35da4e26429d 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -1201,8 +1201,7 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen
|
| void closePath() native;
|
|
|
| ImageData createImageData(imagedata_OR_sw, [num sh]) {
|
| - if ((imagedata_OR_sw is ImageData || imagedata_OR_sw == null) &&
|
| - !?sh) {
|
| + if ((imagedata_OR_sw is ImageData || imagedata_OR_sw == null) && !?sh) {
|
| var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw);
|
| return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1));
|
| }
|
| @@ -1280,10 +1279,7 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen
|
| void moveTo(num x, num y) native;
|
|
|
| void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight]) {
|
| - if (!?dirtyX &&
|
| - !?dirtyY &&
|
| - !?dirtyWidth &&
|
| - !?dirtyHeight) {
|
| + if (!?dirtyX && !?dirtyY && !?dirtyWidth && !?dirtyHeight) {
|
| var imagedata_1 = _convertDartToNative_ImageData(imagedata);
|
| _putImageData_1(imagedata_1, dx, dy);
|
| return;
|
| @@ -1364,10 +1360,7 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen
|
| _webkitGetImageDataHD_1(sx, sy, sw, sh) native;
|
|
|
| void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight]) {
|
| - if (!?dirtyX &&
|
| - !?dirtyY &&
|
| - !?dirtyWidth &&
|
| - !?dirtyHeight) {
|
| + if (!?dirtyX && !?dirtyY && !?dirtyWidth && !?dirtyHeight) {
|
| var imagedata_1 = _convertDartToNative_ImageData(imagedata);
|
| _webkitPutImageDataHD_1(imagedata_1, dx, dy);
|
| return;
|
| @@ -24917,32 +24910,20 @@ class WebGLRenderingContext extends CanvasRenderingContext native "*WebGLRenderi
|
| _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels);
|
| return;
|
| }
|
| - if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_canvas_OR_image_OR_pixels_OR_video == null) &&
|
| - !?format &&
|
| - !?type &&
|
| - !?pixels) {
|
| + if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) {
|
| var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR_pixels_OR_video);
|
| _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_type, pixels_1);
|
| return;
|
| }
|
| - if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_OR_canvas_OR_image_OR_pixels_OR_video == null) &&
|
| - !?format &&
|
| - !?type &&
|
| - !?pixels) {
|
| + if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) {
|
| _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
|
| return;
|
| }
|
| - if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement || border_OR_canvas_OR_image_OR_pixels_OR_video == null) &&
|
| - !?format &&
|
| - !?type &&
|
| - !?pixels) {
|
| + if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement || border_OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) {
|
| _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
|
| return;
|
| }
|
| - if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_OR_canvas_OR_image_OR_pixels_OR_video == null) &&
|
| - !?format &&
|
| - !?type &&
|
| - !?pixels) {
|
| + if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) {
|
| _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
|
| return;
|
| }
|
| @@ -24982,28 +24963,20 @@ class WebGLRenderingContext extends CanvasRenderingContext native "*WebGLRenderi
|
| _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels);
|
| return;
|
| }
|
| - if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_format_OR_image_OR_pixels_OR_video == null) &&
|
| - !?type &&
|
| - !?pixels) {
|
| + if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) {
|
| var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR_pixels_OR_video);
|
| _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_OR_type, pixels_1);
|
| return;
|
| }
|
| - if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_OR_format_OR_image_OR_pixels_OR_video == null) &&
|
| - !?type &&
|
| - !?pixels) {
|
| + if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) {
|
| _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
|
| return;
|
| }
|
| - if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement || canvas_OR_format_OR_image_OR_pixels_OR_video == null) &&
|
| - !?type &&
|
| - !?pixels) {
|
| + if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) {
|
| _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
|
| return;
|
| }
|
| - if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_OR_format_OR_image_OR_pixels_OR_video == null) &&
|
| - !?type &&
|
| - !?pixels) {
|
| + if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) {
|
| _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
|
| return;
|
| }
|
| @@ -26172,8 +26145,7 @@ class Window extends EventTarget implements WindowBase native "@*DOMWindow" {
|
| Database openDatabase(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native;
|
|
|
| void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) {
|
| - if (?message &&
|
| - !?messagePorts) {
|
| + if (?message && !?messagePorts) {
|
| var message_1 = convertDartToNative_SerializedScriptValue(message);
|
| _postMessage_1(message_1, targetOrigin);
|
| return;
|
|
|