summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-04-29Toolchain: Patch QEMU to support reading kernel cmdline via RPI MailboxDaniel Bertalan
This commit backports my upstream QEMU patch to implement this functionality, which is currently waiting for review. It was submitted here: https://lists.nongnu.org/archive/html/qemu-arm/2023-04/msg00549
2023-04-29Toolchain: Fix self-built QEMU crashing on startup on macOSDaniel Bertalan
If the SDL libraries are present on the system, QEMU will attempt to use that for rendering the UI. This causes a crash when the AArch64 port starts up with the following message: > NSWindow drag regions should only be invalidated on the Main Thread! Fix this by explicitly disabling SDL support.
2023-04-29Kernel: Store the kernel command line in a `StringView`Daniel Bertalan
The Raspberry Pi's mailbox interface does not guarantee that the returned command line is null-terminated. This commit removes that assumption from the current code, allowing the next commit to add support for reading it on the Pi. This also lets us eliminate a few manual `strlen()` calls :^)
2023-04-29AK: Add `Span::align_to`Daniel Bertalan
This method returns a sub-span whose data pointer and size is aligned to a specified alignment.
2023-04-29ICC: Add a missing " at the end of a commentNico Weber
2023-04-29ICC: Rename XYZ and XYZNumber fields to uppercaseNico Weber
Given that XYZ and xyz are distinct things, let's use the correct case for these member variables. No behavior change.
2023-04-29ICC: Add comment with a link to WellKnownProfiles.cppNico Weber
2023-04-29ICC: Add a test for Profile::to_pcsNico Weber
2023-04-29ICC: Add method to convert a color to the profile connection spaceNico Weber
Only implemented for matrix profiles so far. This API won't be fast enough to color manage images, but let's get something working before getting something fast.
2023-04-29ICC: Make number_of_components_in_color_space() externalNico Weber
...and make its return type unsigned.
2023-04-29ICC: Make struct XYZ store float instead of doubleNico Weber
Should be good enough.
2023-04-29Chess: Display appropriate dialog when engine move ends the gameTim Ledbetter
A dialog is now displayed when an engine move results in a checkmate or a draw. In the case of threefold repetition or the fifty move rule, the engine will always accept a draw. A human player is asked if they would like to accept a draw.
2023-04-29LibWeb: Implement "distribute height to rows" step in TFCAliaksandr Kalenik
This commit implements following missing steps in table layout: - Calculate final table height - Resolve percentage height of cells and rows using final table height - Distribute avilable height to table rows
2023-04-29LibWeb: Fix division by zero in table columns width distributionAliaksandr Kalenik
If total max columns width (grid_max) is zero then available width should be divided equally between columns. Previously there was division by zero: `column.max_width / grid_max`.
2023-04-29Base: Fix incorrectly closed tag in welcome.htmlMacDue
2023-04-28SystemServer: Remove unused code for generating /dev/hwrngLiav A
This device was removed in b596af363c30de5323641fab69ad50c712f526e2, so we can't really create anything related to it, therefore this piece of code should be removed too.
2023-04-28Revert "Kernel/x86: Bake the Prekernel and the Kernel into one image"Tim Schumacher
Some hardware/software configurations crash KVM as soon as we try to start Serenity. The exact cause is currently unknown, so just fully revert it for now. This reverts commit 897c4e5145474d55b247a4a3b5e6bf5420279e2f.
2023-04-28LibWeb: Compute inset for relative positioned inline-blockEmil Militzer
2023-04-28LibWeb: Implement "get all used history steps" for traversablesAliaksandr Kalenik
https://html.spec.whatwg.org/multipage/browsing-the-web.html#getting-all-used-history-steps
2023-04-28LibWeb: Implement "get the target history entry" for navigablesAliaksandr Kalenik
2023-04-28LibWeb: Implement "get session history entries" for navigablesAliaksandr Kalenik
https://html.spec.whatwg.org/multipage/browsing-the-web.html#getting-session-history-entries
2023-04-28AK: Add values() method in HashTableAliaksandr Kalenik
Add HashTable::values() method that returns all values.
2023-04-28LibWeb: Change Navigable::traversable_navigable() to be constAliaksandr Kalenik
2023-04-28LibWeb: Add non-const session_history_entries getter in traversableAliaksandr Kalenik
2023-04-28LibWeb: Add NestedHistory in DocumentStateAliaksandr Kalenik
2023-04-28Kernel/aarch64: Fix build after `is_sharing_with_others` API removalDaniel Bertalan
This commit fixes the build after the removal of `GenericInterruptHandler::is_sharing_with_others` in 8944ca830f0.
2023-04-28AK: Make the Optional formatter always available and tweak its formatAli Mohammad Pur
There's no real reason to make this a debug-only formatter, on top of that, jakt has a optional formatter that prints None/foo instead of OptionalNone/Optional(foo), which is more concise anyway, so switch to that.
2023-04-28Base: Add SVG gradients test pageMacDue
2023-04-28LibWeb: Resolve and paint SVG gradient fillsMacDue
This bit is mostly ad-hoc for now. This simply turns fill: url(#grad1) into document().get_element_by_id('grad1') then resolves the gradient. This seems to do the trick for most use cases, but this is not attempting to follow the spec yet to keep things simple.
2023-04-28LibWeb: Implement SVGLinearGradientElement (<linearGradient>)MacDue
This represents the SVG <linearGradient>. The actual gradient is converted to a Gfx::PaintStyle for use in SVG fills... There is a little guesswork in the implementation, but it seems to match Chrome/Firefox. Note: Still not hooked up to actual painting in this commit.
2023-04-28LibGfx: Implement PaintStyle for SVG linear gradientsMacDue
2023-04-28LibWeb: Implement SVGGradientElementMacDue
This is the base class for all SVG gradient types. This supports: - The `gradientUnits` attribute - The `gradientTransform` attribute - And following `xlink:hrefs` for inheriting <stops>/attributes
2023-04-28LibWeb: Allow specifying a URL for an SVG fillMacDue
This does not do anything yet, but will allow for gradients later!
2023-04-28LibWeb: Add URLStyleValue to represent general url() valuesMacDue
This is primarily being added to support `fill: url(#gradient)` for SVGs.
2023-04-28LibWeb: Implement SVGStopElement (<stop>)MacDue
This is used to specify the color/position of color stops for SVG gradients.
2023-04-28LibWeb: Add stop-color as a CSS propertyMacDue
(This is to set the color of a stop for an SVG gradient)
2023-04-28LibWeb: Allow doing .to_color() on a StyleValue without a layout nodeMacDue
This will be needed to access the color of a stop from a SVG gradient <stop> element (which does not participate in layout, so does not have a layout node).
2023-04-28LibWeb: Add SVG tag names for <linearGradient>sMacDue
2023-04-28LibWeb: Implement SVGAnimatedNumberMacDue
See https://www.w3.org/TR/2013/WD-SVG2-20130409/types.html#InterfaceSVGAnimatedNumber
2023-04-28AK+LibTimeZone: Add debug only formatter for OptionalMacDue
I found this handy for debugging, and so might others. This now also adds a formatter for TimeZone::TimeZone. This is needed for FormatIfSupported<Optional<TimeZone::TimeZone>> to compile. As FormatIfSupported sees a formatter for Optional exists, but not that there's not one for TimeZone::TimeZone.
2023-04-28Kernel: Create all kernel processes before enabling boot profilingSamuel Bowman
Process created performance events for kernel processes are only ever emitted for the kernel processes that exist when profiling is enabled. Any new kernel processes created after profiling is enabled will not have corresponding process created performance events, so all kernel processes should be created before enabling profiling. NetworkTask was the only kernel process being created after enabling profiling, so we now just create it before enabling profiling. This fixes an issue where Profiler was failing to parse boot profiles as a result of NetworkTask not having a process created event.
2023-04-28Kernel/x86: Bake the Prekernel and the Kernel into one imageLiav A
The new baked image is a Prekernel and a Kernel baked together now, so essentially we no longer need to pass the Prekernel as -kernel and the actual kernel image as -initrd to QEMU, leaving the option to pass an actual initrd or initramfs module later on with multiboot.
2023-04-28LibWeb: Consider cell computed height in total row min height of tableAliaksandr Kalenik
Previously, the minimum height of a table row was calculated based on the automatic height of the cells inner layout. This change makes computed height of a cell boxes also be considered if it has definite value.
2023-04-28LibWeb: Consider row computed height in total row min height of tableAliaksandr Kalenik
Fixes the issue that currently we do not consider table rows height while calculating min row height even if it is definite value.
2023-04-28AK: Don't refer to AK::swap() as ::swap()Ali Mohammad Pur
While swap() is available in the global namespace in normal conditions, !USING_AK_GLOBALLY will make this name unavailable in the global namespace, making these calls fail to compile.
2023-04-28Chess: Send a ucinewgame command to the engine on starting a new gameTim Ledbetter
This fixes an issue where the engine would crash when starting a new game playing as white.
2023-04-28ChessEngine: Reset the engine state on receiving a ucinewgame commandTim Ledbetter
2023-04-28LibChess: Add the ucinewgame commandTim Ledbetter
This command is sent from the GUI to tell the engine that the next position will be from a different game.
2023-04-28AK+Everywhere: Disallow Error::from_string_view(FooString)Ali Mohammad Pur
That pattern seems to show up a lot in code written by people that aren't intimately familiar with the lifetime model of Error and Strings. This commit makes the compiler detect it and present a more helpful diagnostic than "garbage string at runtime".
2023-04-27DisplaySettings: Show bilinear filtered wallpaper in `MonitorWidget`Jelle Raaijmakers
After 7b10c8048c, this is probably more correct.