Cloned script nodes should not reexecute the script. Bug 127016, r=sicking,

sr=jst, a=asa
This commit is contained in:
bzbarsky%mit.edu 2004-04-09 21:04:25 +00:00
Родитель 44df7d9960
Коммит 6de8f0577c
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -517,6 +517,12 @@ nsHTMLScriptElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
CopyInnerTo(it, aDeep);
// The clone should be marked evaluated if we are. It should also be marked
// evaluated if we're evaluating, to handle the case when this script node's
// script clones the node.
it->mIsEvaluated = mIsEvaluated || mEvaluating;
it->mLineNumber = mLineNumber;
*aReturn = NS_STATIC_CAST(nsIDOMNode *, it);
NS_ADDREF(*aReturn);