Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 296723002: Dartium 35: Add a deprecated ShadowRoot.resetStyleInheritance (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: regen Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/scripts/dartdomgenerator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 9cf3a84c5e2488320a9f560bc4bc0aa7659d8c3c..29d7f845799c7330f971018a6b5b9fc6d41ffce8 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -24790,11 +24790,11 @@ class ShadowRoot extends DocumentFragment {
@DomName('ShadowRoot.resetStyleInheritance')
@DocsEditable()
- bool get resetStyleInheritance => _blink.Native_ShadowRoot_resetStyleInheritance_Getter(this);
+ bool get _resetStyleInheritance => _blink.Native_ShadowRoot_resetStyleInheritance_Getter(this);
@DomName('ShadowRoot.resetStyleInheritance')
@DocsEditable()
- void set resetStyleInheritance(bool value) => _blink.Native_ShadowRoot_resetStyleInheritance_Setter(this, value);
+ void set _resetStyleInheritance(bool value) => _blink.Native_ShadowRoot_resetStyleInheritance_Setter(this, value);
@DomName('ShadowRoot.styleSheets')
@DocsEditable()
@@ -24826,6 +24826,29 @@ class ShadowRoot extends DocumentFragment {
Selection getSelection() => _blink.Native_ShadowRoot_getSelection_Callback(this);
static final bool supported = true;
+
+ 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();
+ }
}
// 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
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/scripts/dartdomgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698