mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:58:11 +00:00
AK: Port URL::m_fragment from DeprecatedString to String
This commit is contained in:
parent
5663a2d3b4
commit
9d60f23abc
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