LibWeb/CSS: Preserve original source text for ComponentValues

This requires a little bit of ad-hoc tracking of start/end Tokens for
Function and SimpleBlock.
This commit is contained in:
Sam Atkins 2024-10-14 16:16:42 +01:00 committed by Andreas Kling
commit ea164124de
Notes: github-actions[bot] 2024-10-16 12:23:48 +00:00
5 changed files with 41 additions and 7 deletions

View file

@ -41,6 +41,7 @@ public:
String to_string() const;
String to_debug_string() const;
String original_source_text() const;
private:
Variant<Token, Function, SimpleBlock> m_value;