diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 07:43:03 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 07:43:03 -0400 |
commit | 6d76ab9b6c19d0829c343e1bc3cd7865221d64ba (patch) | |
tree | f664dfac761bd71fdccf73d4d3d76abb87b2adef /editor/libeditor/TextEditRules.h | |
parent | 9e5e58c0f6e1c65674cc688816f387532661d6f1 (diff) | |
download | UXP-6d76ab9b6c19d0829c343e1bc3cd7865221d64ba.tar UXP-6d76ab9b6c19d0829c343e1bc3cd7865221d64ba.tar.gz UXP-6d76ab9b6c19d0829c343e1bc3cd7865221d64ba.tar.lz UXP-6d76ab9b6c19d0829c343e1bc3cd7865221d64ba.tar.xz UXP-6d76ab9b6c19d0829c343e1bc3cd7865221d64ba.zip |
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
Diffstat (limited to 'editor/libeditor/TextEditRules.h')
-rw-r--r-- | editor/libeditor/TextEditRules.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/libeditor/TextEditRules.h b/editor/libeditor/TextEditRules.h index 6d4915f15..208e14d23 100644 --- a/editor/libeditor/TextEditRules.h +++ b/editor/libeditor/TextEditRules.h @@ -66,7 +66,7 @@ public: bool* aCancel, bool* aHandled) override; NS_IMETHOD DidDoAction(Selection* aSelection, RulesInfo* aInfo, nsresult aResult) override; - NS_IMETHOD DocumentIsEmpty(bool* aDocumentIsEmpty) override; + NS_IMETHOD_(bool) DocumentIsEmpty() override; NS_IMETHOD DocumentModified() override; protected: |