Skip to content

Commit

Permalink
Bug 921504 - add HTMLElement::inert r=emilio
Browse files Browse the repository at this point in the history
  • Loading branch information
asurkov committed Jul 21, 2020
1 parent 1004495 commit 3b087ff
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
4 changes: 4 additions & 0 deletions dom/html/nsGenericHTMLElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ class nsGenericHTMLElement : public nsGenericHTMLElementBase {
void SetHidden(bool aHidden, mozilla::ErrorResult& aError) {
SetHTMLBoolAttr(nsGkAtoms::hidden, aHidden, aError);
}
bool Inert() const { return GetBoolAttr(nsGkAtoms::inert); }
void SetInert(bool aInert, mozilla::ErrorResult& aError) {
SetHTMLBoolAttr(nsGkAtoms::inert, aInert, aError);
}
void Click(mozilla::dom::CallerType aCallerType);
void GetAccessKey(nsString& aAccessKey) {
GetHTMLAttr(nsGkAtoms::accesskey, aAccessKey);
Expand Down
2 changes: 2 additions & 0 deletions dom/webidl/HTMLElement.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ interface HTMLElement : Element {
// user interaction
[CEReactions, SetterThrows, Pure]
attribute boolean hidden;
[CEReactions, SetterThrows, Pure, Pref="html5.inert.enabled"]
attribute boolean inert;
[NeedsCallerType]
void click();
[CEReactions, SetterThrows, Pure]
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 3b087ff

Please sign in to comment.