1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-17 18:02:06 +00:00
serenity/Libraries/LibWeb
Andreas Kling a37c29e353 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. :^)
2020-03-19 19:07:56 +01:00
..
Bindings LibWeb: Add <canvas> element and start fleshing out CRC2D 2020-03-19 19:07:56 +01:00
CodeGenerators LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
CSS LibWeb: Don't try to repaint frameless documents in CSSStyleValue 2020-03-18 11:26:31 +01:00
DOM LibWeb: Add <canvas> element and start fleshing out CRC2D 2020-03-19 19:07:56 +01:00
Layout LibWeb: Add <canvas> element and start fleshing out CRC2D 2020-03-19 19:07:56 +01:00
Parser LibWeb: Start working on DOM event support 2020-03-18 17:13:22 +01:00
Scripts LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
DOMTreeModel.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
DOMTreeModel.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Dump.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Dump.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
FontCache.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
FontCache.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Forward.h LibWeb: Add <canvas> element and start fleshing out CRC2D 2020-03-19 19:07:56 +01:00
Frame.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Frame.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HtmlView.cpp LibWeb: Fire "mousedown" and "mousemove" events in the DOM :^) 2020-03-18 17:13:22 +01:00
HtmlView.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Makefile LibWeb: Add <canvas> element and start fleshing out CRC2D 2020-03-19 19:07:56 +01:00
RenderingContext.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
ResourceLoader.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
ResourceLoader.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
StylePropertiesModel.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
StylePropertiesModel.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
TreeNode.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00