| 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 7cdf52b7a6fa35562aa7907e4e81d0c14f409e16..2d518ba791fa63e2fc3d9518226f6ea717fdefba 100644
|
| --- a/tools/dom/templates/html/impl/impl_ShadowRoot.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_ShadowRoot.darttemplate
|
| @@ -16,27 +16,39 @@ $else
|
| $endif
|
|
|
| $if DART_USE_BLINK
|
| - static bool _resetStyleInheritanceDeprecationReported = false;
|
| - static void _resetStyleInheritanceDeprecationReport() {
|
| - if (!_resetStyleInheritanceDeprecationReported) {
|
| + static bool _shadowRootDeprecationReported = false;
|
| + static void _shadowRootDeprecationReport() {
|
| + if (!_shadowRootDeprecationReported) {
|
| window.console.warn('''
|
| -ShadowRoot.resetStyleInheritance is now deprecated in dart:html.
|
| -Please remove from your code.
|
| +ShadowRoot.resetStyleInheritance and ShadowRoot.applyAuthorStyles now deprecated in dart:html.
|
| +Please remove them from your code.
|
| ''');
|
| - _resetStyleInheritanceDeprecationReported = true;
|
| + _shadowRootDeprecationReported = true;
|
| }
|
| }
|
|
|
| @deprecated
|
| bool get resetStyleInheritance {
|
| - _resetStyleInheritanceDeprecationReport();
|
| + _shadowRootDeprecationReport();
|
| // Default value from when it was specified.
|
| return false;
|
| }
|
|
|
| @deprecated
|
| void set resetStyleInheritance(bool value) {
|
| - _resetStyleInheritanceDeprecationReport();
|
| + _shadowRootDeprecationReport();
|
| + }
|
| +
|
| + @deprecated
|
| + bool get applyAuthorStyles {
|
| + _shadowRootDeprecationReport();
|
| + // Default value from when it was specified.
|
| + return false;
|
| + }
|
| +
|
| + @deprecated
|
| + void set applyAuthorStyles(bool value) {
|
| + _shadowRootDeprecationReport();
|
| }
|
| $else
|
| @deprecated
|
| @@ -46,5 +58,13 @@ $else
|
| void set resetStyleInheritance(bool value) {
|
| this._resetStyleInheritance = value;
|
| }
|
| +
|
| + @deprecated
|
| + bool get applyAuthorStyles => this._applyAuthorStyles;
|
| +
|
| + @deprecated
|
| + void set applyAuthorStyles(bool value) {
|
| + this._applyAuthorStyles = value;
|
| + }
|
| $endif
|
| }
|
|
|