commit | c41b69ed7786e52bc81e05fd99d11da011eaae1d | [log] [tgz] |
---|---|---|
author | Sigmund Cherem <sigmund@google.com> | Fri Sep 25 21:34:54 2020 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Fri Sep 25 21:34:54 2020 +0000 |
tree | 73fd7a2280515a23babec3acdfaf24184d834346 | |
parent | 8e60e96e19a0fa77805d9e32cd7e4054d52b0271 [diff] |
[html] update templates for code accidentally changed in the generated code These were updated in the dart:html output code in https://dart-review.googlesource.com/c/sdk/+/163681 We may want to look into adding a presubmit that let us notify developers when a change was made in one place but not the other (similar to how we used to check for sdk and sdk_nnbd in the past). Change-Id: I280315a5bb07971d0c0077498eb3c59944db0650 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/164640 Reviewed-by: Srujan Gaddam <srujzs@google.com>
diff --git a/tools/dom/templates/html/impl/impl_Element.darttemplate b/tools/dom/templates/html/impl/impl_Element.darttemplate index 935f5d8..4368af2 100644 --- a/tools/dom/templates/html/impl/impl_Element.darttemplate +++ b/tools/dom/templates/html/impl/impl_Element.darttemplate
@@ -1390,7 +1390,7 @@ contextElement = _parseDocument$NULLASSERT.createElement(tagName); _parseDocument$NULLASSERT.body$NULLASSERT.append(contextElement); } - var fragment; + DocumentFragment fragment; if (Range.supportsCreateContextualFragment && _canBeUsedToCreateContextualFragment) { _parseRange$NULLASSERT.selectNodeContents(contextElement);
diff --git a/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate b/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate index 8a49bc8..b046771 100644 --- a/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate +++ b/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate
@@ -24,7 +24,7 @@ 'version and onUpgradeNeeded must be specified together')); } try { - var request; + OpenDBRequest request; if (version != null) { request = _open(name, version); } else {