Commit e03dab6c authored by dbeam@chromium.org's avatar dbeam@chromium.org

Fix tabs.cc static initializer issue.

R=oshima@chromium.org
TBR=oshima@chromium.org
BUG=362633
TEST=green tree (specifically sizes)

Review URL: https://codereview.chromium.org/259953002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266336 0039d316-1c4b-4281-b951-d872f2087c98
parent 90e0914b
......@@ -63,9 +63,6 @@ const int kBottomPadding = 5;
// Height of the shadow at the top of the tab image assets.
const int kDropShadowHeight = 4;
// Size of icon used for throbber and favicon next to tab title.
const int kTabIconSize = gfx::kFaviconSize;
// How long the pulse throb takes.
const int kPulseDurationMs = 200;
......@@ -688,6 +685,7 @@ void Tab::Layout() {
// The height of the content of the Tab is the largest of the favicon,
// the title text and the close button graphic.
const int kTabIconSize = gfx::kFaviconSize;
int content_height = std::max(kTabIconSize, font_height_);
close_button_->SetBorder(views::Border::NullBorder());
gfx::Size close_button_size(close_button_->GetPreferredSize());
......@@ -1470,7 +1468,7 @@ int Tab::IconCapacity() const {
return 0;
const int available_width =
std::max(0, width() - kLeftPadding - kRightPadding);
const int width_per_icon = kTabIconSize;
const int width_per_icon = gfx::kFaviconSize;
const int kPaddingBetweenIcons = 2;
if (available_width >= width_per_icon &&
available_width < (width_per_icon + kPaddingBetweenIcons)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment