From 68da8f78cd06ba70144c9e3fb2e1bae724208e6a Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Thu, 20 May 2010 18:28:00 +0000 Subject: Elide the EV bubble when it's extremely long. This limits it to half the location bar width, unless eliding to that would result in a width of less than 150 px. BUG=42856 TEST=Visit https://www.barbican.org.uk/eticketing/index.asp and make the window smaller. The EV bubble should shrink, eliding in middle, until it hits a minimum size. Review URL: http://codereview.chromium.org/2084012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47819 0039d316-1c4b-4281-b951-d872f2087c98 --- printing/printed_document.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'printing') diff --git a/printing/printed_document.cc b/printing/printed_document.cc index 47e4856..7850073 100644 --- a/printing/printed_document.cc +++ b/printing/printed_document.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -232,7 +232,7 @@ void PrintedDocument::PrintHeaderFooter(gfx::NativeDrawingContext context, if (line == PageOverlays::kUrl) { output = gfx::ElideUrl(url(), font, bounding.width(), std::wstring()); } else { - output = gfx::ElideText(output, font, bounding.width()); + output = gfx::ElideText(output, font, bounding.width(), false); } } -- cgit v1.1