From 6d76ab9b6c19d0829c343e1bc3cd7865221d64ba Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 17 Apr 2020 07:43:03 -0400 Subject: Bug 1360154 - nsIPlaintextEditor might have to have hasText property for UpdateOverlayTextVisibility * DocumentIsBody should return bool, not nsresult * Add fast path to check whether valus is emtpy Tag #1375 --- editor/libeditor/nsIEditRules.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/libeditor/nsIEditRules.h') diff --git a/editor/libeditor/nsIEditRules.h b/editor/libeditor/nsIEditRules.h index b186895ae..a493145cc 100644 --- a/editor/libeditor/nsIEditRules.h +++ b/editor/libeditor/nsIEditRules.h @@ -59,7 +59,7 @@ public: bool* aHandled) = 0; NS_IMETHOD DidDoAction(mozilla::dom::Selection* aSelection, mozilla::RulesInfo* aInfo, nsresult aResult) = 0; - NS_IMETHOD DocumentIsEmpty(bool* aDocumentIsEmpty) = 0; + NS_IMETHOD_(bool) DocumentIsEmpty() = 0; NS_IMETHOD DocumentModified() = 0; }; -- cgit v1.2.3