summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/HTMLEditor.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-05-22 18:25:26 -0400
committerGaming4JC <g4jc@hyperbola.info>2020-07-31 15:59:58 -0400
commit1c0c7cf583e6adda168cf59cad3aad3e38e7c058 (patch)
tree67d15327107b89b37e2556c765ec4dcfe04e7305 /editor/libeditor/HTMLEditor.h
parentbaa4b609d9ca417295d262bd398812e2941bb77d (diff)
downloadUXP-1c0c7cf583e6adda168cf59cad3aad3e38e7c058.tar
UXP-1c0c7cf583e6adda168cf59cad3aad3e38e7c058.tar.gz
UXP-1c0c7cf583e6adda168cf59cad3aad3e38e7c058.tar.lz
UXP-1c0c7cf583e6adda168cf59cad3aad3e38e7c058.tar.xz
UXP-1c0c7cf583e6adda168cf59cad3aad3e38e7c058.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/HTMLEditor.h')
-rw-r--r--editor/libeditor/HTMLEditor.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/editor/libeditor/HTMLEditor.h b/editor/libeditor/HTMLEditor.h
index dc1a41b70..494e7c383 100644
--- a/editor/libeditor/HTMLEditor.h
+++ b/editor/libeditor/HTMLEditor.h
@@ -118,6 +118,16 @@ public:
virtual already_AddRefed<nsIContent> GetInputEventTargetContent() override;
virtual bool IsEditable(nsINode* aNode) override;
using EditorBase::IsEditable;
+ virtual nsresult RemoveAttributeOrEquivalent(
+ Element* aElement,
+ nsIAtom* aAttribute,
+ bool aSuppressTransaction) override;
+ virtual nsresult SetAttributeOrEquivalent(Element* aElement,
+ nsIAtom* aAttribute,
+ const nsAString& aValue,
+ bool aSuppressTransaction) override;
+ using EditorBase::RemoveAttributeOrEquivalent;
+ using EditorBase::SetAttributeOrEquivalent;
// nsStubMutationObserver overrides
NS_DECL_NSIMUTATIONOBSERVER_CONTENTAPPENDED
@@ -329,14 +339,6 @@ public:
*/
virtual nsresult SelectEntireDocument(Selection* aSelection) override;
- NS_IMETHOD SetAttributeOrEquivalent(nsIDOMElement* aElement,
- const nsAString& aAttribute,
- const nsAString& aValue,
- bool aSuppressTransaction) override;
- NS_IMETHOD RemoveAttributeOrEquivalent(nsIDOMElement* aElement,
- const nsAString& aAttribute,
- bool aSuppressTransaction) override;
-
/**
* Join together any adjacent editable text nodes in the range.
*/