mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
LibWeb: Remove unused method on HTMLButtonElement
This commit is contained in:
parent
27ae172e7e
commit
5dfe21be85
2 changed files with 0 additions and 15 deletions
|
@ -57,20 +57,6 @@ void HTMLButtonElement::initialize(JS::Realm& realm)
|
||||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::HTMLButtonElementPrototype>(realm, "HTMLButtonElement"));
|
set_prototype(&Bindings::ensure_web_prototype<Bindings::HTMLButtonElementPrototype>(realm, "HTMLButtonElement"));
|
||||||
}
|
}
|
||||||
|
|
||||||
StringView HTMLButtonElement::type() const
|
|
||||||
{
|
|
||||||
auto value = deprecated_attribute(HTML::AttributeNames::type);
|
|
||||||
|
|
||||||
#define __ENUMERATE_HTML_BUTTON_TYPE_ATTRIBUTE(keyword, _) \
|
|
||||||
if (value.equals_ignoring_ascii_case(#keyword##sv)) \
|
|
||||||
return #keyword##sv;
|
|
||||||
ENUMERATE_HTML_BUTTON_TYPE_ATTRIBUTES
|
|
||||||
#undef __ENUMERATE_HTML_BUTTON_TYPE_ATTRIBUTE
|
|
||||||
|
|
||||||
// The missing value default and invalid value default are the Submit Button state.
|
|
||||||
return "submit"sv;
|
|
||||||
}
|
|
||||||
|
|
||||||
HTMLButtonElement::TypeAttributeState HTMLButtonElement::type_state() const
|
HTMLButtonElement::TypeAttributeState HTMLButtonElement::type_state() const
|
||||||
{
|
{
|
||||||
auto value = deprecated_attribute(HTML::AttributeNames::type);
|
auto value = deprecated_attribute(HTML::AttributeNames::type);
|
||||||
|
|
|
@ -34,7 +34,6 @@ public:
|
||||||
#undef __ENUMERATE_HTML_BUTTON_TYPE_ATTRIBUTE
|
#undef __ENUMERATE_HTML_BUTTON_TYPE_ATTRIBUTE
|
||||||
};
|
};
|
||||||
|
|
||||||
StringView type() const;
|
|
||||||
TypeAttributeState type_state() const;
|
TypeAttributeState type_state() const;
|
||||||
WebIDL::ExceptionOr<void> set_type(String const&);
|
WebIDL::ExceptionOr<void> set_type(String const&);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue