diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gfx/favicon_size.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/gfx/favicon_size.h b/ui/gfx/favicon_size.h index 5e9cd55..9d4cdbc 100644 --- a/ui/gfx/favicon_size.h +++ b/ui/gfx/favicon_size.h @@ -9,7 +9,7 @@ #include "base/compiler_specific.h" // Size (along each axis) of the favicon. -const int kFavIconSize = 16; +const int kFaviconSize = 16; // If the width or height is bigger than the favicon size, a new width/height // is calculated and returned in width/height that maintains the aspect @@ -18,14 +18,14 @@ static void calc_favicon_target_size(int* width, int* height) ALLOW_UNUSED; // static void calc_favicon_target_size(int* width, int* height) { - if (*width > kFavIconSize || *height > kFavIconSize) { + if (*width > kFaviconSize || *height > kFaviconSize) { // Too big, resize it maintaining the aspect ratio. float aspect_ratio = static_cast<float>(*width) / static_cast<float>(*height); - *height = kFavIconSize; + *height = kFaviconSize; *width = static_cast<int>(aspect_ratio * *height); - if (*width > kFavIconSize) { - *width = kFavIconSize; + if (*width > kFaviconSize) { + *width = kFaviconSize; *height = static_cast<int>(*width / aspect_ratio); } } |