mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
LibWeb: Store the original representation of CSS tokens
This is required for the `<urange>` type, and custom properties, to work correctly, as both need to know exactly what the original text was.
This commit is contained in:
parent
b876e97719
commit
c138845013
3 changed files with 96 additions and 37 deletions
|
@ -147,6 +147,7 @@ public:
|
|||
ErrorOr<String> to_string() const;
|
||||
ErrorOr<String> to_debug_string() const;
|
||||
|
||||
String const& representation() const { return m_representation; }
|
||||
Position const& start_position() const { return m_start_position; }
|
||||
Position const& end_position() const { return m_end_position; }
|
||||
|
||||
|
@ -181,6 +182,7 @@ private:
|
|||
Number m_number_value;
|
||||
HashType m_hash_type { HashType::Unrestricted };
|
||||
|
||||
String m_representation;
|
||||
Position m_start_position;
|
||||
Position m_end_position;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue