Bug 689834. Only look at the muted attribute when initially creating the element. r=bzbarsky

This commit is contained in:
Andrew Quartey
2011-12-15 14:36:46 -05:00
parent c9506f3119
commit 460ab09e46
6 changed files with 23 additions and 6 deletions

View File

@@ -566,6 +566,13 @@ nsHtml5TreeBuilder::elementPopped(PRInt32 aNamespace, nsIAtom* aName, nsIContent
treeOp->Init(eTreeOpProcessMeta, aElement);
return;
}
if (aName == nsHtml5Atoms::audio || aName == nsHtml5Atoms::video) {
nsHtml5TreeOperation* treeOp = mOpQueue.AppendElement();
NS_ASSERTION(treeOp, "Tree op allocation failed.");
treeOp->Init(eTreeOpDoneCreatingElement, aElement);
return;
}
return;
}