diff --git a/mozilla/editor/base/nsHTMLEditor.cpp b/mozilla/editor/base/nsHTMLEditor.cpp index f74459dcbb4..0852082d756 100644 --- a/mozilla/editor/base/nsHTMLEditor.cpp +++ b/mozilla/editor/base/nsHTMLEditor.cpp @@ -7276,7 +7276,7 @@ nsHTMLEditor::GetNextElementByTagName(nsIDOMElement *aCurrentElement, nsCOMPtr atom = GetTag(currentNode); - if (tagAtom==atom) + if (tagAtom==atom.get()) { nsCOMPtr element = do_QueryInterface(currentNode); if (!element) return NS_ERROR_NULL_POINTER; diff --git a/mozilla/editor/libeditor/html/nsHTMLEditor.cpp b/mozilla/editor/libeditor/html/nsHTMLEditor.cpp index f74459dcbb4..0852082d756 100644 --- a/mozilla/editor/libeditor/html/nsHTMLEditor.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLEditor.cpp @@ -7276,7 +7276,7 @@ nsHTMLEditor::GetNextElementByTagName(nsIDOMElement *aCurrentElement, nsCOMPtr atom = GetTag(currentNode); - if (tagAtom==atom) + if (tagAtom==atom.get()) { nsCOMPtr element = do_QueryInterface(currentNode); if (!element) return NS_ERROR_NULL_POINTER;