diff options
author | athenian200 <athenian200@outlook.com> | 2020-01-16 14:07:04 -0600 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 12:16:31 +0200 |
commit | 563dc95cdbdd94496360f14fc277c4b8fc79bbab (patch) | |
tree | 8c0dd0fb0fc73264d0a513f06497155071c598d1 /dom/html/nsGenericHTMLElement.h | |
parent | 7e59ac9036ae2cbb91ff216e50eac75b9588557a (diff) | |
download | UXP-563dc95cdbdd94496360f14fc277c4b8fc79bbab.tar UXP-563dc95cdbdd94496360f14fc277c4b8fc79bbab.tar.gz UXP-563dc95cdbdd94496360f14fc277c4b8fc79bbab.tar.lz UXP-563dc95cdbdd94496360f14fc277c4b8fc79bbab.tar.xz UXP-563dc95cdbdd94496360f14fc277c4b8fc79bbab.zip |
Issue #1356 - Remove -moz-user-input disabled to improve event handling.
Diffstat (limited to 'dom/html/nsGenericHTMLElement.h')
-rw-r--r-- | dom/html/nsGenericHTMLElement.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dom/html/nsGenericHTMLElement.h b/dom/html/nsGenericHTMLElement.h index 72039f266..940404f93 100644 --- a/dom/html/nsGenericHTMLElement.h +++ b/dom/html/nsGenericHTMLElement.h @@ -817,8 +817,8 @@ public: /** * Returns the current disabled state of the element. */ - virtual bool IsDisabled() const { - return false; + bool IsDisabled() const { + return State().HasState(NS_EVENT_STATE_DISABLED); } bool IsHidden() const @@ -1222,8 +1222,6 @@ public: virtual nsresult PreHandleEvent( mozilla::EventChainPreVisitor& aVisitor) override; - virtual bool IsDisabled() const override; - /** * This callback is called by a fieldest on all its elements whenever its * disabled attribute is changed so the element knows its disabled state |