From e677a6d17c489d9a345a98626ec3dc30288d2bbf Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Tue, 24 Apr 2012 09:06:11 +0300 Subject: [PATCH] Bug 599983 part 1 - Clean up nsEditor::MarkNodeDirty; r=ehsan --- editor/libeditor/base/nsEditor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editor/libeditor/base/nsEditor.cpp b/editor/libeditor/base/nsEditor.cpp index 6986d437371..23c650d7f7a 100644 --- a/editor/libeditor/base/nsEditor.cpp +++ b/editor/libeditor/base/nsEditor.cpp @@ -1273,11 +1273,11 @@ nsEditor::RemoveAttribute(nsIDOMElement *aElement, const nsAString& aAttribute) NS_IMETHODIMP nsEditor::MarkNodeDirty(nsIDOMNode* aNode) { - // mark the node dirty. - nsCOMPtr element (do_QueryInterface(aNode)); - if (element) + nsCOMPtr element = do_QueryInterface(aNode); + if (element) { element->SetAttr(kNameSpaceID_None, nsEditProperty::mozdirty, EmptyString(), false); + } return NS_OK; }