diff options
Diffstat (limited to 'components/favicon_base/fallback_icon_style.cc')
-rw-r--r-- | components/favicon_base/fallback_icon_style.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/favicon_base/fallback_icon_style.cc b/components/favicon_base/fallback_icon_style.cc index d3e395b..a3aa658 100644 --- a/components/favicon_base/fallback_icon_style.cc +++ b/components/favicon_base/fallback_icon_style.cc @@ -41,6 +41,13 @@ FallbackIconStyle::FallbackIconStyle() FallbackIconStyle::~FallbackIconStyle() { } +bool FallbackIconStyle::operator==(const FallbackIconStyle& other) const { + return background_color == other.background_color && + text_color == other.text_color && + font_size_ratio == other.font_size_ratio && + roundness == other.roundness; +} + void MatchFallbackIconTextColorAgainstBackgroundColor( FallbackIconStyle* style) { int luminance = color_utils::GetLuminanceForColor(style->background_color); |