mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
WebContent: Basic scrolling support! :^)
The WebContentView widget now inherits from GUI::ScrollableWidget and will pass its scroll offset over to the WebContent process as it's changing. This is not super efficient and can get a bit laggy, but it will do fine as an initial scrolling implementation. Just like the single-process Web::PageView widget, WebContentView also paints scrolled content by translating the Gfx::Painter.
This commit is contained in:
parent
ada3c9ca46
commit
e91871aed7
7 changed files with 58 additions and 13 deletions
|
@ -48,6 +48,7 @@ private:
|
|||
virtual void handle(const Messages::WebContentClient::DidFinishLoad&) override;
|
||||
virtual void handle(const Messages::WebContentClient::DidInvalidateContentRect&) override;
|
||||
virtual void handle(const Messages::WebContentClient::DidChangeSelection&) override;
|
||||
virtual void handle(const Messages::WebContentClient::DidLayout&) override;
|
||||
|
||||
WebContentView& m_view;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue