LibWeb: Avoid HashMap copy in BrowsingContext::set_frame_nesting_levels

This commit is contained in:
Andreas Kling 2021-07-10 01:44:02 +02:00
parent 9bc3ad75b4
commit f670adb298
Notes: sideshowbarker 2024-07-18 09:26:21 +09:00

View File

@ -86,7 +86,7 @@ public:
void register_frame_nesting(URL const&);
bool is_frame_nesting_allowed(URL const&) const;
void set_frame_nesting_levels(const HashMap<URL, size_t> frame_nesting_levels) { m_frame_nesting_levels = move(frame_nesting_levels); };
void set_frame_nesting_levels(HashMap<URL, size_t> frame_nesting_levels) { m_frame_nesting_levels = move(frame_nesting_levels); };
HashMap<URL, size_t> const& frame_nesting_levels() const { return m_frame_nesting_levels; }
private: