| Index: sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
|
| index 25bc27a488919f9a4013b267fcbd201bfd6465a7..3a1e464a3ce902b7ed2fa402ec09a573789d4a18 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -23346,20 +23346,39 @@ class ShadowRoot extends DocumentFragment native "ShadowRoot" {
|
| static bool get supported =>
|
| JS('bool', '!!(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 => this._resetStyleInheritance;
|
| + bool get resetStyleInheritance {
|
| + _shadowRootDeprecationReport();
|
| + // Default value from when it was specified.
|
| + return false;
|
| + }
|
|
|
| @deprecated
|
| void set resetStyleInheritance(bool value) {
|
| - this._resetStyleInheritance = value;
|
| + _shadowRootDeprecationReport();
|
| }
|
|
|
| @deprecated
|
| - bool get applyAuthorStyles => this._applyAuthorStyles;
|
| + bool get applyAuthorStyles {
|
| + _shadowRootDeprecationReport();
|
| + // Default value from when it was specified.
|
| + return false;
|
| + }
|
|
|
| @deprecated
|
| void set applyAuthorStyles(bool value) {
|
| - this._applyAuthorStyles = value;
|
| + _shadowRootDeprecationReport();
|
| }
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
|