mirror of
https://github.com/RGBCube/serenity
synced 2025-07-22 22:37:40 +00:00
LibWeb: Pass values by reference in style value operator== functions
This commit is contained in:
parent
671712cae6
commit
b219931dfc
1 changed files with 5 additions and 5 deletions
|
@ -1591,7 +1591,7 @@ String LinearGradientStyleValue::to_string() const
|
||||||
return builder.to_string();
|
return builder.to_string();
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool operator==(LinearGradientStyleValue::GradientDirection a, LinearGradientStyleValue::GradientDirection b)
|
static bool operator==(LinearGradientStyleValue::GradientDirection const& a, LinearGradientStyleValue::GradientDirection const& b)
|
||||||
{
|
{
|
||||||
if (a.has<SideOrCorner>() && b.has<SideOrCorner>())
|
if (a.has<SideOrCorner>() && b.has<SideOrCorner>())
|
||||||
return a.get<SideOrCorner>() == b.get<SideOrCorner>();
|
return a.get<SideOrCorner>() == b.get<SideOrCorner>();
|
||||||
|
@ -1600,22 +1600,22 @@ static bool operator==(LinearGradientStyleValue::GradientDirection a, LinearGrad
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool operator==(GradientColorHint a, GradientColorHint b)
|
static bool operator==(GradientColorHint const& a, GradientColorHint const& b)
|
||||||
{
|
{
|
||||||
return a.value == b.value;
|
return a.value == b.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool operator==(GradientColorStop a, GradientColorStop b)
|
static bool operator==(GradientColorStop const& a, GradientColorStop const& b)
|
||||||
{
|
{
|
||||||
return a.color == b.color && a.position == b.position && a.second_position == b.second_position;
|
return a.color == b.color && a.position == b.position && a.second_position == b.second_position;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool operator==(ColorStopListElement a, ColorStopListElement b)
|
static bool operator==(ColorStopListElement const& a, ColorStopListElement const& b)
|
||||||
{
|
{
|
||||||
return a.transition_hint == b.transition_hint && a.color_stop == b.color_stop;
|
return a.transition_hint == b.transition_hint && a.color_stop == b.color_stop;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool operator==(EdgeRect a, EdgeRect b)
|
static bool operator==(EdgeRect const& a, EdgeRect const& b)
|
||||||
{
|
{
|
||||||
return a.top_edge == b.top_edge && a.right_edge == b.right_edge && a.bottom_edge == b.bottom_edge && a.left_edge == b.left_edge;
|
return a.top_edge == b.top_edge && a.right_edge == b.right_edge && a.bottom_edge == b.bottom_edge && a.left_edge == b.left_edge;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue