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:
parent
7128e8e2e6
commit
f235da27d9
4 changed files with 14 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue