diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-05-22 18:25:26 -0400 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-08-07 21:29:27 +0000 |
commit | 14e7f881be45078115aade9b2e6ccf8091a70b1a (patch) | |
tree | 87edfd687341a41a170c51bbf6c52edb95cc8369 /editor/libeditor/TextEditor.cpp | |
parent | 4f03fb2798d85a7d4671a79521d8483af3345db5 (diff) | |
download | UXP-14e7f881be45078115aade9b2e6ccf8091a70b1a.tar UXP-14e7f881be45078115aade9b2e6ccf8091a70b1a.tar.gz UXP-14e7f881be45078115aade9b2e6ccf8091a70b1a.tar.lz UXP-14e7f881be45078115aade9b2e6ccf8091a70b1a.tar.xz UXP-14e7f881be45078115aade9b2e6ccf8091a70b1a.zip |
Issue #1621 - Part 2: Implement nsIAtom version of SetAttribute/RemoveAttribute/CloneAttirubte.
Add nsIAtom version of the following.
- CloneAttribute
- RemoveAttribute
- RemoveAttributeOrEquivalent
- SetAttribute
- SetAttributeOrEquivalent
Ref: Bug 1324996
Diffstat (limited to 'editor/libeditor/TextEditor.cpp')
-rw-r--r-- | editor/libeditor/TextEditor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/libeditor/TextEditor.cpp b/editor/libeditor/TextEditor.cpp index 1e855d769..7eb91af64 100644 --- a/editor/libeditor/TextEditor.cpp +++ b/editor/libeditor/TextEditor.cpp @@ -1621,8 +1621,8 @@ TextEditor::GetDOMEventTarget() nsresult -TextEditor::SetAttributeOrEquivalent(nsIDOMElement* aElement, - const nsAString& aAttribute, +TextEditor::SetAttributeOrEquivalent(Element* aElement, + nsIAtom* aAttribute, const nsAString& aValue, bool aSuppressTransaction) { @@ -1630,8 +1630,8 @@ TextEditor::SetAttributeOrEquivalent(nsIDOMElement* aElement, } nsresult -TextEditor::RemoveAttributeOrEquivalent(nsIDOMElement* aElement, - const nsAString& aAttribute, +TextEditor::RemoveAttributeOrEquivalent(Element* aElement, + nsIAtom* aAttribute, bool aSuppressTransaction) { return EditorBase::RemoveAttribute(aElement, aAttribute); |