mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
AK: Port URL::m_fragment from DeprecatedString to String
This commit is contained in:
parent
5663a2d3b4
commit
9d60f23abc
Notes:
sideshowbarker
2024-07-17 03:00:02 +09:00
Author: https://github.com/shannonbooth
Commit: 9d60f23abc
Pull-request: https://github.com/SerenityOS/serenity/pull/20510
Reviewed-by: https://github.com/ADKaster ✅
21 changed files with 68 additions and 76 deletions
|
@ -302,8 +302,8 @@ void FrameLoader::resource_did_load()
|
|||
return;
|
||||
}
|
||||
|
||||
if (!url.fragment().is_empty())
|
||||
browsing_context().scroll_to_anchor(url.fragment());
|
||||
if (url.fragment().has_value() && !url.fragment()->is_empty())
|
||||
browsing_context().scroll_to_anchor(url.fragment()->to_deprecated_string());
|
||||
else
|
||||
browsing_context().scroll_to({ 0, 0 });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue