Skip to content

Commit

Permalink
Fix PlayStation build following 278652@main
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=274045

Unreviewed build fix.

* Source/WebCore/css/color/StyleColor.cpp:

Fix `error: equality comparison operator can only be defaulted in a class definition`.
Canonical link: https://commits.webkit.org/278661@main
  • Loading branch information
rkirsling committed May 12, 2024
1 parent 11b43d3 commit af7bd70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/WebCore/css/color/StyleColor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ StyleColor::StyleColor(StyleColor&&) = default;
StyleColor& StyleColor::operator=(StyleColor&&) = default;
StyleColor::~StyleColor() = default;

bool StyleColor::operator==(const StyleColor&) const = default;
bool StyleColor::operator==(const StyleColor& other) const
{
return m_color == other.m_color;
}

// This helper allows us to treat all the alternatives in ColorKind
// as const references, pretending the UniqueRefs don't exist.
Expand Down

0 comments on commit af7bd70

Please sign in to comment.