summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2023-05-26 23:30:54 +0330
committerAndreas Kling <kling@serenityos.org>2023-05-29 05:35:41 +0200
commite90752cc21961b531a94abb4b33e238670dd6d48 (patch)
tree568577d2c950ef76b6e83156b8dd10826e9be1c5 /AK
parentf07c4ffbc840b3c79c0f2fd52b41d95bcfa35e91 (diff)
downloadserenity-e90752cc21961b531a94abb4b33e238670dd6d48.zip
LibWeb: Add preliminary support for CSS animations
This partially implements CSS-Animations-1 (though there are references to CSS-Animations-2). Current limitations: - Multi-selector keyframes are not supported. - Most animation properties are ignored. - Timing functions are not applied. - Non-absolute values are not interpolated unless the target is also of the same non-absolute type (e.g. 10% -> 25%, but not 10% -> 20px). - The JavaScript interface is left as an exercise for the next poor soul looking at this code. With those said, this commit implements: - Interpolation for most common types - Proper keyframe resolution (including the synthetic from-keyframe containing the initial state) - Properly driven animations, and proper style invalidation Co-Authored-By: Andreas Kling <kling@serenityos.org>
Diffstat (limited to 'AK')
-rw-r--r--AK/Debug.h.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/AK/Debug.h.in b/AK/Debug.h.in
index b81b9a0853..087aa34a35 100644
--- a/AK/Debug.h.in
+++ b/AK/Debug.h.in
@@ -242,6 +242,10 @@
# cmakedefine01 LIBWEB_CSS_DEBUG
#endif
+#ifndef LIBWEB_CSS_ANIMATION_DEBUG
+# cmakedefine01 LIBWEB_CSS_ANIMATION_DEBUG
+#endif
+
#ifndef LINE_EDITOR_DEBUG
# cmakedefine01 LINE_EDITOR_DEBUG
#endif