summaryrefslogtreecommitdiff
path: root/Userland
AgeCommit message (Collapse)Author
2021-08-01Applications: Remove unused header includesBrian Gianforcaro
2021-08-01Demos: Remove unused header includesBrian Gianforcaro
2021-08-01Services: Remove unused header includesBrian Gianforcaro
2021-08-01Libraries: Remove unused header includesBrian Gianforcaro
2021-08-01LibWeb: Remove unused header includesBrian Gianforcaro
2021-08-01LibGfx: Remove unused header includesBrian Gianforcaro
2021-08-01Utilities: Remove unused header includesBrian Gianforcaro
2021-08-01LibGUI: Remove unused header includesBrian Gianforcaro
2021-08-01LibJS: Remove unused header includesBrian Gianforcaro
2021-08-01LibJS: Remove unused includes out of Cell.h, move to the usersBrian Gianforcaro
Almost everything in LibJS includes Cell.h, don't force all code to include AK/TypeCasts.h + AK/String.h. Instead include them where they are actually used and required.
2021-08-01LibCore: Remove unused header includesBrian Gianforcaro
2021-08-01shot: Make output filename a hyperlink when applicableRyan Liptak
The hyperlink only gets printed when stdout is a TTY, so e.g. something like `shot | cat` will not get the hyperlink escapes.
2021-07-31DisplaySettings: Rename "virtual desktops" => "workspaces"Andreas Kling
2021-07-31MailSettings: Use the same app icon as MailAndreas Kling
*Settings applications should use the same icon as the app they manage the settings for.
2021-07-31Userland: Fix id(1) printing the user's primary group for extra gidssin-ack
This regressed in 538cc9d9 because of a typo.
2021-07-31LibWeb: Fix regression of "contenteditable" attributeTheFightingCatfish
2021-07-31LibJS/Tests: Fix Temporal.Now.plainDateTime{,ISO}() epoch calculationLinus Groh
Combining month and day like this doesn't always yield correct results. Use dayOfYear multiplied by the seconds per day instead, which does.
2021-07-31LibJS/Tests: Fix Temporal.Now.plainDate{,ISO}() at end of month/yearLinus Groh
Evidently, going one day forward on the last day of month increases the month number by one and resets the day to 1. Doing the same on the last day of the year resets the month to 1.
2021-07-31KeyboardSettings: Remove outdated FIXMEAndreas Kling
2021-07-31Browser: Change "Custom" => "Custom..." in menus where appropriateAndreas Kling
If a menu item requires additional user input before the action can be taken, it should have an ellipsis.
2021-07-31HackStudio+TextEditor: Sync extensions from the FileIconProvider fileKarol Kosek
This adds more possible extensions for highlighting C/C++ files and JavaScript module files.
2021-07-31HackStudio: Don't use 'else' after 'return'Karol Kosek
2021-07-31HackStudio: Add syntax highlighting for HTML, Shell, and SQL filesKarol Kosek
.html files were recognised before -- the name was shown on the statusbar, but it didn't actually enable the syntax highlighting. This also sneaks a highlighting for JSON using JS highlighting. It isn't technically correct, but so does TextEditor. :^)
2021-07-31TextEditor: Add automatic syntax highlighting for Shell and .htm filesKarol Kosek
2021-07-31KeyboardMapper: Add menus before showing the windowLuK1337
Otherwise, space is reserved but menus aren't shown.
2021-07-31Calculator: Add menus before showing the windowLuK1337
Otherwise, space is reserved but menus aren't shown.
2021-07-31Piano: Add menus before showing the windowLuK1337
Otherwise, space is reserved but menus aren't shown.
2021-07-31Breakout: Add menus before showing the windowLuK1337
Otherwise, space is reserved but menus aren't shown.
2021-07-31Pong: Add menus before showing the windowLuK1337
Otherwise, space is reserved but menus aren't shown.
2021-07-31LibJS: Implement Temporal.PlainDateTime.prototype.toPlainTimeIdan Horowitz
2021-07-31LibJS: Implement Temporal.PlainDateTime.prototype.withPlainDateIdan Horowitz
2021-07-31LibJS: Implement Temporal.PlainDateTime.prototype.withCalendarIdan Horowitz
2021-07-31LibWeb: Ignore unquoted data urls in CSSSam Atkins
Previously we were only ignoring quoted ones (eg `url("data:...")`), so now we ignore unquoted ones (eg `url(data:...)`) too.
2021-07-31LibWeb: Parse calc() values in new CSS ParserSam Atkins
This is a port of the code from DeprecatedCSSParser, to work with CSS Tokens and TokenStream. I've modified it as little as possible.
2021-07-31LibWeb: Treat CSS calc() values as "builtin_or_dynamic"Sam Atkins
2021-07-31LibWeb: Allow peeking more than 1 token ahead in CSS ParserSam Atkins
2021-07-31LibWeb: Parse box-shadow property in new CSS ParserSam Atkins
Previous multi-value properties use a ValueListStyleValue, which then gets parsed into its sub-properties in the StyleResolver. However, that is not ideal, especially as it exposes StyleResolver to the inner workings of the Parser and Tokenizer, which it should not need to know about. The way `box-shadow` was implemented as a StyleValue subclass means that the parsing can happen inside the Parser instead, which seems like a better solution. Converting the other complicated cases (background, font, list-style) is on my todo list for later.
2021-07-31LibWeb: Convert CSS parse_{color,length}() lambdas into methodsSam Atkins
This lets us get the Length and Color values directly, without having to create a StyleValue object and then throw it away again, when parsing the box-shadow property in the next commit.
2021-07-31LibWeb: Fix issues with CSS attribute selector handlingSam Atkins
This is three small, related changes: 1. Element::has_attribute() now returns true if the attribute exists but has no value. (eg, `<div foo />` -> `has_attribute("foo")`) 2. SelectorEngine::matches_attribute() now makes sure there is a first segment before comparing it, fixing a crash. 3. CSS::Parser now converts attribute names in attribute selectors to lowercase, to match the expectations of the rest of the system. Converting to lowercase is not always correct, depending on language, but since we only currently support HTML, and that expects them to be case-insensitive, it is fine for now.
2021-07-31LibWeb: Make CSS 'An+B' parsing spec-compliantSam Atkins
Parsing this pattern from CSS tokens turns out to be slightly crazy, but thankfully well documented in the spec. The spec lists the cases in order of simple -> complicated, but this would cause problems in code, since `<n-dimension> <signed-.integer>` would never by reached, as `<n-dimension>` comes before. Instead, I have grouped them by their first token. Also renamed the NthChildPattern class to ANPlusBPattern, to match spec terminology.
2021-07-31LibWeb: Parse CSS selectors according to the specSam Atkins
The spec does not directly tell us how to parse selectors, so there are likely some bugs here, but I've used the spec language where possible. This is very much based on the previous selector parsing code. Any parse error inside a selector makes the entire SelectorList invalid, so nothing is returned.
2021-07-31LibWeb: Fix dump_selector() handling of attribute selectorsSam Atkins
Encountering an attribute selector was immediately ending the dump output by mistake, and it was assigning the match types to the wrong variable.
2021-07-31LibWeb: Bring Selector terminology in line with the CSS specSam Atkins
- CompoundSelector -> *deleted* - ComplexSelector -> CompoundSelector - Relation -> Combinator Our Selector is really a ComplexSelector, but only the Parser and SelectorEngine need to know that, so keeping it named Selector makes it more understandable for users. Our CompoundSelector is really a CompoundSelectorAndCombinator. Combining the two makes sense in our codebase, but the accurate name is so long that I think it makes the code less readable. Renamed some Combinators to also match the spec terminology: - AdjacentSibling -> NextSibling - GeneralSibling -> SubsequentSibling The previous names are somewhat ambiguous, so hopefully this is clearer.
2021-07-31LibWeb: Stop parsing integer CSS values as LengthsSam Atkins
This was a hack copied over from the old parser, but it was causing problems with flex-grow, and probably other properties that accept numbers. Removing it does not seem to break anything, so lets' remove it! :^)
2021-07-31LibWeb: Define proper debug symbols for CSS Parser and TokenizerSam Atkins
You can now turn debug logging for them on using `CSS_PARSER_DEBUG` and `CSS_TOKENIZER_DEBUG`.
2021-07-31LibWeb: Use references to CSS tokens instead of copying by valueSam Atkins
A couple of places required a logic change to make this work, but mostly it's a simple case of adding &.
2021-07-31LibWeb: Get CSS @import rules working in new parserSam Atkins
Also added css-import.html, which tests the 3 syntax variations on `@import` statements. Note that the optional media-query parameter to `@import` is not handled yet.
2021-07-30LibJS/Tests: Compare results in Temporal.Now.plainDateTimeISO() testLinus Groh
2021-07-30LibJS/Tests: Compare results in Temporal.Now.plainDateTime() testLinus Groh
2021-07-30LibJS: Add tests for Unicode property escapesTimothy Flynn
LibJS gets this for free from LibRegex, but let's add test cases for it.