Sam Atkins
99e18f40fb
LibWeb: Use new GeneralEnclosed class in Supports
2021-11-24 22:57:46 +01:00
Sam Atkins
e760263728
LibWeb: Parse CSS <general-enclosed>
2021-11-24 22:57:46 +01:00
Sam Atkins
42176d37fc
LibWeb: Implement independent GeneralEnclosed class
...
This is `<general-enclosed>` in CSS grammar. It represents a section of
a `@media` or `@supports` rule that exists in some future standard that
we don't understand yet, but don't want to make the entire rule invalid.
There's not much that it can usefully do, but we store a string
representation of its contents so that it can be serialized out.
2021-11-24 22:57:46 +01:00
Sam Atkins
b40388584b
LibWeb: Make StyleRule to_string() methods output valid CSS
...
Also removed unused `append_raw()` function.
2021-11-24 22:57:46 +01:00
Sam Atkins
933a271a78
LibWeb: Implement StyleComponentValueRule::to_string()
2021-11-24 22:57:46 +01:00
Sam Atkins
cf07da082e
LibWeb: Implement CSS::Token::to_string()
...
This outputs valid CSS, as opposed to to_debug_string().
2021-11-24 22:57:46 +01:00
Ben Wiederhake
3e7e503dee
strace: Implement get_process_name and gettid
2021-11-24 22:56:39 +01:00
Ben Wiederhake
2dd5c7d2cc
strace: Implement dbgputstr syscall
2021-11-24 22:56:39 +01:00
Ben Wiederhake
33079c8ab9
Kernel+UE+LibC: Remove unused dbgputch syscall
...
Everything uses the dbgputstr syscall anyway, so there is no need to
keep supporting it.
2021-11-24 22:56:39 +01:00
Ralf Donau
f53bc19b8a
Applets/Audio: Remove unveiling /tmp/portal/config
2021-11-24 19:46:03 +01:00
Jelle Raaijmakers
30580ed7e4
LibPthread: Initialize conditions with realtime clock
...
All the way back in commit 1670ee5aba
, the default clock for
condition variables was set to `CLOCK_MONOTONIC`, because there was no
other clock available.
However, if a condition variable is initialized without any additional
attributes by an application, they sometimes assume that the absolute
time that is passed to e.g. `pthread_cond_timedwait` is actually based
on a realtime clock, as can be seen here in SDL2:
6f419bdf5f/src/thread/pthread/SDL_syscond.c (L99)
Additionally, the glibc implementation defaults to a realtime clock:
aac54dcd37/nptl/pthread_cond_init.c (L42)
...so we probably should do so as well :^)
2021-11-24 19:44:57 +01:00
Jelle Raaijmakers
ce3a63253a
LibC: Remove commented out code from futex()
2021-11-24 19:44:57 +01:00
Maciej
700c76ba23
CrashReporter: Don't visualize whitespace in memory regions text editor
...
This was visible for memory regions with empty name.
2021-11-24 19:44:02 +01:00
Linus Groh
905b8bd545
LibJS: Make section URLs more consistent
...
- Drop index.html
- Include trailing slash before anchor
- Don't use multipage spec URLs
2021-11-24 18:37:57 +00:00
Linus Groh
ad294ff2ee
LibJS: Simplify TemporalRelativeToString
...
This is an editorial change in the Temporal spec.
See: https://github.com/tc39/proposal-temporal/commit/d3b2e90
2021-11-24 18:18:05 +00:00
Jelle Raaijmakers
f97c9a5968
Kernel: Allow higher audio sample rates than 65kHZ (u16
)
...
Executing `asctl set r 96000` no longer results in weird sample rates
being set on the audio devices. SB16 checks for a sample rate between 1
and 44100 Hz, while AC97 implements double-rate support which allows
sample rates between 8kHz and 96kHZ.
2021-11-24 19:08:13 +01:00
Vyacheslav Pukhanov
dee02ab30a
WebContent: Support inspection of DOM in nested browsing contexts
...
This lets user select a node from a nested browsing context in the
Inspector (e.g. a node inside an `iframe` document) to highlight it on
the page.
2021-11-24 19:07:48 +01:00
Vyacheslav Pukhanov
3f006d81fe
LibWeb: Add JSON serialization for nested browsing contexts
...
This changes allows for nested browser contexts to be embedded in the
serialized JSON of their container element (like `iframe`) and enables
their inspection in the DOM Inspector.
2021-11-24 19:07:48 +01:00
Idan Horowitz
58397f356f
js: Add command line flag for disabling source line hints
2021-11-24 18:05:24 +00:00
Idan Horowitz
15fafdc645
js: Pretty-print custom error types
2021-11-24 18:05:24 +00:00
Idan Horowitz
11d1950e74
js: Add command line flag for disabling ANSI colors
2021-11-24 18:05:24 +00:00
Linus Groh
de69f5dbf4
LibJS: Implement Temporal.ZonedDateTime.prototype.since()
2021-11-24 17:53:00 +00:00
Linus Groh
7a2eeae8c6
LibJS: Implement Temporal.ZonedDateTime.prototype.until()
2021-11-24 17:53:00 +00:00
Luke Wilde
7dc846d51c
LibJS: Implement balance_duration_relative()
2021-11-24 17:53:00 +00:00
Luke Wilde
9559cea8e5
LibJS: Implement add_duration()
2021-11-24 17:53:00 +00:00
Luke Wilde
1f84deaf63
LibJS: Implement default_temporal_largest_unit()
2021-11-24 17:53:00 +00:00
Luke Wilde
16301a603c
LibJS: Implement difference_zoned_date_time()
2021-11-24 17:53:00 +00:00
Linus Groh
1e41a8668d
LibJS: Add sign(Crypto::SignedBigInteger const&) overload
2021-11-24 17:53:00 +00:00
Linus Groh
a20b189eab
LibJS: Fix incorrectly formatted section comments
...
A couple of missing URLs, spaces, and a stray comma.
2021-11-24 17:37:27 +00:00
Tim Schumacher
acf3154483
LibArchive: Limit all Tar header fields to their buffer length
2021-11-24 19:09:00 +02:00
Timothy Flynn
251f692440
LibJS: Re-implement SetNumberFormatDigitOptions AO
...
This is an editorial change in the Intl spec.
See: https://github.com/tc39/ecma402/commit/d89c84f
2021-11-24 14:17:15 +00:00
Timothy Flynn
a2f629f38a
LibJS: Update spec comments in GetOption and DefaultNumberOption AOs
...
This is an editorial change in the Intl spec.
See: https://github.com/tc39/ecma402/commit/913ca6d
2021-11-24 14:17:15 +00:00
Andreas Kling
dbab20782e
LibGUI: Make FilteringProxyModel factory function return ErrorOr
2021-11-24 13:52:01 +01:00
Andreas Kling
71414821b4
Help: TRY() all the things in serenity_main() :^)
...
This patch makes use of all the new fallible APIs in LibGUI together
with TRY() to catch and propagate errors. The main error getting caught
is allocation failures while trying to construct the Help UI.
It's quite interesting to see how the code changes as more and more
fallible calls get branded as such by wrapping them in TRY().
There's a lot of repetitive "TRY(try_foo())" going on right now. Once
this becomes the dominant programming pattern, we can drop the "try_"
prefix everywhere. :^)
2021-11-24 13:52:01 +01:00
Andreas Kling
51c4de8774
LibGUI: Add GUI::Menu::try_add_action() and try_add_separator()
...
These are fallible variants that return ErrorOr. :^)
2021-11-24 13:52:01 +01:00
Andreas Kling
9b07e13fb6
LibGUI: Add GUI::Toolbar::try_add_action()
...
This is a fallible variant of add_action() that returns ErrorOr.
It's careful to not fail with a partially added action.
2021-11-24 13:52:01 +01:00
Andreas Kling
47b6339025
LibGUI: Add GUI::TabWidget::try_add_tab<T>(...)
...
This is a fallible variant of add_tab<T>(...) that returns ErrorOr.
2021-11-24 13:52:01 +01:00
Andreas Kling
dc47fce2d9
LibGUI: Add GUI::Window::try_set_main_widget<T>(...)
...
This is a fallible variant of set_main_widget<T>() that returns ErrorOr.
2021-11-24 13:52:01 +01:00
Andreas Kling
bde9c2bc65
LibGUI: Add GUI::Window::try_add_menu()
...
This is a fallible variant of add_menu() that returns ErrorOr.
2021-11-24 13:52:01 +01:00
Andreas Kling
6b79745aa4
LibGUI: Add GUI::Widget::try_set_layout<T>(...)
...
This is a fallible variant of set_layout<T>(...) that returns ErrorOr.
2021-11-24 13:52:01 +01:00
Andreas Kling
bc79be362d
LibGUI: Add GUI::Menubar::try_add_menu()
...
This is a fallible variant of Menubar::add_menu() that returns ErrorOr.
2021-11-24 13:52:01 +01:00
Andreas Kling
b81ce827b6
LibCore: Add Core::Object::try_add<T>(...)
...
This is a fallible version of add<T>(...) that returns ErrorOr<T>.
It can be used together with TRY() to handle allocation failures when
instantiating new Core::Objects.
2021-11-24 13:52:01 +01:00
Pedro Pereira
2efec90fb7
Spider: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
302784ebf8
Solitaire: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
2c6dc6d5f6
Snake: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
5934e95402
Pong: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
36056c1cba
Minesweeper: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
0a800cc1bb
Hearts: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
a0db5cca8a
GameOfLife: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
da50667bb5
FlappyBug: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00