mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibWebView: Define the OOPWV's superclass in one place
This lets us change it later without having to remember to update a bunch of uses. (More are coming in the next commit.)
This commit is contained in:
parent
b517032354
commit
2654bfead4
Notes:
sideshowbarker
2024-07-17 04:05:23 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/2654bfead4 Pull-request: https://github.com/SerenityOS/serenity/pull/16128
@ -94,7 +94,7 @@ void OutOfProcessWebView::load_empty_document()
|
||||
|
||||
void OutOfProcessWebView::paint_event(GUI::PaintEvent& event)
|
||||
{
|
||||
GUI::AbstractScrollableWidget::paint_event(event);
|
||||
Super::paint_event(event);
|
||||
|
||||
// If the available size is empty, we don't have a front or back bitmap to draw.
|
||||
if (available_size().is_empty())
|
||||
@ -115,7 +115,7 @@ void OutOfProcessWebView::paint_event(GUI::PaintEvent& event)
|
||||
|
||||
void OutOfProcessWebView::resize_event(GUI::ResizeEvent& event)
|
||||
{
|
||||
GUI::AbstractScrollableWidget::resize_event(event);
|
||||
Super::resize_event(event);
|
||||
handle_resize();
|
||||
}
|
||||
|
||||
@ -193,7 +193,7 @@ void OutOfProcessWebView::doubleclick_event(GUI::MouseEvent& event)
|
||||
|
||||
void OutOfProcessWebView::theme_change_event(GUI::ThemeChangeEvent& event)
|
||||
{
|
||||
GUI::AbstractScrollableWidget::theme_change_event(event);
|
||||
Super::theme_change_event(event);
|
||||
client().async_update_system_theme(Gfx::current_system_theme_buffer());
|
||||
request_repaint();
|
||||
}
|
||||
|
@ -26,6 +26,8 @@ class OutOfProcessWebView final
|
||||
, public ViewImplementation {
|
||||
C_OBJECT(OutOfProcessWebView);
|
||||
|
||||
using Super = GUI::AbstractScrollableWidget;
|
||||
|
||||
public:
|
||||
virtual ~OutOfProcessWebView() override;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user