mirror of
https://github.com/RGBCube/serenity
synced 2025-07-19 20:27:35 +00:00
LibWeb: Remove unused "frame nesting" tracking from BrowsingContext
This commit is contained in:
parent
51caa14381
commit
94236c2532
2 changed files with 0 additions and 17 deletions
|
@ -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())
|
||||
|
|
|
@ -171,12 +171,6 @@ public:
|
|||
|
||||
void did_edit(Badge<EditEventHandler>);
|
||||
|
||||
void register_frame_nesting(AK::URL const&);
|
||||
bool is_frame_nesting_allowed(AK::URL const&) const;
|
||||
|
||||
void set_frame_nesting_levels(HashMap<AK::URL, size_t> frame_nesting_levels) { m_frame_nesting_levels = move(frame_nesting_levels); }
|
||||
HashMap<AK::URL, size_t> const& frame_nesting_levels() const { return m_frame_nesting_levels; }
|
||||
|
||||
bool has_a_rendering_opportunity() const;
|
||||
|
||||
JS::GCPtr<DOM::Node> currently_focused_area();
|
||||
|
@ -255,7 +249,6 @@ private:
|
|||
RefPtr<Core::Timer> m_cursor_blink_timer;
|
||||
bool m_cursor_blink_state { false };
|
||||
|
||||
HashMap<AK::URL, size_t> m_frame_nesting_levels;
|
||||
DeprecatedString m_name;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsers.html#tlbc-group
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue