1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:27:43 +00:00

LibWeb: Take a StringView in Document::get_elements_by_class_name

We only ever use the view of the DeprecatedFlyString anyway, so let's
just use a StringView.
This commit is contained in:
Shannon Booth 2023-09-12 22:34:25 +12:00 committed by Andreas Kling
parent ec39a5a41a
commit 827170f6e6
2 changed files with 3 additions and 3 deletions

View file

@ -217,7 +217,7 @@ public:
void schedule_layout_update();
JS::NonnullGCPtr<HTMLCollection> get_elements_by_name(DeprecatedString const&);
JS::NonnullGCPtr<HTMLCollection> get_elements_by_class_name(DeprecatedFlyString const&);
JS::NonnullGCPtr<HTMLCollection> get_elements_by_class_name(StringView);
JS::NonnullGCPtr<HTMLCollection> applets();
JS::NonnullGCPtr<HTMLCollection> anchors();