Andreas Kling
342b787d1c
LibWeb: Move main thread JavaScript VM to its own file
...
Instead of being a weird little global function in DOM/Document.cpp,
you can now get the main thread JS VM via Bindings::main_thread_vm().
2021-02-03 10:45:39 +01:00
Luke
0a1226344a
LibWeb: Add XHREventTarget and have XHR inherit from it
2021-01-23 22:29:21 +01:00
Luke
4f2e154dbe
LibWeb: Flesh out existing XHR methods a bit more
...
This makes open, send and setRequestHeader a bit more spec compliant and
adds a bunch of FIXMEs for unimplemented parts.
2021-01-23 22:29:21 +01:00
Andreas Kling
cfa2fb2eb3
LibWeb: Generate JS bindings for Range from IDL :^)
2021-01-23 17:59:42 +01:00
Andreas Kling
8363b3ae99
LibWeb: Generate JS bindings for XMLHttpRequest from IDL :^)
...
Remove the hand-written XHR bindings in favor of generated ones.
2021-01-23 15:06:09 +01:00
Andreas Kling
5b91362d4e
LibWeb: Move XMLHttpRequest to separate XHR directory
...
In keeping with the one-directory-per-web-spec layout, let's move XHR
into its own clubhouse.
2021-01-23 11:51:36 +01:00
Emanuele Torre
68c8b52612
Build: Use cmake's make_directory utility instead of env(1) and mkdir(1)
...
..in CMake files.
Also, the `-S`s were unnecessary here since "mkdir" doesn't have any
spaces and these are not shebangs.
2021-01-22 22:14:42 +01:00
Jonathan Turner
0bf5669ba3
Meta: Get building on NixOS ( #5005 )
2021-01-22 17:44:05 +01:00
Andreas Kling
fd7920fa8f
LibWeb: Add a very naive Layout::FlexFormattingContext :^)
...
This is very dumb and only lays out its child boxes on a horizontal
line with their shrink-to-fit widths.
You have to start somewhere! :^)
2021-01-18 20:20:13 +01:00
Andreas Kling
9e45594dc8
LibWeb: Stub out the PerformanceTiming object from Navigation Timing
...
Just have all the timing functions return 0 for now.
We can now run the Shynet JS on https://linus.dev/ although the XHR
is rejected by our same-origin policy.
2021-01-18 15:11:20 +01:00
Andreas Kling
252a98042d
LibWeb: Generate constructor and prototype classes for IDL interfaces
...
This patch adds a FooPrototype and FooConstructor class for each IDL
interface we generate JS bindings for.
These classes are very primitive and don't do everything they should
yet, but we have to start somewhere. :^)
Work towards #4789
2021-01-18 12:18:29 +01:00
Andreas Kling
0db6835e73
LibWeb: Move HTML::SubmitEvent functions out of line
2021-01-18 12:18:29 +01:00
Andreas Kling
13d7c09125
Libraries: Move to Userland/Libraries/
2021-01-12 12:17:46 +01:00