diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-04 23:27:36 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-04 23:27:36 +0200 |
commit | cb3287597d1804be54861f88a8ea69e11c279aa4 (patch) | |
tree | f713449c9bf01e794449914822c0ac8fa3211483 /Demos/WebView | |
parent | 8914e945cb6977b28e5f001f5f1e1a3aa2a31d4e (diff) | |
download | serenity-cb3287597d1804be54861f88a8ea69e11c279aa4.zip |
WebContent: Give the WebContentView a proper GUI::Frame look :^)
Diffstat (limited to 'Demos/WebView')
-rw-r--r-- | Demos/WebView/WebContentView.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Demos/WebView/WebContentView.cpp b/Demos/WebView/WebContentView.cpp index fcc27a6d12..9e4c5ffe98 100644 --- a/Demos/WebView/WebContentView.cpp +++ b/Demos/WebView/WebContentView.cpp @@ -48,8 +48,13 @@ void WebContentView::load(const URL& url) void WebContentView::paint_event(GUI::PaintEvent& event) { + GUI::Frame::paint_event(event); + GUI::Painter painter(*this); + painter.add_clip_rect(frame_inner_rect()); painter.add_clip_rect(event.rect()); + painter.translate(frame_thickness(), frame_thickness()); + ASSERT(m_bitmap); painter.blit({ 0, 0 }, *m_bitmap, m_bitmap->rect()); } |