Linus Groh
0aab774343
Everywhere: Fix a bunch of typos
2021-05-17 17:48:55 +01:00
Gunnar Beutner
53d0150827
AK+Userland: Remove nullability feature for the ByteBuffer type
...
Nobody seems to use this particular feature, in fact there were some
bugs which were uncovered by removing operator bool.
2021-05-16 17:49:42 +02:00
Gunnar Beutner
704bfe54b6
LibWeb: Fix incorrect variable names when parsing CSS
2021-05-15 16:27:52 +02:00
miere43
c4bd4cbd76
LibWeb: Implement :nth-last-child pseudo-class
2021-05-11 21:17:16 +01:00
miere43
aa83539d7b
LibWeb: Implement :nth-child pseudo-class
2021-05-09 11:24:04 +02:00
miere43
1e0e8b27c0
LibWeb: Allow white space inside pseudo-class arguments
2021-05-09 11:24:04 +02:00
stelar7
55446172cb
LibWeb: Add selector support to the new CSSParser
...
This is stolen from the old parser, but it seems to parse fine :^)
2021-04-30 08:52:36 +02:00
Linus Groh
649d2faeab
Everywhere: Use "the SerenityOS developers." in copyright headers
...
We had some inconsistencies before:
- Sometimes "The", sometimes "the"
- Sometimes trailing ".", sometimes no trailing "."
I picked the most common one (lowecase "the", trailing ".") and applied
it to all copyright headers.
By using the exact same string everywhere we can ensure nothing gets
missed during a global search (and replace), and that these
inconsistencies are not spread any further (as copyright headers are
commonly copied to new files).
2021-04-29 00:59:26 +02:00
Brian Gianforcaro
1411ae1bc7
LibWeb: Utilize SourceLocation for CSS/Tokenizer logging
2021-04-25 09:32:03 +02:00
Brian Gianforcaro
46524426fb
LibWeb: Utilize SourceLocation for CSS/Parser logging
2021-04-25 09:32:03 +02:00
Brian Gianforcaro
4022d3cb75
LibWeb: Use SourceLocation for DeprecatedCSSParser logging.
2021-04-25 09:32:03 +02:00
Brian Gianforcaro
1682f0b760
Everything: Move to SPDX license identifiers in all files.
...
SPDX License Identifiers are a more compact / standardized
way of representing file license information.
See: https://spdx.dev/resources/use/#identifiers
This was done with the `ambr` search and replace tool.
ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-22 11:22:27 +02:00
Linus Groh
2b0c361d04
Everywhere: Fix a bunch of typos
2021-04-18 10:30:03 +02:00
Egor Ananyin
d5eb09adc2
LibWeb: Parse border-style correctly
2021-04-12 17:47:59 +02:00
Andreas Kling
1d065aa51b
LibWeb: Support the :last-of-type CSS selector :^)
2021-04-06 13:06:42 +02:00
Andreas Kling
0eb9a9dd13
LibWeb: Support the :first-of-type CSS selector :^)
2021-04-06 13:06:42 +02:00
Andreas Kling
21bc5fdec3
LibWeb: Don't interpreter invalid CSS pseudo-classes as '*' selector
...
Bogus pseudo-classes like ":bogus" would actually match every element.
2021-04-02 11:48:00 +02:00
Andreas Kling
036b5c2804
LibWeb: Import new CSS parser
...
It's not finished or hooked up to anything yet, but let's get it into
the tree so we can continue working on it.
Original work by @stelar7.
2021-03-22 18:40:08 +01:00
Andreas Kling
0759f54bd3
LibWeb: Rename StyleDeclaration => CSSStyleDeclaration to match CSSOM
2021-03-13 22:41:32 +01:00
Andreas Kling
df621b9415
LibWeb: Run clang-format on CSS/Parser/StyleComponentValueRule.h
2021-03-09 20:06:52 +01:00
Andreas Kling
7c222d1bdf
LibWeb: Run clang-format on CSS/Parser/Token.h
2021-03-09 20:06:23 +01:00
Andreas Kling
ad152bfa59
LibWeb: Add a whole bunch of rule classes for the new CSS parser
...
Original work by @stelar7.
2021-03-09 17:36:21 +01:00
Andreas Kling
16cde3f14a
LibWeb: Rename CSSParser => DeprecatedCSSParser
2021-03-09 17:35:57 +01:00
Andreas Kling
078f0a5c67
LibWeb: Add specification-based CSS tokenizer
...
Original work by @stelar7 for #2628 .
2021-03-09 17:35:38 +01:00
Andreas Kling
fefb05f6f3
LibWeb: Split CSS::StyleSheet into StyleSheet and CSSStyleSheet
...
This is a little convoluted but matches the CSSOM specification.
2021-03-07 17:45:15 +01:00
Andreas Kling
0af4762662
LibWeb: Rename StyleRule => CSSStyleRule
...
This matches the CSSOM specification.
2021-03-07 17:45:15 +01:00
Sviatoslav Peleshko
54617e1a91
LibWeb: Added simple parsing for (at)import rules
...
For now, the parsing is very crude, and parses only the document url.
The meta queries for the import are ignored.
2021-02-28 10:27:32 +01:00
Sviatoslav Peleshko
04d67d0239
LibWeb: Create base class CSSRule for all CSS rules
...
This is a foundation for handling other ("at") CSS rules.
2021-02-28 10:27:32 +01:00
Andreas Kling
5d180d1f99
Everywhere: Rename ASSERT => VERIFY
...
(...and ASSERT_NOT_REACHED => VERIFY_NOT_REACHED)
Since all of these checks are done in release builds as well,
let's rename them to VERIFY to prevent confusion, as everyone is
used to assertions being compiled out in release.
We can introduce a new ASSERT macro that is specifically for debug
checks, but I'm doing this wholesale conversion first since we've
accumulated thousands of these already, and it's not immediately
obvious which ones are suitable for ASSERT.
2021-02-23 20:56:54 +01:00
Andreas Kling
9de1253f44
LibWeb: Remove a whole bunch of unnecessary #includes
2021-02-10 09:13:29 +01:00
asynts
adbb8d62d1
Everywhere: Replace a bundle of dbg with dbgln.
...
These changes are arbitrarily divided into multiple commits to make it
easier to find potentially introduced bugs with git bisect.
2021-01-16 11:54:35 +01:00
Andreas Kling
13d7c09125
Libraries: Move to Userland/Libraries/
2021-01-12 12:17:46 +01:00