mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 11:09:18 +00:00
LibWeb: Limit the maximum size of <canvas> bitmap buffers
We will no longer create bitmap buffers for canvases that exceed a total area of (16384 * 16384) pixels. This matches what some other browser do. Thanks to @itamar8910 for finding this! :^)
This commit is contained in:
parent
228ace854c
commit
3f698db85d
Notes:
sideshowbarker
2024-07-19 07:35:07 +09:00
Author: https://github.com/awesomekling
Commit: 3f698db85d
5 changed files with 49 additions and 18 deletions
|
@ -42,8 +42,8 @@ LayoutCanvas::~LayoutCanvas()
|
|||
|
||||
void LayoutCanvas::layout()
|
||||
{
|
||||
rect().set_width(node().preferred_width());
|
||||
rect().set_height(node().preferred_height());
|
||||
rect().set_width(node().requested_width());
|
||||
rect().set_height(node().requested_height());
|
||||
LayoutReplaced::layout();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue