Comment #7 on issue 8061 by rohit...@google.com: Port text_elider_unittest  
to Mac
http://code.google.com/p/chromium/issues/detail?id=8061

This last test case is failing on the mac because adding together the  
lengths of each
string component does not equal the length of the whole string.  If you  
step through
the test in the debugger, you get to a point where the actual length of a  
string is
159px, but its components' lengths sum up to 155 -- this is causing us to  
take a
different branch in the code.

One possible solution is to stop summing up component lengths and call
font.GetStringLength() instead, but I have no idea how expensive of an  
operation that
is.  Is this something that's ok to call many times per elided URL?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to