50 lines
1.4 KiB
Plaintext
50 lines
1.4 KiB
Plaintext
// 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
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// WARNING: Do not edit - generated code.
|
|
|
|
part of $LIBRARYNAME;
|
|
|
|
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
|
|
$!MEMBERS
|
|
static bool get supported =>
|
|
JS('bool', '!!(Element.prototype.createShadowRoot||'
|
|
'Element.prototype.webkitCreateShadowRoot)');
|
|
|
|
static bool _shadowRootDeprecationReported = false;
|
|
static void _shadowRootDeprecationReport() {
|
|
if (!_shadowRootDeprecationReported) {
|
|
window.console.warn('''
|
|
ShadowRoot.resetStyleInheritance and ShadowRoot.applyAuthorStyles now deprecated in dart:html.
|
|
Please remove them from your code.
|
|
''');
|
|
_shadowRootDeprecationReported = true;
|
|
}
|
|
}
|
|
|
|
@deprecated
|
|
bool get resetStyleInheritance {
|
|
_shadowRootDeprecationReport();
|
|
// Default value from when it was specified.
|
|
return false;
|
|
}
|
|
|
|
@deprecated
|
|
set resetStyleInheritance(bool value) {
|
|
_shadowRootDeprecationReport();
|
|
}
|
|
|
|
@deprecated
|
|
bool get applyAuthorStyles {
|
|
_shadowRootDeprecationReport();
|
|
// Default value from when it was specified.
|
|
return false;
|
|
}
|
|
|
|
@deprecated
|
|
set applyAuthorStyles(bool value) {
|
|
_shadowRootDeprecationReport();
|
|
}
|
|
}
|