mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Everywhere: Convert from_string_view -> from_string_literal where static
This commit is contained in:
parent
37e0f7b381
commit
229b64a4b7
Notes:
github-actions[bot]
2024-09-11 09:59:55 +00:00
Author: https://github.com/asutoshvariar 🔰
Commit: 229b64a4b7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/457
26 changed files with 80 additions and 80 deletions
|
@ -1916,7 +1916,7 @@ ErrorOr<void> Element::scroll_into_view(Optional<Variant<bool, ScrollIntoViewOpt
|
|||
// 6. If the element does not have any associated box, or is not available to user-agent features, then return.
|
||||
document().update_layout();
|
||||
if (!layout_node())
|
||||
return Error::from_string_view("Element has no associated box"sv);
|
||||
return Error::from_string_literal("Element has no associated box");
|
||||
|
||||
// 7. Scroll the element into view with behavior, block, and inline.
|
||||
TRY(scroll_an_element_into_view(*this, behavior, block, inline_));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue