From efa104cbfb8d5923d5310880db513790ce8a0c5d Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Tue, 12 Jan 1999 18:20:58 +0000 Subject: [PATCH] fixes for SetDOMAttribute --> SetAttribute change. git-svn-id: svn://10.0.0.236/trunk@17591 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/base/ChangeAttributeTxn.cpp | 6 +++--- mozilla/editor/core/ChangeAttributeTxn.cpp | 6 +++--- mozilla/editor/libeditor/base/ChangeAttributeTxn.cpp | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/mozilla/editor/base/ChangeAttributeTxn.cpp b/mozilla/editor/base/ChangeAttributeTxn.cpp index 9ee4b42a380..2cc764398f0 100644 --- a/mozilla/editor/base/ChangeAttributeTxn.cpp +++ b/mozilla/editor/base/ChangeAttributeTxn.cpp @@ -55,7 +55,7 @@ nsresult ChangeAttributeTxn::Do(void) // now set the attribute to the new value if (PR_FALSE==mRemoveAttribute) - result = mElement->SetDOMAttribute(mAttribute, mValue); + result = mElement->SetAttribute(mAttribute, mValue); else result = mElement->RemoveAttribute(mAttribute); @@ -66,7 +66,7 @@ nsresult ChangeAttributeTxn::Undo(void) { nsresult result=NS_OK; if (PR_TRUE==mAttributeWasSet) - result = mElement->SetDOMAttribute(mAttribute, mUndoValue); + result = mElement->SetAttribute(mAttribute, mUndoValue); else result = mElement->RemoveAttribute(mAttribute); @@ -78,7 +78,7 @@ nsresult ChangeAttributeTxn::Redo(void) nsresult result; if (PR_FALSE==mRemoveAttribute) - result = mElement->SetDOMAttribute(mAttribute, mValue); + result = mElement->SetAttribute(mAttribute, mValue); else result = mElement->RemoveAttribute(mAttribute); diff --git a/mozilla/editor/core/ChangeAttributeTxn.cpp b/mozilla/editor/core/ChangeAttributeTxn.cpp index 9ee4b42a380..2cc764398f0 100644 --- a/mozilla/editor/core/ChangeAttributeTxn.cpp +++ b/mozilla/editor/core/ChangeAttributeTxn.cpp @@ -55,7 +55,7 @@ nsresult ChangeAttributeTxn::Do(void) // now set the attribute to the new value if (PR_FALSE==mRemoveAttribute) - result = mElement->SetDOMAttribute(mAttribute, mValue); + result = mElement->SetAttribute(mAttribute, mValue); else result = mElement->RemoveAttribute(mAttribute); @@ -66,7 +66,7 @@ nsresult ChangeAttributeTxn::Undo(void) { nsresult result=NS_OK; if (PR_TRUE==mAttributeWasSet) - result = mElement->SetDOMAttribute(mAttribute, mUndoValue); + result = mElement->SetAttribute(mAttribute, mUndoValue); else result = mElement->RemoveAttribute(mAttribute); @@ -78,7 +78,7 @@ nsresult ChangeAttributeTxn::Redo(void) nsresult result; if (PR_FALSE==mRemoveAttribute) - result = mElement->SetDOMAttribute(mAttribute, mValue); + result = mElement->SetAttribute(mAttribute, mValue); else result = mElement->RemoveAttribute(mAttribute); diff --git a/mozilla/editor/libeditor/base/ChangeAttributeTxn.cpp b/mozilla/editor/libeditor/base/ChangeAttributeTxn.cpp index 9ee4b42a380..2cc764398f0 100644 --- a/mozilla/editor/libeditor/base/ChangeAttributeTxn.cpp +++ b/mozilla/editor/libeditor/base/ChangeAttributeTxn.cpp @@ -55,7 +55,7 @@ nsresult ChangeAttributeTxn::Do(void) // now set the attribute to the new value if (PR_FALSE==mRemoveAttribute) - result = mElement->SetDOMAttribute(mAttribute, mValue); + result = mElement->SetAttribute(mAttribute, mValue); else result = mElement->RemoveAttribute(mAttribute); @@ -66,7 +66,7 @@ nsresult ChangeAttributeTxn::Undo(void) { nsresult result=NS_OK; if (PR_TRUE==mAttributeWasSet) - result = mElement->SetDOMAttribute(mAttribute, mUndoValue); + result = mElement->SetAttribute(mAttribute, mUndoValue); else result = mElement->RemoveAttribute(mAttribute); @@ -78,7 +78,7 @@ nsresult ChangeAttributeTxn::Redo(void) nsresult result; if (PR_FALSE==mRemoveAttribute) - result = mElement->SetDOMAttribute(mAttribute, mValue); + result = mElement->SetAttribute(mAttribute, mValue); else result = mElement->RemoveAttribute(mAttribute);