summaryrefslogtreecommitdiffstats
path: root/dom/html/nsGenericHTMLElement.h
diff options
context:
space:
mode:
authorathenian200 <athenian200@outlook.com>2020-01-16 14:07:04 -0600
committerathenian200 <athenian200@outlook.com>2020-01-16 14:07:04 -0600
commit42e48167713abfa3c1f11274179b489bb6369b57 (patch)
tree31ceba32e850ac856b09838c89e61e27df1538f0 /dom/html/nsGenericHTMLElement.h
parente4c4c20e7e539d891c3f10b6ef5608c08699c077 (diff)
downloadUXP-42e48167713abfa3c1f11274179b489bb6369b57.tar
UXP-42e48167713abfa3c1f11274179b489bb6369b57.tar.gz
UXP-42e48167713abfa3c1f11274179b489bb6369b57.tar.lz
UXP-42e48167713abfa3c1f11274179b489bb6369b57.tar.xz
UXP-42e48167713abfa3c1f11274179b489bb6369b57.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.h6
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