1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:38:12 +00:00
serenity/Libraries
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
..
LibAudio Userspace: Add missing #includes now that AK/StdLibExtras.h is smaller 2020-03-08 13:06:51 +01:00
LibBareMetal ACPI: Examine bit width in Generic address structure before asserting 2020-03-12 12:36:38 +01:00
LibC LibC: Add new syscall to allow changing the system date 2020-03-19 15:48:00 +01:00
LibCore LibCore: Use monotonic time when handling timers 2020-03-19 15:48:00 +01:00
LibELF Userspace: Add missing #includes now that AK/StdLibExtras.h is smaller 2020-03-08 13:06:51 +01:00
LibGfx LibGUI: Use themes for syntax highlighting 2020-03-16 13:39:34 +01:00
LibGUI HackStudio: Expand project tree view by default 2020-03-18 16:33:54 +01:00
LibIPC AK: Remove unnecessary casts to size_t, after Vector changes 2020-03-01 12:58:22 +01:00
LibJS LibJS: Prefer FunctionDeclaration if a statement begins with "function" 2020-03-19 18:07:07 +01:00
LibM LibM: Implement floating point variants of various math functions 2020-02-25 20:48:42 +01:00
LibMarkdown Userspace: Add missing #includes now that AK/StdLibExtras.h is smaller 2020-03-08 13:06:51 +01:00
LibPCIDB Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
LibProtocol Kernel+LibC: Rename shared buffer syscalls to use a prefix 2020-02-28 12:55:58 +01:00
LibPthread Userspace: Add missing #includes now that AK/StdLibExtras.h is smaller 2020-03-08 13:06:51 +01:00
LibThread LibThread: Fix destroying background actions 2020-02-25 10:17:31 +01:00
LibVT Userspace: Add missing #includes now that AK/StdLibExtras.h is smaller 2020-03-08 13:06:51 +01:00
LibWeb LibWeb: Add <canvas> element and start fleshing out CRC2D 2020-03-19 19:07:56 +01:00
Makefile Build: Only look at SUBDIRS with Makefiles 2020-02-25 19:56:48 +01:00