Bug 528442 - Call WillCallDoneAddingChildren for SVG scripts in the HTML5 parser. r=bnewman.

This commit is contained in:
Henri Sivonen
2009-11-17 10:52:30 +02:00
parent a29fc0bdde
commit a2ed7d7951

View File

@@ -316,6 +316,9 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
ssle->InitStyleLinkElement(PR_FALSE);
ssle->SetEnableUpdates(PR_FALSE);
}
} else if (NS_UNLIKELY(name == nsHtml5Atoms::script && ns == kNameSpaceID_SVG)) {
nsCOMPtr<nsIScriptElement> sele = do_QueryInterface(newContent);
sele->WillCallDoneAddingChildren();
}
if (!attributes) {