summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-01-203DFileViewer: Use FileSystemAccessClient::try_* APIsMustafa Quraish
This commit also removed the redundant `filename` parameter from `GLContextWidget::load_file`, since the filename is already stored within the file itself.
2022-01-20ThemeEditor: Use FileSystemAccessClient::try_* APIsMustafa Quraish
2022-01-20TextEditor: Use FileSystemAccessClient::try_* APIsMustafa Quraish
2022-01-20PDFViewer: Use FileSystemAccessClient::try_* APIsMustafa Quraish
2022-01-20PixelPaint: Use FileSystemAccessClient::try_* APIsMustafa Quraish
2022-01-20HexEditor: Use FileSystemAccessClient::try_* APIsMustafa Quraish
2022-01-20FileSystemAccessClient: Add `try_*` variants returning `Core::File`Mustafa Quraish
The current implementation is a bit of a hack since we also want to keep around the previous variants for now, but will be cleaned up later once all applications have been ported to the new API.
2022-01-20CrashReporter: Don't crash when investigating a HackStudio crashSam Atkins
Previously when opening a crash report for HackStudio, the `unveil("/bin/HackStudio", "rx")` call was failing because of the earlier `unveil(executable_path.characters(), "r")` call requesting only "r" permissions for it. This patch handles this specific case, so you can crash HackStudio to your heart's content. :^) Also, we were unveiling the executable path twice, once manually and once implicitly as part of the coredump's libraries, so we now check for the latter and avoid it. Thanks to Daniel for noticing what was right in front of me and I didn't see! Co-authored-by: Daniel Bertalan <dani@danielbertalan.dev>
2022-01-20Userland: Add horizontal mouse scroll supportDmitry Petrov
2022-01-20Kernel: Add horizontal mouse scroll supportDmitry Petrov
2022-01-20Base: Add red themeelectrikmilk
2022-01-20Base: Tweak Silver themeelectrikmilk
Tweak silver theme to look even more like Mac OS 9
2022-01-20Base: Add Olive Green Themeelectrikmilk
Add Olive theme
2022-01-20LibGL+LibSoftGPU: Clean up some `for` loopsJelle Raaijmakers
2022-01-20LibGL: Rename `GLMat.cpp` to `GLMatrix.cpp`Jelle Raaijmakers
2022-01-20LibGL: Transpose matrix in `glGetDoublev` and `glGetFloatv`Jelle Raaijmakers
We were returning row-major matrices when OpenGL clients are expecting column-major instead.
2022-01-20LibGL: Use 4 hex characters for error code constants in `gl.h`Jelle Raaijmakers
2022-01-20LibGL: Report GL errors to debug consoleJelle Raaijmakers
2022-01-20LibGL: Stub `GL_BACK` implementation for `glPolygonMode`Jelle Raaijmakers
This prevents overwriting the front face mode when providing `GL_BACK` as a parameter.
2022-01-20LibGL+LibSoftGPU: Implement `GL_POLYGON_OFFSET_FILL` capabilityJelle Raaijmakers
2022-01-20LibGL: Implement `glColor4b`Jelle Raaijmakers
2022-01-20LibGL: Correct values for `GL_BGR` and `GL_BGRA`Jelle Raaijmakers
2022-01-19SystemMonitor: Show unknown in PCI devicesUndefine
In case when the PCI class, device or vendor is unknown, show that it is unknown instead of just putting the ID
2022-01-19Base: Add C64 theme for Terminalelectrikmilk
2022-01-19Base: Add Github theme for Terminalelectrikmilk
2022-01-19Base: Add Hiragana characters to font Katica Regular 10Lady Gegga
3041-309F https://www.unicode.org/charts/PDF/U3040.pdf
2022-01-19Base: Add Chinese characters to font Katica Regular 10Lady Gegga
4E06, 4E07, 524D, 56FA, 56D7-56E0, 6708 https://www.unicode.org/charts/PDF/U4E00.pdf
2022-01-20LibWeb: Add Formatters for Length, Percentage and LengthPercentageSam Atkins
2022-01-20LibWeb: Remove reference_for_percent parameter from Length::resolved()Sam Atkins
Despite looking like it was still needed, it was only used for passing to other calls to Length::resolved() recursively. This makes the various `foo.resolved().resolved()` calls a lot less awkward. (Though, still quite awkward.) I think we'd need to separate calculated lengths out to properly tidy these calls up, but one yak at a time. :^)
2022-01-20LibWeb: Remove Length::Type::Percentage :^)Sam Atkins
All `<percentage>`s in the CSS grammar are now represented by the `Percentage` class, and `<length-percentage>` by `LengthPercentage`.
2022-01-20LibWeb: Convert opacity property from Length to PercentageSam Atkins
2022-01-20LibWeb: Convert width/height and min-/max- versions to LengthPercentageSam Atkins
A lot of this is quite ugly, but it should only be so until I remove Length::Type::Percentage entirely. (Which should happen later in this PR, otherwise, yell at me!) For now, a lot of things have to be resolved twice, first from a LengthPercentage to a Length, and then from a Length to a pixel one.
2022-01-20LibWeb: Convert flex-basis to LengthPercentageSam Atkins
The flexbox logic confuses me so regressions are possible, though our test page looks the same as before so it should be fine. Renamed FlexBasis::Length -> LengthPercentage too, for clarity.
2022-01-20LibWeb: Convert background-position to LengthPercentageSam Atkins
Not much needed changing this time, hurrah! :^)
2022-01-20LibWeb: Handle percentage font sizesSam Atkins
2022-01-20LibWeb: Remove Node::m_font_sizeSam Atkins
This was only ever used in order to set the m_font_size for another Node, so it can just go. :^)
2022-01-20LibWeb: Handle percentage and number line-heightsSam Atkins
This does undo the changes in 88c32836d858564a8664f0fc85f8fd36021945bf, which accounted for our bitmap fonts being a different size than the `font-size` property requests. I think this would be better handled inside Length::to_px(), which would then apply to all font-size-relative lengths (eg, em and rem) instead of only for the line-height property.
2022-01-20LibWeb: Add missing "auto" identifiers for min-width/heightSam Atkins
Both of these have "auto" as their initial value, so the only reason they work currently is that "auto" is implicitly a Length.
2022-01-20LibWeb: Convert background-size from Length to LengthPercentageSam Atkins
Checking these for `auto` is awkward, but separating that will come later. :^)
2022-01-20LibWeb: Convert border-radii from Length to LengthPercentage :^)Sam Atkins
The visit_lengths() code is a bit awkward but we'll clean that up later.
2022-01-20LibWeb: Remove BorderRadiusStyleValue::to_length() hackSam Atkins
Layout::Node still treats border radii as having a single value instead of horizontal and vertical, but one less hack is nice, and helps with conversion to LengthPercentage. :^)
2022-01-20LibWeb: Convert `stroke-width` to LengthPercentageSam Atkins
This is a guinea pig. So far so good?
2022-01-20LibWeb: Remove unused StyleProperties::background_repeat()Sam Atkins
2022-01-20LibWeb: Add PercentageStyleValue, and parse itSam Atkins
This is in a slightly weird state, where Percentages are sometimes Lengths and sometimes not, which I will be cleaning up in subsequent commits, in an attempt not to change all of LibWeb in one go. :^)
2022-01-20LibWeb: Alphabetize StyleValue classesSam Atkins
2022-01-20LibWeb: Add CSS::Percentage, PercentageOr and LengthPercentage typesSam Atkins
Length and Percentage are different types, and sometimes only one or the other is allowed in a given CSS property. This is a first step towards separating them.
2022-01-19LibJS: Add in-tree test for Json parsing of negative zerosForLoveOfCats
This mirrors the cases in `built-ins/JSON/parse/text-negative-zero` in test262
2022-01-19AK: Identify negative zero when parsing Json and represent with a doubleForLoveOfCats
Regardless of the backing type that the number would otherwise parse to, if it is zero and the sign was supposed to be negative then it needs to be a floating point number to represent the correct value.
2022-01-19LibWeb: Remove `unknown` value in `@supports` query logicSam Atkins
This is in line with this recent change to Conditional-3: > Removed the “unknown” value in CSS feature queries’ boolean logic, > defining unrecognized syntaxes as “false” instead. > https://github.com/w3c/csswg-drafts/issues/6175
2022-01-19LibJS: Remove now unnecessary FIXME comments about LocalTime's [[InDST]]Timothy Flynn