Backed out 2 changesets (bug 1159401) for b2g build bustage
Backed out changeset adfee1efb1e1 (bug 1159401) Backed out changeset 70c63c8546e3 (bug 1159401)
This commit is contained in:
@@ -561,8 +561,7 @@ public:
|
||||
nsCOMPtr<nsIGlobalObject> global = mInput->OwnerDoc()->GetScopeObject();
|
||||
for (uint32_t i = 0; i < mFileList.Length(); ++i) {
|
||||
MOZ_ASSERT(!mFileList[i]->GetParentObject());
|
||||
mFileList[i] = File::Create(global, mFileList[i]->Impl());
|
||||
MOZ_ASSERT(mFileList[i]);
|
||||
mFileList[i] = new File(global, mFileList[i]->Impl());
|
||||
}
|
||||
|
||||
// The text control frame (if there is one) isn't going to send a change
|
||||
@@ -2348,10 +2347,7 @@ HTMLInputElement::MozSetFileArray(const Sequence<OwningNonNull<File>>& aFiles)
|
||||
}
|
||||
nsTArray<nsRefPtr<File>> files;
|
||||
for (uint32_t i = 0; i < aFiles.Length(); ++i) {
|
||||
nsRefPtr<File> file = File::Create(global, aFiles[i].get()->Impl());
|
||||
MOZ_ASSERT(file);
|
||||
|
||||
files.AppendElement(file);
|
||||
files.AppendElement(new File(global, aFiles[i].get()->Impl()));
|
||||
}
|
||||
SetFiles(files, true);
|
||||
}
|
||||
@@ -6022,9 +6018,7 @@ HTMLInputElement::RestoreState(nsPresState* aState)
|
||||
|
||||
nsTArray<nsRefPtr<File>> files;
|
||||
for (uint32_t i = 0, len = fileImpls.Length(); i < len; ++i) {
|
||||
nsRefPtr<File> file = File::Create(global, fileImpls[i]);
|
||||
MOZ_ASSERT(file);
|
||||
|
||||
nsRefPtr<File> file = new File(global, fileImpls[i]);
|
||||
files.AppendElement(file);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user