Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7620)

Unified Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc

Issue 2208973003: Add some extra height to bookmark bar if the font wants to be larger (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call GetPreferredHeight() only once in GetPreferredSize() Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
index e67d28ea4152f4aa4785c2b8c15b344cbd83a248..1f0066862d7243572f52ab31d1cf53eb515239f8 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
@@ -140,7 +140,7 @@ std::string GetNewTabBackgroundCSS(const ui::ThemeProvider& theme_provider,
if (alignment & ThemeProperties::ALIGN_TOP) {
// The bar is detached, so we must offset the background by the bar size
// if it's a top-aligned bar.
Evan Stade 2016/08/17 06:36:35 ruh roh. This is now broken since we aren't hard-c
kylix_rd 2016/08/17 15:39:02 It is only broken if kNTPMinimumBookmarkBarHeight
Evan Stade 2016/08/17 15:47:29 oh wait, that's right, the ntp version is taller a
kylix_rd 2016/08/17 16:13:51 Consistency? A little overzealous? Good question.
- int offset = chrome::kNTPBookmarkBarHeight;
+ int offset = chrome::kNTPMinimumBookmarkBarHeight;
if (alignment & ThemeProperties::ALIGN_LEFT)
return "left " + base::IntToString(-offset) + "px";

Powered by Google App Engine
This is Rietveld 408576698