mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
UI: Pass parent WebView by non-const ref when creating children
We need to call non-const methods on this guy and access its members in a non-const way.
This commit is contained in:
parent
5c4b65996e
commit
6ff0373556
Notes:
github-actions[bot]
2025-04-16 16:43:45 +00:00
Author: https://github.com/ADKaster
Commit: 6ff0373556
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4362
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/Hendiadyoin1
6 changed files with 6 additions and 6 deletions
|
@ -138,7 +138,7 @@ NonnullOwnPtr<HeadlessWebView> HeadlessWebView::create(Core::AnonymousBuffer the
|
|||
return view;
|
||||
}
|
||||
|
||||
NonnullOwnPtr<HeadlessWebView> HeadlessWebView::create_child(HeadlessWebView const& parent, u64 page_index)
|
||||
NonnullOwnPtr<HeadlessWebView> HeadlessWebView::create_child(HeadlessWebView& parent, u64 page_index)
|
||||
{
|
||||
auto view = adopt_own(*new HeadlessWebView(parent.m_theme, parent.m_viewport_size));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue