mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03:00
LibWeb: Avoid HashMap copy in BrowsingContext::set_frame_nesting_levels
This commit is contained in:
parent
9bc3ad75b4
commit
f670adb298
Notes:
sideshowbarker
2024-07-18 09:26:21 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f670adb298c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user