Issue #1826 - Serialize special calc() number values

This commit is contained in:
Basilisk-Dev 2026-05-06 08:15:05 -04:00 • committed by EAZYBLACK
commit 6a0c0925e5
4 changed files with 235 additions and 14 deletions

View file

@ -782,7 +782,6 @@ public:
float GetFloatValue() const
{
MOZ_ASSERT(eCSSUnit_Number <= mUnit, "not a float value");
MOZ_ASSERT(!mozilla::IsNaN(mValue.mFloat));
return mValue.mFloat;
}
@ -2040,4 +2039,3 @@ private:
} // namespace mozilla
#endif /* nsCSSValue_h___ */