UI/Qt: Send the rect of the window itself to WebContent

This ensures that the live values we return to WPT match the requested
values.
This commit is contained in:
Timothy Flynn 2024-10-28 15:13:57 -04:00 committed by Tim Ledbetter
parent 54f6db01af
commit e4f0e745a4
Notes: github-actions[bot] 2024-10-29 11:04:57 +00:00

View file

@ -1168,7 +1168,7 @@ void BrowserWindow::resizeEvent(QResizeEvent* event)
QWidget::resizeEvent(event);
for_each_tab([&](auto& tab) {
tab.view().set_window_size({ frameSize().width(), frameSize().height() });
tab.view().set_window_size({ width(), height() });
});
}
@ -1177,7 +1177,7 @@ void BrowserWindow::moveEvent(QMoveEvent* event)
QWidget::moveEvent(event);
for_each_tab([&](auto& tab) {
tab.view().set_window_position({ event->pos().x(), event->pos().y() });
tab.view().set_window_position({ x(), y() });
});
}