summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/TextEditRules.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-05-22 18:38:33 -0400
committerMoonchild <moonchild@palemoon.org>2020-08-07 21:29:36 +0000
commit2f022ab1faeb4703ecd9d7ca6b912bbe397531f6 (patch)
treeda9ff096d8731c080b0a90f376b2a3745c6f0e49 /editor/libeditor/TextEditRules.cpp
parent14e7f881be45078115aade9b2e6ccf8091a70b1a (diff)
downloadUXP-2f022ab1faeb4703ecd9d7ca6b912bbe397531f6.tar
UXP-2f022ab1faeb4703ecd9d7ca6b912bbe397531f6.tar.gz
UXP-2f022ab1faeb4703ecd9d7ca6b912bbe397531f6.tar.lz
UXP-2f022ab1faeb4703ecd9d7ca6b912bbe397531f6.tar.xz
UXP-2f022ab1faeb4703ecd9d7ca6b912bbe397531f6.zip
Issue #1621 - Part 3: Use nsIAtom to change attirbute if possible.
We can replace old nsIEditor API with nsIAtom version. Ref: Bug 1324996
Diffstat (limited to 'editor/libeditor/TextEditRules.cpp')
-rw-r--r--editor/libeditor/TextEditRules.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/libeditor/TextEditRules.cpp b/editor/libeditor/TextEditRules.cpp
index 4ffcd2618..d441b49eb 100644
--- a/editor/libeditor/TextEditRules.cpp
+++ b/editor/libeditor/TextEditRules.cpp
@@ -1425,9 +1425,9 @@ TextEditRules::CreateMozBR(nsIDOMNode* inParent,
NS_ENSURE_SUCCESS(rv, rv);
// give it special moz attr
- nsCOMPtr<nsIDOMElement> brElem = do_QueryInterface(brNode);
+ nsCOMPtr<Element> brElem = do_QueryInterface(brNode);
if (brElem) {
- rv = mTextEditor->SetAttribute(brElem, NS_LITERAL_STRING("type"),
+ rv = mTextEditor->SetAttribute(brElem, nsGkAtoms::type,
NS_LITERAL_STRING("_moz"));
NS_ENSURE_SUCCESS(rv, rv);
}