| Index: sdk/lib/html/dartium/html_dartium.dart
|
| diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
|
| index c0c1be2af2caf2d7f7aca53c479750e70f11f23a..50328e36a0d9621bfb12667fa2a3cadf3c7866bc 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -108,6 +108,24 @@ Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) {
|
| // TODO(17738): Plumb arguments and return value through.
|
| return _Utils.spawnDomUri(uri.toString());
|
| }
|
| +// FIXME: This should be generated.
|
| +const _typeMap = const {
|
| + 'EventTarget': EventTarget,
|
| + 'Window': Window,
|
| + 'Element': Element,
|
| + 'Console': Console,
|
| + 'Node': Node,
|
| + 'Document': Document,
|
| + 'HTMLElement': HtmlElement,
|
| + 'HTMLCanvasElement': CanvasElement,
|
| + 'HTMLDocument': HtmlDocument,
|
| +};
|
| +
|
| +Type _getType(String key) {
|
| + if (!_typeMap.containsKey(key))
|
| + return null;
|
| + return _typeMap[key];
|
| +}
|
| // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
| @@ -28952,13 +28970,13 @@ class Url extends NativeFieldWrapperClass2 implements UrlUtils {
|
| if ((blob_OR_source_OR_stream is Blob || blob_OR_source_OR_stream == null)) {
|
| return _createObjectURL_1(blob_OR_source_OR_stream);
|
| }
|
| - if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) {
|
| + if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) {
|
| return _createObjectURL_2(blob_OR_source_OR_stream);
|
| }
|
| - if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) {
|
| + if ((blob_OR_source_OR_stream is _WebKitMediaSource || blob_OR_source_OR_stream == null)) {
|
| return _createObjectURL_3(blob_OR_source_OR_stream);
|
| }
|
| - if ((blob_OR_source_OR_stream is _WebKitMediaSource || blob_OR_source_OR_stream == null)) {
|
| + if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) {
|
| return _createObjectURL_4(blob_OR_source_OR_stream);
|
| }
|
| throw new ArgumentError("Incorrect number or type of arguments");
|
|
|