mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 15:17:45 +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
|
@ -4,4 +4,5 @@ endpoint WebContentClient = 90
|
|||
DidPaint(Gfx::IntRect content_rect, i32 shbuf_id) =|
|
||||
DidInvalidateContentRect(Gfx::IntRect content_rect) =|
|
||||
DidChangeSelection() =|
|
||||
DidLayout(Gfx::IntSize content_size) =|
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue