Timothy Flynn
b65c07082b
Meta: Properly handle GN unit tests which define their own deps
...
If a unit tests defines a `deps` array, the unit test template would
have tried to overwrite it (and it is actually an error to overwrite
a non-empty list with another non-empty list).
2023-11-18 01:16:05 -07:00
Timothy Flynn
6a73e027a0
Meta: Remove explicit setting of output_dir
in GN unit test template
...
This is causing unit tests to be linked in //Build/obj/Tests rather than
//Build/bin. Note that object files are not affected by this change.
2023-11-18 01:16:05 -07:00
Timothy Flynn
392d9d080d
Meta: Port recent changes to GN build
...
80071b1d48face038a60b98fc8c3414de1cb9633
3f6a26d07d1536eb5e4e39eedfd4e0135eabf536
2023-11-18 01:16:05 -07:00
Simon Wanner
86b85aa68b
LibJS: Introduce Builtins
...
Builtins are functions that can be detected during bytecode generation
and enable fast-paths in the JIT.
2023-11-17 19:06:25 +01:00
Dan Klishch
2dba79bc6b
Meta: Globally disable floating point contraction
...
FP contraction is a standard-conforming behavior which allows the
compiler to calculate intermediate results of expressions containing
floating point numbers with a greater precision than the expression type
allows. And in theory, it enables additional optimizations, such as
replacing `a * b + c` with fma(a, b, c).
Unfortunately, it is extremely hard to predict when the contraction will
happen. For example, Clang 17 on x86_64 with the default options will
use FMA only for constant-folded non-constexpr expressions. So, in
practice, FP contraction leads to hard-to-find bugs and inconsistencies
between executables compiled with different toolchains or for different
OSes. And we had two instances of this happening last week.
Since we did not ever used -mfma on x86_64, this patch can only possibly
regress performance on Apple ARM devices, where FMA is enabled by
default. However, this regression will likely be negligible since the
difference would be one additional add instruction, which would be then
likely executed in parallel with something else.
2023-11-16 19:05:13 -05:00
Timothy Flynn
2c1bbf5a99
AK+LibIDL: Put IDL dbgln statement behind a debug flag
...
This is a bit spammy now that we are performing some overload resolution
at build time. The fallback to an interface has generally worked fine on
the types it warns about (BufferSource, Module, etc.) so let's not warn
about it for every build.
2023-11-15 23:42:53 +01:00
Timothy Flynn
50406f541b
Meta: Port recent changes to GN build
...
124c378472
2023-11-15 11:28:39 -05:00
Timothy Flynn
665a95e39e
Meta: Support (and default to) Ladybird's AppKit chrome in the GN build
...
The Qt chrome may be used by setting `enable_qt = true` in args.gn.
2023-11-14 14:29:35 -05:00
Timothy Flynn
652bbe172b
Meta: Port recent changes to GN build
...
86ee7d219e
75caccafa4
1b30b510b9
bb43bd2dee
6322d68b1b
73ef102b01
923027b1df
dfa79ba6d8
66c9696687
521f8bd5f2
734076946b
0df06ce273
1ca46afa2f
66bd75f2b9
43dc9dfb69
4b94b0b561
4c5d48f861
c4efc0a5aa
3999c74237
4d356cfca5
2023-11-14 09:36:36 -05:00
Timothy Flynn
6ac57448af
Meta: Explicitly set the sysroot path during Lagom builds
...
Otherwise, we don't set the -isysroot flag, and my mac is unable to
build with GN.
2023-11-14 09:36:36 -05:00
Sam Atkins
763b08c23f
LibWeb: Remove now-unused CSS::PositionValue type and associated parsing
...
All the users now use PositionStyleValue instead.
2023-11-07 22:00:24 +00:00
Simon Wanner
68f4d21de2
LibJS: Lazily collect stack trace information
...
The previous implementation was calling `backtrace()` for every
function call, which is quite slow.
Instead, this implementation provides VM::stack_trace() which unwinds
the native stack, maps it through NativeExecutable::get_source_range
and combines it with source ranges from interpreted call frames.
2023-11-02 07:37:41 +01:00
Andrew Kaster
26a5d84d91
Meta: Port f1b79e0cd3
to gn build
2023-10-31 00:36:51 +03:30
Andrew Kaster
2148b89d95
Meta: Update CA certificate to 2023-08-22
2023-10-31 00:36:51 +03:30
Andrew Kaster
246daa0810
Meta: Port 7d26cbf523
to gn build
2023-10-29 16:04:57 -06:00
Andrew Kaster
3eb92a9324
Meta: Port 95c154d9bd
to gn build
2023-10-29 16:04:41 -06:00
Andrew Kaster
95e2039abb
Meta: Port ec8330b647
to gn build
2023-10-29 16:03:43 -06:00
Andrew Kaster
faa8ef98c9
Meta: Port recent changes to gn BUILD
...
5c7e5cc738
a8f0fa5dd4
0d417cd604
5b87d26027
(and other friends from the JIT PR)
f915aa70cd
2023-10-27 16:51:03 -06:00
Andrew Kaster
4dbb73b360
Meta+Documentation+Ladybird: Update places that use ladybird filename
...
Fallout from 01feae24b2
These places referred to the filename "ladybird" directly, but we
changed the OUTPUT_NAME of ladybird to "Ladybird".
2023-10-27 07:11:35 +02:00
Andrew Kaster
4522c82459
Meta: Add gn build for the MacPDF application
2023-10-23 15:25:24 -06:00
Andrew Kaster
967ccd2be8
Meta: Add gn build for LibPDF
2023-10-23 15:25:24 -06:00
Andrew Kaster
10298f1e9a
Meta: Move invoke_process_with_args.py to common location
...
This script was already used by both Ladybird and the Kernel, so move it
into Meta/gn/build instead.
2023-10-23 15:25:24 -06:00
Bastiaan van der Plaat
5870a1a9a1
AK: Remove rarely used ExtraMathConstants.h
2023-10-23 12:04:51 +01:00
Nico Weber
3c49d0dad3
LibPDF: Add a CFF_DEBUG toggle
...
I'd like to put some debug prints behind this soon.
No behavior change.
2023-10-15 07:14:29 +02:00
Andrew Kaster
ffc75a575b
Meta: Port 759e07579e
to gn build
2023-10-13 10:54:18 -06:00
Andrew Kaster
9a3e9047a5
Meta: Update GN build for recent changes
...
9a026fc8d5
ae1ac9871b
07b332e17c
And some missed changes from the past that weren't hit because no one
was referencing those symbols :^).
2023-10-11 10:56:24 -06:00
Sam Atkins
b0317bb3a1
LibWeb: Implement Flex and FlexStyleValue types
2023-09-28 20:33:20 +01:00
Bastiaan van der Plaat
8f2319e966
Ladybird+LibWeb: Rename FileDirectoryLoader to GeneratedPagesLoader
2023-09-24 19:59:00 -06:00
Sam Atkins
aea112da71
LibWeb: Replace OverflowStyleValue with ShorthandStyleValue
2023-09-25 00:46:21 +01:00
Sam Atkins
e905072e47
LibWeb: Replace GridTrackPlacementShorthandStyleValue with ShorthandSV
2023-09-25 00:46:21 +01:00
Sam Atkins
8efac89a16
LibWeb: Replace TextDecorationStyleValue with ShorthandStyleValue
2023-09-25 00:46:21 +01:00
Sam Atkins
6e311902de
LibWeb: Replace PlaceItemsStyleValue with ShorthandStyleValue
2023-09-25 00:46:21 +01:00
Sam Atkins
8143d48161
LibWeb: Replace PlaceSelfStyleValue with ShorthandStyleValue
...
Turns out we were parsing `place-self` as a PlaceItemsStyleValue
sometimes, whoops.
2023-09-25 00:46:21 +01:00
Sam Atkins
1b0939b418
LibWeb: Replace PlaceContentStyleValue with ShorthandStyleValue
2023-09-25 00:46:21 +01:00
Sam Atkins
6758decc74
LibWeb: Replace ListStyleStyleValue with ShorthandStyleValue
2023-09-25 00:46:21 +01:00
Sam Atkins
f5cb2e8dc2
LibWeb: Replace GridTrackSizeListShorthandStyleValue with ShorthandSV
2023-09-25 00:46:21 +01:00
Sam Atkins
48f3603119
LibWeb: Replace GridAreaShorthandStyleValue with ShorthandStyleValue
2023-09-25 00:46:21 +01:00
Sam Atkins
23d59a6caf
LibWeb: Replace BorderStyleValue with ShorthandStyleValue
...
And also expand builtin values to the longhands, which we weren't doing
before.
2023-09-25 00:46:21 +01:00
Sam Atkins
ae4b8d86df
LibWeb: Include standard SVG user agent style sheet
...
For now, part of this is commented-out. Our current implementations of
`<mask>` and `<symbol>` rely on creating layout nodes, so they can't be
`display: none`.
2023-09-23 16:27:14 +02:00
Andreas Kling
51caa14381
LibWeb: Remove FrameLoader
...
This class is no longer used, now that we've moved to navigables.
2023-09-20 18:29:17 +02:00
Sam Atkins
9b4ddff6a9
LibWeb: Replace FontStyleValue with ShorthandStyleValue
...
Also, actually include font-variant since we were already parsing it but
throwing it away.
2023-09-20 12:17:16 +01:00
Sam Atkins
34591549b1
LibWeb: Replace BorderRadiusShorthandStyleValue with ShorthandStyleValue
2023-09-20 12:17:16 +01:00
Sam Atkins
34e0899ab0
LibWeb: Replace BackgroundStyleValue with ShorthandStyleValue
...
The `to_string()` for this is modified a little from the original,
because we have to calculate what the layer-count is then, instead of
having it already calculated.
2023-09-20 12:17:16 +01:00
Sam Atkins
1ae515c0b7
LibWeb: Replace FlexFlowStyleValue with ShorthandStyleValue
2023-09-20 12:17:16 +01:00
Sam Atkins
aa45b3dfe3
LibWeb: Replace FlexStyleValue with ShorthandStyleValue
...
We still need the custom parsing and to_string() logic, but nothing
else. :^)
2023-09-20 12:17:16 +01:00
Sam Atkins
d20254f1bc
LibWeb: Rename CompositeStyleValue -> ShorthandStyleValue
...
It's a shorthand, so let's call it that. :^)
2023-09-20 12:17:16 +01:00
Karol Kosek
1681d6f721
Meta: Port recent build changes to gn build
...
This ports the following commits:
6476dea898
153ae93f9c
45b36bd08a
7870f10aa8
139c575cc9
63d09f6daf
1b3ad1c721
77d32fcb5f
2023-09-18 11:09:48 -06:00
Bastiaan van der Plaat
9939b028c6
LibWeb: Add basic Navigator send beacon support
2023-09-18 11:08:26 -06:00
Andreas Kling
0a133ccba4
LibWeb: Remove the HTML blink element
...
Support for this element has been removed from all major engines years
ago already, and it's currently the only reason we have a weird
"visible" flag on Layout::Node (which we toggle on a timer here..)
2023-09-18 14:45:20 +02:00
Timothy Flynn
d0fd34112f
LibJS: Remove the now-unused ThrowableStringBuilder
2023-09-09 13:03:25 -04:00