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

Unified Diff: tools/dom/templates/html/impl/impl_ShadowRoot.darttemplate

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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
}
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698