Andrew Kaster
9645daaf6c
LibWeb: Remove RemoteBrowsingContext and AbstractBrowsingContext
...
With the transition to Navigables, and a working implementation of
window.open(), we no longer need this abstraction layer.
2024-02-05 08:05:48 -07:00
Timothy Flynn
f30fd78d8d
Meta: Port recent changes to the GN build
...
8e5410347b
2024-02-04 08:14:06 +01:00
Andrew Kaster
677bdc2a4f
Ladybird: Add IPC call for creating a new child tab
...
This will be used for choosing a navigable that requires opening a new
tab or new window. Such as calls to window.open(), or specific WebDriver
calls.
2024-02-03 20:51:37 -05:00
Timothy Flynn
2bb751eab9
Meta: Port recent changes to the GN build
...
b12541b286
2024-01-25 21:34:03 +01:00
stelar7
3e0c0ce7ae
LibWeb: Move dictionaries to separate file
...
Co-Authored-By: Andrew Kaster <akaster@serenityos.org>
2024-01-23 14:07:06 -07:00
stelar7
a8ddf6c2a4
LibWeb: Add the CryptoKey interface
2024-01-23 14:07:06 -07:00
Timothy Flynn
b81a6cfe1d
Meta: Port recent changes to the GN build
...
d125d16287
60c3a1a77b
4364a28d3d
271c9d1ae9
2024-01-22 08:48:34 -05:00
Nico Weber
36bdf45f36
Meta: Port recent changes to the GN build
...
Ports de32b77ceb
.
2024-01-15 12:15:16 -05:00
Andrew Kaster
521ed0e911
LibWeb: Delete LegacyPlatformObject and move behavior to PlatformObject
...
We have two known PlatformObjects that need to implement some of the
behavior of LegacyPlatformObjects to date: Window, and HTMLFormElement.
To make this not require double (or virtual) inheritance of
PlatformObject, move the behavior of LegacyPlatformObject into
PlatformObject. The selection of LegacyPlatformObject behavior is done
with a new bitfield of feature flags instead of a dozen virtual
functions that return bool. This change simplifies every class involved
in the diff with the notable exception of Window, which now needs some
ugly const casts to implement named property access.
2024-01-12 09:11:18 +01:00
Luke Wilde
ddf601830a
LibWeb: Implement SVGAnimatedString
2023-12-30 18:50:29 +01:00
Andreas Kling
f900957d26
LibGfx+LibWeb: Move Gfx::ScaledFont caching from LibWeb into LibGfx
...
Before this change, we would only cache and reuse Gfx::ScaledFont
instances for downloaded CSS fonts.
By moving it into Gfx::VectorFont, we get caching for all vector fonts,
including local system TTFs etc.
This avoids a *lot* of style invalidations in LibWeb, since we now vend
the same Gfx::Font pointer for the same font when used repeatedly.
2023-12-26 18:15:55 +01:00
Timothy Flynn
ef6d1dbd4d
Meta: Port recent changes to the GN build
...
5e1499d104
36f0499cc8
64912d4d02
809c5b0b03
2023-12-23 20:05:36 +01:00
Timothy Flynn
7233d5ed3e
Meta: Alphabetically sort IDL files in the GN build
2023-12-23 20:05:36 +01:00
stelar7
479c48643e
LibWeb: Move common date microsyntax to a separate file
2023-12-11 14:04:27 -07:00
Bastiaan van der Plaat
466153e680
Ladybird+LibWeb: Add basic select element support
2023-12-09 22:06:20 +01:00
Bastiaan van der Plaat
4966c083df
LibWeb: Remove progress element custom paintable use shadow dom instead
2023-12-07 11:37:01 +01:00
Timothy Flynn
8504d8f588
Meta: Support GPU painting in the GN build
2023-12-01 20:07:27 -05:00
Timothy Flynn
5913efbb45
LibWeb: Add a visit_edges() override to AbstractBrowsingContext
...
AbstractBrowsingContext has a subclass RemoteBrowsingContext without a
visit_edges() override (and it doesn't really need one). But currently,
we rely on subclasses visiting AbstractBrowsingContext's opener BC.
This adds a visit_edges() to AbstractBrowsingContext to explicitly visit
the opener BC itself.
2023-11-30 08:49:15 +00:00
Andrew Kaster
49b7539290
Meta: Port recent changes to gn build
...
b7f8d7e357
048e179572
6d1a1daff9
04c094343f
a6106ca221
2023-11-24 08:43:01 -07:00
Timothy Flynn
ffdc2d8add
LibWeb+LibWebView+WebContent: Add an Inspector IDL object to the Window
...
This is an internal object that must be explicitly enabled by the chrome
before it is added to the Window. The Inspector object will be used by a
special WebView that will replace all chrome-specific inspector windows.
The IDL defines methods that this WebView will need to inform the chrome
of various events, such as the user clicking a DOM node.
2023-11-24 08:37:19 +01:00
Timothy Flynn
16ac2089e3
Meta: Port recent changes to GN build
...
4ab2903e25
70353b79af
2023-11-24 08:37:19 +01:00
Timothy Flynn
50406f541b
Meta: Port recent changes to GN build
...
124c378472
2023-11-15 11:28:39 -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
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
Andrew Kaster
246daa0810
Meta: Port 7d26cbf523
to gn build
2023-10-29 16:04:57 -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
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