Back out part of the patch for bug 329509 that accidentally landed with bug

348062. Fixes build bustage.
This commit is contained in:
bzbarsky%mit.edu 2006-08-25 18:37:54 +00:00
Родитель 5c72fde14f
Коммит 5f8947f33b
2 изменённых файлов: 6 добавлений и 12 удалений

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

@ -428,8 +428,7 @@ nsGenericDOMDataNode::AppendData(const nsAString& aData)
mutation.mPrevAttrValue = oldValue; mutation.mPrevAttrValue = oldValue;
mutation.mNewAttrValue = GetCurrentValueAtom(); mutation.mNewAttrValue = GetCurrentValueAtom();
nsEventDispatcher::Dispatch(this, nsnull, &mutation, nsnull, nsnull, nsnull, nsEventDispatcher::Dispatch(this, nsnull, &mutation);
PR_FALSE, PR_FALSE);
} }
// Notify observers // Notify observers
@ -1001,8 +1000,7 @@ nsGenericDOMDataNode::SetText(const PRUnichar* aBuffer,
do_GetAtom(Substring(aBuffer, aBuffer + aLength)); do_GetAtom(Substring(aBuffer, aBuffer + aLength));
} }
nsEventDispatcher::Dispatch(this, nsnull, &mutation, nsnull, nsnull, nsnull, nsEventDispatcher::Dispatch(this, nsnull, &mutation);
PR_FALSE, PR_FALSE);
} }
// Trigger a reflow // Trigger a reflow

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

@ -2422,8 +2422,7 @@ nsGenericElement::doInsertChildAt(nsIContent* aKid, PRUint32 aIndex,
NS_EVENT_BITS_MUTATION_NODEINSERTED)) { NS_EVENT_BITS_MUTATION_NODEINSERTED)) {
nsMutationEvent mutation(PR_TRUE, NS_MUTATION_NODEINSERTED); nsMutationEvent mutation(PR_TRUE, NS_MUTATION_NODEINSERTED);
mutation.mRelatedNode = do_QueryInterface(container); mutation.mRelatedNode = do_QueryInterface(container);
nsEventDispatcher::Dispatch(aKid, nsnull, &mutation, nsnull, nsnull, nsEventDispatcher::Dispatch(aKid, nsnull, &mutation);
nsnull, PR_FALSE, PR_FALSE);
} }
} }
@ -2472,8 +2471,7 @@ nsGenericElement::doRemoveChildAt(PRUint32 aIndex, PRBool aNotify,
NS_EVENT_BITS_MUTATION_NODEREMOVED)) { NS_EVENT_BITS_MUTATION_NODEREMOVED)) {
nsMutationEvent mutation(PR_TRUE, NS_MUTATION_NODEREMOVED); nsMutationEvent mutation(PR_TRUE, NS_MUTATION_NODEREMOVED);
mutation.mRelatedNode = do_QueryInterface(container); mutation.mRelatedNode = do_QueryInterface(container);
nsEventDispatcher::Dispatch(aKid, nsnull, &mutation, nsnull, nsnull, nsEventDispatcher::Dispatch(aKid, nsnull, &mutation, nsnull, nsnull);
nsnull, PR_FALSE, PR_FALSE);
} }
// Someone may have removed the kid or any of its siblings while that event // Someone may have removed the kid or any of its siblings while that event
@ -3413,8 +3411,7 @@ nsGenericElement::SetAttrAndNotify(PRInt32 aNamespaceID,
mutation.mPrevAttrValue = do_GetAtom(aOldValue); mutation.mPrevAttrValue = do_GetAtom(aOldValue);
} }
mutation.mAttrChange = modType; mutation.mAttrChange = modType;
nsEventDispatcher::Dispatch(this, nsnull, &mutation, nsnull, nsnull, nsEventDispatcher::Dispatch(this, nsnull, &mutation;
nsnull, PR_FALSE, PR_FALSE);
} }
if (aNotify) { if (aNotify) {
@ -3614,8 +3611,7 @@ nsGenericElement::UnsetAttr(PRInt32 aNameSpaceID, nsIAtom* aName,
mutation.mPrevAttrValue = do_GetAtom(value); mutation.mPrevAttrValue = do_GetAtom(value);
mutation.mAttrChange = nsIDOMMutationEvent::REMOVAL; mutation.mAttrChange = nsIDOMMutationEvent::REMOVAL;
nsEventDispatcher::Dispatch(this, nsnull, &mutation, nsnull, nsnull, nsnull, nsEventDispatcher::Dispatch(this, nsnull, &mutation);
PR_FALSE, PR_FALSE);
} }
// Clear binding to nsIDOMNamedNodeMap // Clear binding to nsIDOMNamedNodeMap