summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-03-29Browser: Add reset zoom level button to toolbarMacDue
This button shows the current zoom level and when clicked resets the zoom back to 100%. It is only displayed for zoom levels other than 100%.
2023-03-29LibWeb+LibWasm: Implement and use the "reset the Memory buffer" stepsAli Mohammad Pur
This implements the memory object cache and its "reset on grow" semantics, as the web depends on the exact behaviour.
2023-03-29LibWeb: Parse Element.style url functions relative to the documentLuke Wilde
Previously we used a parsing context with no access to the document, so any URLs in url() functions would become invalid. Fixes the images on Steam's store carousel, which sets Element.style.backgroundImage to url() functions.
2023-03-29LibGfx/OpenType: Ignore glyphs with bogus offsetsAndreas Kling
Some fonts (like the Bootstrap Icons webfont) have bogus glyph offsets in the `loca` table that point past the end of the `glyf` table. AFAICT other rasterizers simply ignore these glyphs and treat them as if they were missing. So let's do the same. This makes https://changelog.serenityos.org/ actually work! :^)
2023-03-29Shell: Skip rc files when not running interactivelyTim Schumacher
This makes debugging a bit nicer.
2023-03-29Shell: Correctly mark the end line of a parsed listTim Schumacher
2023-03-29Shell: Allow appending empty string literalsTim Schumacher
Otherwise, we just silently drop arguments that are empty strings.
2023-03-29Shell: Properly skip POSIX `Fi` tokensTim Schumacher
2023-03-29Shell: Evaluate the program name before parsing argumentsTim Schumacher
Otherwise, we are too late to catch the "load the POSIX-compatible shellrc" branch.
2023-03-28README: Add a jump section for easy access to documentationsin-ack
The link to documentation is buried near the bottom of the README, and most people don't realize that we have documentation within the repository because of this. This commit adds handy links that take you to the appropriate parts of the README, which should improve discoverability by a lot. The idea is inspired by other repositories having a similar "common links" area at the top of their READMEs.
2023-03-28LibWeb: Clamp fit-content widths in flex layout to min/max-widthAndreas Kling
In situations where we need a width to calculate the intrinsic height of a flex item, we use the fit-content width as a stand-in. However, we also need to clamp it to any min-width and max-width properties present.
2023-03-28Tests/LibWeb: Add layout test for layout fix in PR #15780Luke Wilde
Adds a layout test for the fix in 488a979.
2023-03-28LibGfx: Don't render OpenType glyphs that have no outlineJulian Offenhäuser
The spec tells us that for glyph offsets in the "loca" table, if an offset appears twice in a row, the index of the first one refers to a glyph without an outline (such as the space character). We didn't check for this, which would cause us to render a glyph outline where there should have been nothing.
2023-03-28AK: Add DeprecatedString::from_utf8(StringView)Ali Mohammad Pur
This mirrors String::from_utf8(StringView). Jakt will use this to construct strings instead of just assuming the allocation will succeed, lowering the API difference between Jakt::String and AK::String by one API :^)
2023-03-28LibWeb: Allow attachshadow for elements with valid custom element namesSrikavin Ramkumar
2023-03-28LibWeb: Return HTMLElement for valid custom element tag namesSrikavin Ramkumar
2023-03-28LibWeb: Implement custom element name validationSrikavin Ramkumar
2023-03-28LibWeb: Iterate codepoints instead of characters in is_valid_nameSrikavin Ramkumar
2023-03-28Meta: Remove SonarCloud cache and threads setup as it is now defaultMassimo Paladin
No need to configure the cache and threads anymore, SonarCloud now has an automatic analysis caching and threads detection. See: https://docs.sonarcloud.io/advanced-setup/languages/c-c-objective-c/#analysis-cache
2023-03-28LibWeb: Declare defaulted style value comparision operators inlineAndrew Kaster
Some versions of clang, such as Apple clang-1400.0.29.202 error out on the previous out of line operators. Explicitly defaulting comparison operators out of line is allowed per P2085R0, but was checked in clang before version 15 in C++20 mode.
2023-03-28Documentation: Add instructions for debugging Ladybird with XcodeAndrew Kaster
2023-03-28Meta: Diable Wshorten-64-to-32 explicitly to silence Xcode defaultsAndrew Kaster
Xcode will set this by default when creating a new project unless we set an xcode property to disable it. Instead of doing that, disable it globally.
2023-03-28Ladybird: Improve Xcode generator experience and copy helpers to bundleAndrew Kaster
We had a mismatch in the GUI Identifier property, causing warnings in Xcode. It was also missing the Product Identifier Xcode property on ladybird itself, causing another warning. Copy all our helper processes to the ladybird.app bundle directory so that they can be found by ``open ladybird.app`` and the Xcode debugger. For the future, we should look in ../Resources for resources on macOS. Copying resources to that directory requires more CMake-fu.
2023-03-28LibSQL: Block signals while forking SQLServer in LagomAndrew Kaster
When debugging in Xcode, the waitpid() for the initial forked process would always return EINTR or ECHILD. Work around this by blocking all signals until we're ready to wait for the initial child.
2023-03-27LibWeb: Use fit-content width in place of indefinite flex item widthsAndreas Kling
In `flex-direction: column` layouts, a flex item's intrinsic height may depend on its width, but the width is calculated *after* the intrinsic height is required. Unfortunately, the specification doesn't tell us exactly what to do here (missing inputs to intrinsic sizing is a common problem) so we take the solution that flexbox applies in 9.2.3.C and apply it to all intrinsic height calculations within FlexFormattingContext: if the used width of an item is not yet known when its intrinsic height is requested, we substitute the fit-content width instead. Note that while this is technically ad-hoc, it's basically extrapolating the spec's suggestion in one specific case and using it in all cases.
2023-03-27LibWeb: Make box content sizes indefinite before intrinsic sizingAndreas Kling
When calculating the intrinsic width of a box, we now make its content width & height indefinite before entering the intrinsic sizing layout. This ensures that any geometry assigned to the box by its parent formatting context is ignored. For intrinsic heights, we only make the content height indefinite. This is because used content width is a valid (but optional) input to intrinsic height calculation.
2023-03-27LibWeb: Add default equality operators to Available{Space,Size}Andreas Kling
I find myself adding these over and over again while testing. Let's just have them always there.
2023-03-27LibWeb: Pass available inner space to inline-level SVG layoutAndreas Kling
2023-03-27LibWeb: Pass available inner space to BFC root auto height calculationAndreas Kling
2023-03-27LibWeb: Fix intrinsic sizing early return condition in TFCAliaksandr Kalenik
Early return before running full TFC algorithm is only possible when just table width need to be calculated.
2023-03-27WebServer: Propagate more errorsSam Atkins
Use try_append() instead of append().
2023-03-27LibCore: Add DateTime::to_string()Sam Atkins
This is just the contents of to_deprecated_string() with errors propagated. to_deprecated_string() is now implemented using to_string().
2023-03-27WebServer: Use relative URLs for the directory listingSam Atkins
This fixes an issue found on Linus's hosted WebServer. Now, if WebServer is hosted at a non-root URL. (eg, `example.com/webserver` instead of `example.com`) the links will correctly go to `example.com/webserver/foo` instead of `example.com/foo`.
2023-03-27WebServer: Handle incomplete HTTP requestsSam Atkins
Mostly by copying the code in LibWeb/WebDriver/Client.cpp
2023-03-27Ladybird: Don't update the zoom menu text for null tabsMacDue
This fixes an "Assertion `m_zoom_menu && m_current_tab' failed." error when closing a window.
2023-03-27Toolchain: Update binutils to version 2.40Cameron Youell
2023-03-27Ports: Update serenity-theming use latest commit ba2ddd0djwisdom
Snake: Add Buggie skin Snake: Add CatDog skin Chess: Add ugly piece set Base: Add Hotdog Stand theme
2023-03-27Ports/libtiff: Update libtiff to version 4.5.0Cameron Youell
2023-03-27Ports/imagemagick: Update imagemagick to version 7.1.1-5Cameron Youell
2023-03-27Ports/gettext: Update gettext to version 0.21.1Cameron Youell
2023-03-27Ports/sqlite: Update sqlite to version 3410200Cameron Youell
2023-03-27Ports/libpng: Update libpng to version 1.6.39Cameron Youell
2023-03-27Ports/make: Update make to version 4.4Cameron Youell
2023-03-27Ports/cmake: Update cmake to version 3.26.1Cameron Youell
2023-03-27Ports/curl: Update curl to version 8.0.1Cameron Youell
2023-03-27Ports/bison: Update bison to version 3.8Cameron Youell
2023-03-27Ports/bdwgc: Update bdwgc to version 8.2.2Cameron Youell
2023-03-27Ports/bc: Update bc to version 6.5.0Cameron Youell
2023-03-27Ports/bash: Update bash to version 5.2.15Cameron Youell
2023-03-27Ports/binutils: Update binutils to version 2.40Cameron Youell