| Index: lib/html/dartium/html_dartium.dart
|
| diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
|
| index 4ede02d046e304c3b41491256135ec73d9d3ffa1..7ffce3affd0f1c08a46a7cac4a95addc5fd2b491 100644
|
| --- a/lib/html/dartium/html_dartium.dart
|
| +++ b/lib/html/dartium/html_dartium.dart
|
| @@ -34130,15 +34130,7 @@ class _ShadowRootImpl extends _DocumentFragmentImpl implements ShadowRoot {
|
|
|
| DOMSelection getSelection() native "ShadowRoot_getSelection_Callback";
|
|
|
| - static bool get supported {
|
| - // TODO: move this to native code.
|
| - try {
|
| - new ShadowRoot(new DivElement());
|
| - return true;
|
| - } catch (e) {
|
| - return false;
|
| - }
|
| - }
|
| + static bool get supported => _Utils.shadowRootSupported(window.document);
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| @@ -44010,6 +44002,7 @@ class _Utils {
|
| static print(String message) native "Utils_print";
|
| static SendPort spawnDomFunctionImpl(Function topLevelFunction) native "Utils_spawnDomFunction";
|
| static int _getNewIsolateId() native "Utils_getNewIsolateId";
|
| + static bool shadowRootSupported(Document document) native "Utils_shadowRootSupported";
|
| }
|
|
|
| class _NPObject extends NativeFieldWrapperClass1 {
|
|
|