mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Android: Provide viewport_size instead of viewport_rect
This updates the Android WebViewImplementationNative to match changes
made in commit 5285e22f2a.
We remove the async_set_viewport_rect call because the parent
ViewImplementation::handle_resize call does that for us.
This commit is contained in:
committed by
Andrew Kaster
parent
85a92fb4d7
commit
ebc92dee93
@@ -93,8 +93,7 @@ void WebViewImplementationNative::paint_into_bitmap(void* android_bitmap_raw, An
|
||||
|
||||
void WebViewImplementationNative::set_viewport_geometry(int w, int h)
|
||||
{
|
||||
m_viewport_rect = { { 0, 0 }, { w, h } };
|
||||
client().async_set_viewport_rect(0, m_viewport_rect);
|
||||
m_viewport_size = { w, h };
|
||||
handle_resize();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user