mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 14:48:15 +00: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:
committed by
Andreas Kling
parent
b517032354
commit
2654bfead4
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user