Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home for chromium.org
« Groups Home
Message from discussion Deprecate unused custom vertical text alignment in CanvasSkia. (issue 11362070)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Scott Violet  
View profile  
 More options Nov 5 2012, 10:59 am
From: Scott Violet <s...@chromium.org>
Date: Mon, 5 Nov 2012 07:59:46 -0800
Local: Mon, Nov 5 2012 10:59 am
Subject: Re: Deprecate unused custom vertical text alignment in CanvasSkia. (issue 11362070)
I see your point, but if we're only using vertical I don't see a
compelling reason to keep the others.

  -Scott

On Mon, Nov 5, 2012 at 7:44 AM,  <asvitk...@chromium.org> wrote:
> I'm a bit mixed on this.

> On one hand, it's great to delete dead code (and please change your CL title
> to
> say "Delete" not "Deprecate", since "Deprecate" usually means keeping the
> code
> for a while but marking it as deprecated).

> But I also think that having vertical alignment is a pretty basic
> functionality
> that API users will want, so I'm weary of removing it now, only causing
> someone
> down the line to re-add it (possibly coded in a different way), when adding
> a
> feature that needs it.

> With only middle alignment, it's difficult to position the text precisely,
> since
> the metrics of the string (e.g. height) wouldn't be known until fallback
> fonts
> are determined. Using top or bottom alignment allows you to "pin" your text
> to
> something above or below it - and you can just give it a rect that's
> sufficiently tall and get a good result. With middle alignment only, it
> becomes
> more difficult.

> I guess I'll defer to sky on this one.

> http://codereview.chromium.org/11362070/diff/7001/ui/gfx/canvas_skia.cc
> File ui/gfx/canvas_skia.cc (left):

> http://codereview.chromium.org/11362070/diff/7001/ui/gfx/canvas_skia....
> ui/gfx/canvas_skia.cc:267: //                  http://crbug.com/107357
> Last time I attempted to remove this block, it caused a regression with
> the SSL settings bubble on Windows with the paragraph that described the
> current connection (I believe that bubble has now been changed to have
> that paragraph in a 2nd tab inside the bubble).

> Can you verify that your ifdef added below doesn't cause a regression?
> (From reading the code, it looks correct - so just pointing out a way to
> test this, if you haven't seen already.)

> http://codereview.chromium.org/11362070/diff/7001/ui/gfx/canvas_skia.cc
> File ui/gfx/canvas_skia.cc (right):

> http://codereview.chromium.org/11362070/diff/7001/ui/gfx/canvas_skia....
> ui/gfx/canvas_skia.cc:447: const int line_height =
> render_text->GetStringSize().height();
> Nit: This block is the same as above. Can you make a helper function?

> http://codereview.chromium.org/11362070/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.