summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/HTMLEditUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/libeditor/HTMLEditUtils.h')
-rw-r--r--editor/libeditor/HTMLEditUtils.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/editor/libeditor/HTMLEditUtils.h b/editor/libeditor/HTMLEditUtils.h
index 35fe8e3..c72e7b5 100644
--- a/editor/libeditor/HTMLEditUtils.h
+++ b/editor/libeditor/HTMLEditUtils.h
@@ -12,11 +12,20 @@ class nsIDOMNode;
class nsINode;
namespace mozilla {
+namespace dom {
+class Element;
+} // namespace dom
class HTMLEditUtils final {
public:
static bool IsInlineStyle(nsINode* aNode);
static bool IsInlineStyle(nsIDOMNode* aNode);
+ /**
+ * IsRemovableInlineStyleElement() returns true if aElement is an inline
+ * element and can be removed or split to in order to modifying inline
+ * styles.
+ */
+ static bool IsRemovableInlineStyleElement(dom::Element& aElement);
static bool IsFormatNode(nsINode* aNode);
static bool IsFormatNode(nsIDOMNode* aNode);
static bool IsNodeThatCanOutdent(nsINode* aNode);