mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
LibWeb: Make Element::remove_attribute take a StringView
It already delegates to a function which accepts a StringView, so there is no advantage here in taking a FlyString. Ideally, both of these functions should be taking a 'FlyString const&', so leave a FIXME for that. In the meantime, this should help in porting away from DeprecatedString.
This commit is contained in:
parent
fc7f79e0e7
commit
ab674f3bf6
3 changed files with 6 additions and 2 deletions
|
@ -114,7 +114,9 @@ public:
|
|||
WebIDL::ExceptionOr<JS::GCPtr<Attr>> set_attribute_node(Attr&);
|
||||
WebIDL::ExceptionOr<JS::GCPtr<Attr>> set_attribute_node_ns(Attr&);
|
||||
|
||||
void remove_attribute(DeprecatedFlyString const& name);
|
||||
// FIXME: This should take a 'FlyString cosnt&'
|
||||
void remove_attribute(StringView name);
|
||||
|
||||
WebIDL::ExceptionOr<bool> toggle_attribute(DeprecatedFlyString const& name, Optional<bool> force);
|
||||
size_t attribute_list_size() const;
|
||||
NamedNodeMap const* attributes() const { return m_attributes.ptr(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue