ronak69
4c6ea4a963
AK: Fix off-by-one error in round-to-even logic of FixedPoint
...
Because of the off-by-one error, the second bit of the fraction was
getting ignored in differentiating between fractions equal to 0.5 or
greater than 0.5. This resulted in numbers like 2.75 being considered
as having fraction equal to 0.5 and getting rounded incorrectly (to 2).
2023-08-29 11:10:45 +02:00
Sönke Holz
6ef2c34eb4
Kernel: Add riscv64 assembly startup code
...
This adds a simple boot.S for RISC-V (64-bit), which clears the BSS and
sets up the processor to be ready for pre_init.cpp (which is not added
yet).
2023-08-29 11:07:06 +02:00
Sönke Holz
132d25e5bf
Kernel: Add linker script for riscv64
2023-08-29 11:07:06 +02:00
Marcus Nilsson
a2f0804f22
LibC: Move parsing of service file line to static helper function
...
This patch adds `parse_service_file_line()` which both `getservent()`
and `getaddrinfo()` makes use of.
2023-08-29 11:04:48 +02:00
Marcus Nilsson
e2ca144cf9
Tests: Add tests for getaddrinfo()
2023-08-29 11:04:48 +02:00
Marcus Nilsson
2b430e1f56
LibC: Remove dependency of getservbyname() in getaddrinfo()
2023-08-29 11:04:48 +02:00
Marcus Nilsson
37cea81837
LibC: Use gethostbyname_r() in getaddrinfo()
...
getaddrinfo() used to use gethostbyname() which isn't MT-Safe.
2023-08-29 11:04:48 +02:00
Marcus Nilsson
db2f96e4ed
Tests: Add tests for gethostbyname()
2023-08-29 11:04:48 +02:00
Marcus Nilsson
fd792f93c4
LibC: Use gethostbyname_r() in gethostbyname()
...
Since `gethostbyname()` can't fail because of memory-related issues, it
has no way of representing a memory-related failure. We therefor use
`NO_RECOVERY` to represent a memory-related failure as well
as its normal name server related failures.
2023-08-29 11:04:48 +02:00
Marcus Nilsson
5c4b71ac67
Tests: Add tests for gethostbyname_r()
2023-08-29 11:04:48 +02:00
Marcus Nilsson
1a7e262752
LibC: Implement gethostbyname_r()
...
gethostbyname_r() will be used to make getaddrinfo() MT-Safe.
2023-08-29 11:04:48 +02:00
kleines Filmröllchen
bf3fa19314
LibAudio: Write FLAC metadata
...
This includes a generalization of the metadata block infrastructure, so
adding and writing blocks is handled in a generalized fashion.
2023-08-29 10:43:34 +02:00
kleines Filmröllchen
fc2301c23c
LibAudio: Allow writing Vorbis comments
...
The vorbis comment parsing code is slightly generalized to reuse
field-role associations for artists.
2023-08-29 10:43:34 +02:00
kleines Filmröllchen
c853a73ae2
aconv: Override encoder in output metadata
...
After all, we encoded this file :^)
2023-08-29 10:43:34 +02:00
kleines Filmröllchen
34978b364b
LibAudio: Understand album (IPRD) metadata in WAV
...
This is in common usage, just not present in the reference I looked at.
2023-08-29 10:43:34 +02:00
kleines Filmröllchen
4c9c2104f3
aconv: Copy metadata to output
...
This requires postponing FLAC header finalization, since FLAC cannot
write metadata after a finalized header.
2023-08-29 10:43:34 +02:00
kleines Filmröllchen
1e291753b0
LibAudio: Allow adding metadata to encoders
2023-08-29 10:43:34 +02:00
kleines Filmröllchen
b4b411b8a3
LibAudio: Add a sample count hinting mechanism to audio encoding
2023-08-29 10:43:34 +02:00
kleines Filmröllchen
0960a92670
LibAudio: Add more common classes to the forward declare header
2023-08-29 10:43:34 +02:00
Andreas Kling
9d6f00d918
LibJS: Behave like major engines when substituting missing capture group
...
When a substitution refers to a 2-digit capture group that doesn't exist
we need to check if the first digit refers to an existing capture group.
In other words, '$10' should be treated as capture group #1 , followed by
the literal '0' if 1 is a valid capture group but 10 is not.
This makes the Dromaeo "dom-query" subtest run to completion.
2023-08-29 10:33:48 +02:00
Cubic Love
b5ed86ab68
Base: Improve the King piece in Classic chess set
...
Make the King's crown more rounded.
2023-08-29 10:28:24 +02:00
Cubic Love
91269a8064
Chess: Capitalize chess set names + Rename 'stelar7' to 'Classic'
...
Now when selecting a chess set in Games Settings, the names of the sets
are capitalized which looks much neater.
The default set 'stelar7' has been renamed to 'Classic' to reflect its
default vanilla design, as opposed to more stylized sets.
This commit also updates any code references to this set.
2023-08-29 10:28:24 +02:00
Shannon Booth
f3e5335096
LibWeb: Port CSSKeyframeRules interface from DeprecatedString to String
2023-08-29 10:05:02 +02:00
Shannon Booth
15334a68df
LibWeb: Port CSSKeyframesRules interface from DeprecatedString to String
2023-08-29 10:05:02 +02:00
Shannon Booth
826374d04b
LibWeb: Port Path2D interface from DeprecatedString to String
2023-08-29 10:05:02 +02:00
Shannon Booth
e8d592ded2
LibWeb: Port WebGLRenderingContext IDL from DeprecatedString to String
2023-08-29 10:05:02 +02:00
Shannon Booth
cf733d309e
LibWeb: Port CSSConditionRule interface from DeprecatedString to String
2023-08-29 10:05:02 +02:00
Shannon Booth
ff45874d4e
LibWeb: Port MediaList interface from DeprecatedString to String
2023-08-29 10:05:02 +02:00
Shannon Booth
72f54eca26
LibWeb: Port History interface from DeprecatedString to String
2023-08-29 10:05:02 +02:00
Shannon Booth
7b79324548
LibWeb: Port Range interface from DeprecatedString to String
2023-08-29 10:05:02 +02:00
Shannon Booth
9f047819a5
LibWeb: Port Selection interface from DeprecatedString to String
2023-08-29 10:05:02 +02:00
Shannon Booth
901220c588
LibWeb: Port Storage interface from DeprecatedString to String
...
Which ends up bubbling all the way up to the Browser storage model.
2023-08-29 10:05:02 +02:00
Abhishek Raturi
6f85be501d
HackStudio: Change fg color of staged/unstaged file list in Git tab
...
Change the foreground color of staged and unstaged file list in the
git tab to green and red respectively
2023-08-29 10:00:13 +02:00
Andrew Kaster
6cfe19e5be
LibWeb: Update Navigable::navigate() to the current state of the spec
...
A few parameters and step renumberings have happened since we first
implemented this algorithm.
2023-08-29 09:39:57 +02:00
Andrew Kaster
cf1f14f58c
LibWeb: Make to_history_handling_behavior conversion helper public
...
While we're here, assert that we're not doing this conversion when the
NavigationHistoryBehavior is still "auto", as the
HistoryHandlingBehavior enum is supposed to represent a "resolved"
behavior.
2023-08-29 09:39:57 +02:00
Andrew Kaster
0ed67fc0ce
LibWeb: Add virtual to check if a Navigable is a top level traversable
...
This avoids some AK::is casting when we need to check this property in
upcoming algorithms.
2023-08-29 09:39:57 +02:00
Andrew Kaster
0c85a7cebc
LibWeb: Add DocumentState about base url member
2023-08-29 09:39:57 +02:00
Andrew Kaster
5f0fb84379
LibWeb: Stub out determine_the_creation_sandboxing_flags
2023-08-29 09:39:57 +02:00
Andrew Kaster
a565021147
LibWeb: De-duplicate definition of url_matches_about_blank
...
We don't need two static methods for this.
2023-08-29 09:39:57 +02:00
Andrew Kaster
a83668d838
LibWeb: Move XHR::FormDataEntry to its own header
...
This avoids a circular dependency in a future commit
2023-08-29 09:39:57 +02:00
Andrew Kaster
d97b09693e
LibWeb: Convert SandboxingFlagSet into a enum class
...
Instead of having a nested enum within a struct, use the macro
AK_ENUM_BITWISE_OPERATORS to add all the convienent has_flag free
functions and such for ease of use.
2023-08-29 09:39:57 +02:00
Sebastian Zaha
967cb86c5b
Meta: Port recent build changes to gn build
...
This ports the following commits:
848ec538c6
703c2bb06e
27dd2a40ad
daefe744ba
9812031a02
4c0816b002
8bb275f2ea
3f122b7335
2023-08-29 09:37:52 +02:00
Andi Gallo
4a124333c8
LibWeb: Add back undistributable space when adjusting table width
...
If the table used width has to be adjusted because of a cell with
percentage width, add back the undistributable space due to border
spacing. This is consistent with the width distribution algorithm, which
sets aside the undistributable space and the behavior of other browsers.
2023-08-29 09:19:55 +02:00
Tim Ledbetter
aa7c2f1f0d
find: Allow unit suffixes to be used with the -size
option
...
The argument supplied to the `-size` option may now be one of the
following suffixes:
* b: 512-byte blocks. This is the default unit if no suffix is used.
* c: bytes
* w: two-byte words
* k: kibibytes (1024 bytes)
* M: mebibytes (1024 kibibytes)
* G: gibibytes (1024 mebibytes)
Sizes are rounded to the specified unit before comparison. The unit
suffixes are case-sensitive.
2023-08-29 09:08:59 +02:00
Shannon Booth
9b884a9605
LibJS: Avoid double construction in Array.fromAsync
...
This is a normative change in the array from async proposal, see:
https://github.com/tc39/proposal-array-from-async/commit/49cfde2
It fixes a double construction when Array.fromAsync is given an array
like object.
2023-08-28 20:45:11 -04:00
Andreas Kling
ae3958f640
LibWeb: Remove incorrect hack in build_paint_tree()
...
If a paintable already has a parent when we're building a paint tree,
that's a bug we should catch, not something that needs a workaround.
2023-08-28 23:36:22 +02:00
Andreas Kling
ad1853cbf5
LibWeb: Remove unnecessary layout node detach in DOM::Node::finalize()
...
Manually detaching the layout node is not necessary since both the DOM
and the layout tree is garbage collected anyway.
2023-08-28 23:36:22 +02:00
Andreas Kling
b3a885755c
LibWeb: Detach the paint tree in Document::tear_down_the_layout_tree()
...
Otherwise, someone may try to paint the paint tree after the layout tree
has been torn down. This could in theory be possible in the future, but
until we've completely severed the paint tree's dependency on the layout
tree, this is not safe as the layout tree is no longer in a valid state.
2023-08-28 23:36:22 +02:00
Andreas Kling
edec5a157c
LibWeb: Add missing TreeNode::visit_edges() in Paintable::visit_edges()
2023-08-28 23:36:22 +02:00
Andreas Kling
6238860c6d
LibWeb: Simplify PaintableBox::enclosing_stacking_context()
2023-08-28 23:36:22 +02:00