瀏覽代碼

LibWeb: Remove unused "frame nesting" tracking from BrowsingContext

Andreas Kling 1 年之前
父節點
當前提交
94236c2532
共有 2 個文件被更改,包括 0 次插入17 次删除
  1. 0 10
      Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp
  2. 0 7
      Userland/Libraries/LibWeb/HTML/BrowsingContext.h

+ 0 - 10
Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp

@@ -489,16 +489,6 @@ void BrowsingContext::select_all()
     (void)selection->select_all_children(*document->body());
     (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()
 bool BrowsingContext::increment_cursor_position_offset()
 {
 {
     if (!m_cursor_position.increment_offset())
     if (!m_cursor_position.increment_offset())

+ 0 - 7
Userland/Libraries/LibWeb/HTML/BrowsingContext.h

@@ -171,12 +171,6 @@ public:
 
 
     void did_edit(Badge<EditEventHandler>);
     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;
     bool has_a_rendering_opportunity() const;
 
 
     JS::GCPtr<DOM::Node> currently_focused_area();
     JS::GCPtr<DOM::Node> currently_focused_area();
@@ -255,7 +249,6 @@ private:
     RefPtr<Core::Timer> m_cursor_blink_timer;
     RefPtr<Core::Timer> m_cursor_blink_timer;
     bool m_cursor_blink_state { false };
     bool m_cursor_blink_state { false };
 
 
-    HashMap<AK::URL, size_t> m_frame_nesting_levels;
     DeprecatedString m_name;
     DeprecatedString m_name;
 
 
     // https://html.spec.whatwg.org/multipage/browsers.html#tlbc-group
     // https://html.spec.whatwg.org/multipage/browsers.html#tlbc-group