1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:08:13 +00:00

LibWeb: Remove unused "frame nesting" tracking from BrowsingContext

This commit is contained in:
Andreas Kling 2023-09-19 19:17:45 +02:00
parent 51caa14381
commit 94236c2532
2 changed files with 0 additions and 17 deletions

View file

@ -489,16 +489,6 @@ void BrowsingContext::select_all()
(void)selection->select_all_children(*document->body());
}
void BrowsingContext::register_frame_nesting(AK::URL const& url)
{
m_frame_nesting_levels.ensure(url)++;
}
bool BrowsingContext::is_frame_nesting_allowed(AK::URL const& url) const
{
return m_frame_nesting_levels.get(url).value_or(0) < 3;
}
bool BrowsingContext::increment_cursor_position_offset()
{
if (!m_cursor_position.increment_offset())