From 39045bfde82be80052eda5e9502b43b22ef3eb9e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 22 Mar 2020 21:15:49 +0100 Subject: LibWeb: Add basic support for requestAnimationFrame() We now support rAF, driven by GUI::DisplayLink callbacks. It's a bit strange how we keep registering new callbacks over and over. That's something we can definitely optimize. This allows you to update animations/whatever without doing it more often than the browser can display. --- Base/home/anon/www/raf.html | 24 ++++++++++++++++++++++++ Base/home/anon/www/welcome.html | 1 + 2 files changed, 25 insertions(+) create mode 100644 Base/home/anon/www/raf.html (limited to 'Base/home/anon/www') diff --git a/Base/home/anon/www/raf.html b/Base/home/anon/www/raf.html new file mode 100644 index 0000000000..25b9642b7a --- /dev/null +++ b/Base/home/anon/www/raf.html @@ -0,0 +1,24 @@ + + +rAF test + + + + + diff --git a/Base/home/anon/www/welcome.html b/Base/home/anon/www/welcome.html index c2bb81c828..d4d99a920a 100644 --- a/Base/home/anon/www/welcome.html +++ b/Base/home/anon/www/welcome.html @@ -24,6 +24,7 @@ h1 {

Some small test pages: