Skip to content

Commit

Permalink
[GCC] Unreviewed, build fix for Ubuntu 20.04 after 257678@main
Browse files Browse the repository at this point in the history
Constructors cannot be defaulted in GCC9.3.

* Source/WebCore/css/CSSCustomPropertyValue.h: Define explicit
  constructor for NumericSyntaxValue.

Canonical link: https://commits.webkit.org/257724@main
  • Loading branch information
dpino authored and zdobersek committed Dec 12, 2022
1 parent 3bdc3f2 commit 93e78be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/WebCore/css/CSSCustomPropertyValue.h
Expand Up @@ -42,7 +42,11 @@ class CSSCustomPropertyValue final : public CSSValue {
double value;
CSSUnitType unitType;

bool operator==(const NumericSyntaxValue&) const = default;
bool operator==(const NumericSyntaxValue& other) const
{
return value == other.value && unitType == other.unitType;
}

};
using SyntaxValue = std::variant<Length, NumericSyntaxValue, StyleColor, RefPtr<StyleImage>, String>;

Expand Down

0 comments on commit 93e78be

Please sign in to comment.