summaryrefslogtreecommitdiff
path: root/Meta/screenshot-d727005.png
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-19 19:07:56 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-19 19:07:56 +0100
commita37c29e35381bc2560515b384b442dab81a35fee (patch)
treee78428625be546f078e08132bebc2afbd98ada50 /Meta/screenshot-d727005.png
parent73d28a0551e75958270445efa67aca150621c8b9 (diff)
downloadserenity-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-d727005.png')
0 files changed, 0 insertions, 0 deletions