diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-05-22 18:38:33 -0400 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-08-07 21:29:36 +0000 |
commit | 2f022ab1faeb4703ecd9d7ca6b912bbe397531f6 (patch) | |
tree | da9ff096d8731c080b0a90f376b2a3745c6f0e49 /editor/libeditor/TextEditRules.cpp | |
parent | 14e7f881be45078115aade9b2e6ccf8091a70b1a (diff) | |
download | UXP-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.cpp | 4 |
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); } |