summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-30LibCore: Add `Stream::discard()`Tim Schumacher
2022-11-30LibCore: Add a basic wrapper for adapting AK::Stream to Core::StreamTim Schumacher
2022-11-30LibWeb: Use AntiAliasingPainter for canvas paintingMacDue
2022-11-30LibGfx: Disable line intersection stroking for 1px linesMacDue
1px lines are already connected, so this just makes things look worse and is often painting in the wrong spot anyway.
2022-11-30LibGfx: Fix off-by-one for antialiased line lengthMacDue
Previously the line did not include the endpoint.
2022-11-30LibGfx: Remove unnecessary path members from AntiAliasingPainterMacDue
m_rotated_rectangle_path was unused and m_intersection_edge_path was cleared/free'd each time it was used. So sticking in the class just bloats the size.
2022-11-30LibGfx+LibGUI: Use constant for line spacing instead of magic numberlanmonster
2022-11-30Flood: Apply the color scheme immediately after closing settingsimplicitfield
2022-11-30Flood: Store the board as a vector of integersimplicitfield
2022-11-30Flood: Return a Color from Board::cellimplicitfield
This allows us to get rid of many needless release_value() calls.
2022-11-30LibVideo/VP9: Apply higher optimization levels to Decoder and ParserZaggy1024
With this change, decode times on GCC as measured by TestVP9Decode are reduced by about 15%. Not a bad improvement for a few added lines :^)
2022-11-29LibWeb: Include tests for grid track spansmartinfalisse
Include tests for grid track spans when given for automatically-placed grid tracks in the grid-*-end properties.
2022-11-29LibWeb: Use span value if given in the grid-*-end propertymartinfalisse
Previously were not using the span value if it was given in the grid-column/row-end properties.
2022-11-29LibWeb: Remove outdated FIXME regarding application cache selectionTimothy Flynn
This algorithm, and window.applicationCache, was removed from the spec: https://github.com/whatwg/html/commit/e4330d5 This also adds a spec link and comments to the affected parser method.
2022-11-29Base: Update and expand profile(1) manpageSam Atkins
2022-11-29profile: Pass the command to run using positional argumentsSam Atkins
This changes this: ```sh profile -c "python3 -m test test_dict" ``` to this: ```sh profile -- python3 -m test test_dict ``` This should be less confusing, hopefully!
2022-11-29HackStudio: Remove FindWidgetthankyouverycool
HackStudio editors now have built-in incremental search
2022-11-29TextEditor: Change Find/Replace shortcut to Ctrl+Shift+Fthankyouverycool
2022-11-29LibGUI: Setup IncrementalSearchBanners for TextEditorsthankyouverycool
Multi-line TextEditors now share a common search widget which can be opened with Ctrl+F
2022-11-29LibGUI: Add IncrementalSearchBannerthankyouverycool
Compared to traditional modal search, incremental search begins matching as soon as the user starts typing, highlighting results immediately. This refactors Itamar's work for HackStudio into a common LibGUI widget to be used in all multi-line TextEditors.
2022-11-29LibGUI: Add Banner concept to AbstractScrollableWidgetthankyouverycool
Banners are abstract widgets which can house additional controls and information on a temporary basis, popping in from the top of their parent when needed.
2022-11-29LibC: Treat argument "-" the same as arguments that don't start with "-"Brendan Kelly
This causes `echo -` to output "-" instead of crashing
2022-11-29LibWeb: Return the position at end-of-line in TextCursor hit-testAndreas Oppebøen
When starting to drag the cursor below the text, we would start the selection from the closest point in the line above in the last fragment. This is not the behavior seen in other browsers, and it causes weird behavior when the cursor is to the left of the last fragment, for instances when trying to select with the text `before <span>middle</span> after`. By starting the selection from the _end_ of the last fragment, including the line end character, selection behavior is similar to that of other browsers.
2022-11-29shuf: Support the output of a limited number of linesBaitinq
This patch adds the "-n"/"--head-count" optional argument to specifiy the maximum number of shuffled lines to output. Idea from Andreas' FIXME roulette :^)
2022-11-29Tests/Kernel: Add a very simple test for posix_fallocate()Andreas Kling
2022-11-29Kernel: Add some spec links and comments to sys$posix_fallocate()Andreas Kling
2022-11-29Kernel: Make sys$posix_fallocate() fail with ENODEV on non-regular filesAndreas Kling
Previously we tried to determine if `fd` refers to a non-regular file by doing a stat() operation on the file. This didn't work out very well since many File subclasses don't actually implement stat() but instead fall back to failing with EBADF. This patch fixes the issue by checking for regular files with File::is_regular_file() instead.
2022-11-29Kernel: Add File::is_regular_file()Andreas Kling
This makes it easy and expressive to check if a File is a regular file.
2022-11-29LibCore: Add Core::System::posix_fallocate()Andreas Kling
2022-11-29Kernel: Remove unnecessary FIXME in sys$posix_fallocate()Andreas Kling
This syscall doesn't need to do anything for ENOSPC, as that is already handled by its callees.
2022-11-29LibC: Negate kernel errors before returning them in posix_fallocate()Andreas Kling
Since posix_fallocate() doesn't set errno, it has to make sure to manually "unwrap" any error from the kernel.
2022-11-29LibGfx: Handle alpha in color distanceMacDue
This gives a slightly more reasonable result when comparing different colors with low alpha values. For example comparing white with alpha 100 to transparent: Before distance: 0.78 After distance: 0.07 (Where distance is between 0 and 1) The result is unchanged for comparing colors without alpha values.
2022-11-29LibGfx: Don't bother painting transparent linesMacDue
2022-11-29LibGfx: Don't write blended pixel if the alpha is zeroMacDue
2022-11-29LibELF: Add stack guard hardeningKeegan Saunders
Employ the same hardening that glibc and the Linux kernel use for generating stack guards: zero the first byte of the guard such that if C-style string functions read out of bounds on the stack, we do not overwrite or potentially leak the stack guard.
2022-11-29LibC: Use uintptr_t for __stack_chk_guardKeegan Saunders
We used size_t, which is a type that is guarenteed to be large enough to hold an array index, but uintptr_t is designed to be used to hold pointer values, which is the case of stack guards.
2022-11-29LibJS: Allow specifying only roundingIncrement in NumberFormat optionsTimothy Flynn
This is a normative change in the Intl.NumberFormat v3 spec. See: https://github.com/tc39/proposal-intl-numberformat-v3/commit/a260aa3
2022-11-28LibWeb: Treat unresolvable percentage width on inline-block as autoAndreas Kling
2022-11-28js: Make console.log() print to stdout againAli Mohammad Pur
This was broken in 84502f53b5dcd7ffe347269fc1cece777a61a305.
2022-11-28LibCore: Add %l conversion specification to DateTimethankyouverycool
Replaced by the hour as a decimal 1-12 in which single digits are preceded by a blank
2022-11-28Ports/SDL2: Update window focus event listenerscflip
Fixes an issue where ClassiCube would get stuck on the pause menu.
2022-11-28LibJS: Enable commented out tests in Math.asindavidot
2022-11-28LibJS: Add spec comments and check for edge cases in Math.tanhdavidot
2022-11-28LibJS: Add spec comments and check for edge cases in Math.sinhdavidot
2022-11-28LibJS: Add spec comments and check for edge cases in Math.log10davidot
2022-11-28LibJS: Add spec comments and check for edge cases in Math.log2davidot
2022-11-28LibJS: Add spec comments and check for edge cases in Math.logdavidot
2022-11-28LibJS: Add spec comments and check for edge cases in Math.atanhdavidot
2022-11-28LibJS: Add spec comments and check for edge cases in Math.atanhdavidot
2022-11-28LibJS: Add spec comments and check for edge cases in Math.asinhdavidot