diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-19 19:07:56 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-19 19:07:56 +0100 |
commit | a37c29e35381bc2560515b384b442dab81a35fee (patch) | |
tree | e78428625be546f078e08132bebc2afbd98ada50 /Meta/screenshot-f8fc892.png | |
parent | 73d28a0551e75958270445efa67aca150621c8b9 (diff) | |
download | serenity-a37c29e35381bc2560515b384b442dab81a35fee.zip |
LibWeb: Add <canvas> element and start fleshing out CRC2D
This patch adds HTMLCanvasElement along with a LayoutCanvas object.
The DOM and layout parts are very similar to <img> elements.
The <canvas> element holds a Gfx::Bitmap which is sized according to
the "width" and "height" attributes on the element.
Calling .getContext("2d") on a <canvas> element gives you a context
object that draws into the underlying Gfx::Bitmap of the <canvas>.
The context weakly points to the <canvas> which allows it to outlive
the canvas element if needed.
This is really quite cool. :^)
Diffstat (limited to 'Meta/screenshot-f8fc892.png')
0 files changed, 0 insertions, 0 deletions