| Index: tools/dom/templates/html/impl/impl_Document.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_Document.darttemplate b/tools/dom/templates/html/impl/impl_Document.darttemplate
|
| index 3971f831a21c4ebb5f8e019a9cd0e616381450e6..72e2f1235295ce43050dfa675a76a34f92d8b9ad 100644
|
| --- a/tools/dom/templates/html/impl/impl_Document.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_Document.darttemplate
|
| @@ -62,7 +62,7 @@ $!MEMBERS
|
| final mutableMatches = $dom_getElementsByName(
|
| selectors.substring(7,selectors.length - 2));
|
| int len = mutableMatches.length;
|
| - final copyOfMatches = new List<Element>(len);
|
| + final copyOfMatches = new List<Element>.fixedLength(len);
|
| for (int i = 0; i < len; ++i) {
|
| copyOfMatches[i] = mutableMatches[i];
|
| }
|
| @@ -70,7 +70,7 @@ $!MEMBERS
|
| } else if (new RegExp("^[*a-zA-Z0-9]+\$").hasMatch(selectors)) {
|
| final mutableMatches = $dom_getElementsByTagName(selectors);
|
| int len = mutableMatches.length;
|
| - final copyOfMatches = new List<Element>(len);
|
| + final copyOfMatches = new List<Element>.fixedLength(len);
|
| for (int i = 0; i < len; ++i) {
|
| copyOfMatches[i] = mutableMatches[i];
|
| }
|
|
|