| Index: tools/dom/templates/html/impl/impl_ShadowRoot.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_ShadowRoot.darttemplate b/tools/dom/templates/html/impl/impl_ShadowRoot.darttemplate
|
| index 5093f5d99d15e23afe8fbe526f4b6a15ec4491c4..7cdf52b7a6fa35562aa7907e4e81d0c14f409e16 100644
|
| --- a/tools/dom/templates/html/impl/impl_ShadowRoot.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_ShadowRoot.darttemplate
|
| @@ -14,4 +14,37 @@ $if DART2JS
|
| $else
|
| static final bool supported = true;
|
| $endif
|
| +
|
| +$if DART_USE_BLINK
|
| + static bool _resetStyleInheritanceDeprecationReported = false;
|
| + static void _resetStyleInheritanceDeprecationReport() {
|
| + if (!_resetStyleInheritanceDeprecationReported) {
|
| + window.console.warn('''
|
| +ShadowRoot.resetStyleInheritance is now deprecated in dart:html.
|
| +Please remove from your code.
|
| +''');
|
| + _resetStyleInheritanceDeprecationReported = true;
|
| + }
|
| + }
|
| +
|
| + @deprecated
|
| + bool get resetStyleInheritance {
|
| + _resetStyleInheritanceDeprecationReport();
|
| + // Default value from when it was specified.
|
| + return false;
|
| + }
|
| +
|
| + @deprecated
|
| + void set resetStyleInheritance(bool value) {
|
| + _resetStyleInheritanceDeprecationReport();
|
| + }
|
| +$else
|
| + @deprecated
|
| + bool get resetStyleInheritance => this._resetStyleInheritance;
|
| +
|
| + @deprecated
|
| + void set resetStyleInheritance(bool value) {
|
| + this._resetStyleInheritance = value;
|
| + }
|
| +$endif
|
| }
|
|
|