1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

LibWeb: Break friendship between CSS Block and Parser

This means deviating a little from the spec, so that we create a
complete Block in one go instead of creating an empty one and then
poking at its internals.
This commit is contained in:
Sam Atkins 2022-04-12 16:05:44 +01:00 committed by Andreas Kling
parent 7128e8e2e6
commit f235da27d9
4 changed files with 14 additions and 11 deletions

View file

@ -9,12 +9,12 @@
namespace Web::CSS::Parser {
Block::Block() = default;
Block::Block(Token token, Vector<ComponentValue>&& values)
: m_token(move(token))
, m_values(move(values))
{
}
Block::~Block() = default;
String Block::to_string() const