Simon Wanner
bf6d64c199
LibGfx: Add a loader the Web Open Font Format (WOFF)
...
This format is 'just' a zlib compressed wrapper for TrueType/OpenType
which makes implementing it rather convenient. :^)
2022-04-09 23:48:18 +02:00
Simon Wanner
206d6ece55
LibGfx: Move other font-related files to LibGfx/Font/
2022-04-09 23:48:18 +02:00
Simon Wanner
6f8fd91f22
LibGfx: Move TTF files from TrueTypeFont/ to Font/TrueType/
2022-04-09 23:48:18 +02:00
stelar7
ce08fae13b
Meta: Add fuzzer for Poly1305
2022-04-08 14:02:02 +04:30
Timothy Flynn
1f2542247f
LibUnicode: Upgrade to CLDR version 41.0.0
...
Release notes: https://cldr.unicode.org/index/downloads/cldr-41
Note that the HourCycleRegion enum now contains 272 entires, thus needs
to be bumped from u8 to u16.
2022-04-07 08:29:10 -04:00
Timothy Flynn
8a46794ff8
LibUnicode: Replace individual UCD file downloads with single UCD.zip
...
Instead of downloading nearly 20 files individually, we can download a
single .zip file similar to how we download a single CLDR .zip. This is
to reduce the number of connections/downloads to/from unicode.org.
2022-04-06 17:12:08 -07:00
Stephan Unverwerth
5bb76e9b63
LibGL+LibGPU+LibSoftGPU: Load SoftGPU driver dynamically
...
This loads libsoftgpu.so during GLContext creation and instantiates the
device class which is then passed into the GLContext constructor.
2022-04-06 11:32:24 +02:00
Kenneth Myhra
0b86574293
LibWeb: Verify argument_check before generating if statement
...
This fixes an error where we would generate an empty 'if' statement body
if argument_check was empty.
2022-04-05 22:33:44 +02:00
Kenneth Myhra
887e13f364
LibWeb: Get argument count from Function::parameters::size()
...
Previously this retrieved argument count from Function::length() which
did not return the correct count in all situations.
2022-04-05 22:33:44 +02:00
Kenneth Myhra
ba23d036bd
LibWeb: Add IDLGenerators::is_primitive()
...
This adds the is_primitive() method as described in the Web IDL
specification. is_primitive() returns true if the type is a bigint,
boolean or numeric type.
2022-04-05 22:33:44 +02:00
Timothy Flynn
b36c3a68d8
js: Convert non-UTF-8 encoded files to UTF-8 before parsing
2022-04-05 00:14:29 +01:00
Nico Weber
fd82121319
Tests: Add some test coverage for the TTF parser
...
This is in Tests/LibTTF instead of Tests/LibGfx because Tests/LibGfx
depends on serenity's file system layout and can't run in lagom,
but this new test runs just fine in lagom.
2022-04-03 19:16:03 +02:00
Nico Weber
9b24600779
Meta: Give Lagom build errors colored diagnostics
...
Non-lagom builds get this from the root CMakeLists.txt file,
but lagom builds didn't before this change.
2022-04-03 19:16:03 +02:00
Jelle Raaijmakers
9ca15793e7
Meta: Move screenshots into subdir
...
It's a bit neater to give them their own directory instead of jamming
them in between our shell scripts :^)
2022-04-03 13:14:15 +01:00
Jelle Raaijmakers
31b72c20f0
Meta: Check port
property for ports in the linter
...
We now make sure the directory name and `port` property are identical.
2022-04-03 12:35:14 +01:00
Sam Atkins
b07659d00c
Meta+LibWeb: Port PropertyID.h/cpp generators to invoke_generator()
2022-04-02 09:18:07 -04:00
Sam Atkins
fc81d6c9f3
Meta+LibWeb: Port ValueID.h/cpp generators to invoke_generator()
2022-04-02 09:18:07 -04:00
Sam Atkins
cb406e79f4
Meta+LibWeb: Port MediaFeatureID.h/cpp generators to invoke_generator()
2022-04-02 09:18:07 -04:00
Idan Horowitz
b172b56757
LibWeb: Include relevant headers in IDL constructor implementations
...
Similarly to implementations of prototype methods, the implementations
of constructors sometimes require generated types.
2022-04-02 13:13:37 +03:00
Idan Horowitz
a7f2d46b49
LibWeb: Support integral default values for IDL unions
2022-04-02 13:13:37 +03:00
Idan Horowitz
32d142b06c
LibWeb: Remove no-op calls to emit_includes_for_all_imports for headers
...
When called with is_header=true the method was essentailly a no-op.
2022-04-02 13:13:37 +03:00
Idan Horowitz
110d73d786
LibWeb: Strip double quotes from IDL enum default values
2022-04-02 13:13:37 +03:00
Idan Horowitz
3ee8b5e534
LibWeb: Cache and reuse resolved IDL imports instead of rejecting them
...
This ensures that transitive imports succeed even if they were directly
imported beforehand.
2022-04-02 12:22:48 +04:30
Ali Mohammad Pur
265dd9b445
Meta: Avoid showing elements in extremely large vectors in gdb
...
This is most often just an invalid vector anyway.
2022-04-01 21:41:41 +01:00
Ali Mohammad Pur
899888bbf2
Meta: Update gdb script for changes in HashTable
2022-04-01 21:41:41 +01:00
Idan Horowitz
086969277e
Everywhere: Run clang-format
2022-04-01 21:24:45 +01:00
Idan Horowitz
852ae6c195
Meta: Switch to clang-format-14 as the standard formatter
...
Now that clang-format-14 ubuntu packages are available, it's time to
finally upgrade our clang-format version. This version brings with it
a bunch of useful features with const-placement being the most notable.
These will be enabled in the following commits.
2022-04-01 21:24:45 +01:00
Liav A
d0abae8907
Kernel: Stop debug spam when using mmap on /dev/mem device
...
This is not really useful and quite annoying so let's disable it by
default.
2022-04-01 19:59:45 +02:00
Tim Schumacher
743922984c
Fuzzers: Add a basic input shim when running standalone
2022-03-31 22:11:04 -07:00
Tim Schumacher
bf502ae3b0
CMake: Allow building fuzzing targets without libFuzzer or OSS-Fuzz
2022-03-31 22:11:04 -07:00
Tim Schumacher
e3519b8e5c
Meta: Rename Fuzzer flags to ENABLE_FUZZERS_{LIBFUZZER,OSSFUZZ}
2022-03-31 22:11:04 -07:00
EWouters
98db3a3ce9
Meta: Fix format-string in the port linter
2022-03-31 21:59:20 -07:00
Matthew Olsson
5f9d35909d
LibPDF: Move font files into their own directory
2022-03-31 18:10:45 +02:00
Idan Horowitz
f45d361f03
LibWeb: Replace ad-hoc EventHandler type with callback function typedef
2022-03-31 01:10:47 +02:00
Idan Horowitz
1c4f128fd1
LibWeb: Add support for IDL callback functions
2022-03-31 01:10:47 +02:00
Idan Horowitz
9ff79c9d54
LibWeb: Support non-interface top-level extended attributes
2022-03-31 01:10:47 +02:00
Idan Horowitz
c14cb65215
LibWeb: Add support for IDL typedefs
2022-03-31 01:10:47 +02:00
Idan Horowitz
f0cd28dedd
LibWeb: Stop generating C++ includes for non-code-generating IDL files
...
Specifically, IDL files that do not include interface or enumeration
declarations do not generate any code, and as such should not be
included.
2022-03-31 01:10:47 +02:00
Pankaj Raghav
820a653725
Meta: Use 4k logical and physical blocks for nvme in QEMU
...
4k logical blocks are better for block devices in QEMU as they align
with the underlying filesystem which typically has 4k logical blocks
such as our EXT2 filesystem.
2022-03-30 19:31:12 +03:00
Timothy Flynn
066352c9aa
LibJS+LibUnicode: Align ECMA-402 "sanctioned" terminology with UTS 35
...
This is an editorial change in the Intl spec. See:
087995c
233d29c
This also adds a missing spec link for the sanctioned units and fixes a
broken spec link for IsSanctionedSingleUnitIdentifier. In LibUnicode,
the NumberFormat generator is updated to use the constexpr helper to
retrieve sanctioned units.
2022-03-30 14:24:32 +01:00
Tom Maisey
d63cb35c0d
Meta: Fix e2fsck variable on macOS in build-image-qemu.sh
...
Despite carefully adding homebrew's e2fsprogs to the PATH,
the script then defined E2FSCK as if we are always on Linux.
2022-03-30 01:57:51 -07:00
Idan Horowitz
824cf570d3
LibWeb: Stop casting unsigned long IDL return values to i32
...
These values may not fit into an i32.
2022-03-30 08:56:25 +03:00
Idan Horowitz
44601a8e74
LibWeb: Support IDL optional integer arguments
2022-03-30 08:56:25 +03:00
Kenneth Myhra
de7d333d43
markdown-check: Port to LibMain
2022-03-29 21:28:29 -07:00
Jelle Raaijmakers
c637795888
Ports: Update PHP to 8.1.4
2022-03-29 22:49:27 +01:00
Andreas Kling
ab4c73746c
LibWeb: Add @@toStringTag own property on wrappers
...
This makes wrappers stringify to the expected "[object InterfaceName]"
instead of just "[object Object]".
2022-03-29 17:03:15 +02:00
Karol Kosek
dcb24e943d
Tests: Add a basic UTF-8 to UTF-8 LibTextCodec test
2022-03-29 01:01:32 +02:00
Daniel Bertalan
3d0178a2f7
Meta: Do not try to unzip the already decompressed WASM test suite .tar
...
WASM_SPEC_TEST_TAR_PATH actually refers to a tarball that has already
been decompressed with gzip, so running `tar -xzf` on it fails.
I introduced this mistake in 66582a875f
.
There is no need to keep an intermediary plain .tar file around, we can
pass the WASM_SPEC_TEST_GZ_PATH .tar.gz directly to `tar -xzf`.
2022-03-29 00:00:36 +02:00
Ali Mohammad Pur
67357fe984
LibXML: Add a fairly basic XML parser
...
Currently this can parse XML and resolve external resources/references,
and read a DTD (but not apply or verify its rules).
That's good enough for _most_ XHTML documents as the HTML 5 spec
enforces its own rules about document well-formedness, and does not make
use of XML DTDs (aside from a list of predefined entities).
An accompanying `xml` utility is provided that can read and dump XML
documents, and can also run the XML conformance test suite.
2022-03-28 23:11:48 +02:00
Hendiadyoin1
bd6927ecab
Meta: Refactor the IPC-compiler and port it to LibMain
...
This does a few things in total:
* Ports the IPC-compiler to LibMain
* Extract some compiler steps into separate functions
* Minify some appends to use appendln (or appendff in the case of
StringBuilder)
This reduces the clang-tidies maximum cognitive-complexity score for
this file from 325 to under 100.
2022-03-28 23:08:08 +02:00