mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 07:39:16 +00:00
LibWeb/CSS: Separate IntegerSV and NumberSV from CSSUnitValue
This inheritance exists for typed-om classes, but StyleValues aren't
typed-om.
Somehow this makes our z-index interpolation slightly more correct. 🎉
This commit is contained in:
parent
51a657ca47
commit
7157d19f56
Notes:
github-actions[bot]
2025-08-08 14:20:36 +00:00
Author: https://github.com/AtkinsSJ
Commit: 7157d19f56
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5775
Reviewed-by: https://github.com/tcl3 ✅
10 changed files with 23 additions and 25 deletions
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
#include "IntegerStyleValue.h"
|
||||
#include <LibWeb/CSS/Parser/ComponentValue.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
|
@ -15,7 +16,7 @@ String IntegerStyleValue::to_string(SerializationMode) const
|
|||
|
||||
Vector<Parser::ComponentValue> IntegerStyleValue::tokenize() const
|
||||
{
|
||||
return { Parser::Token::create_number(Number { Number::Type::Integer, value() }) };
|
||||
return { Parser::Token::create_number(Number { Number::Type::Integer, static_cast<double>(m_value) }) };
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue