Bug 664925 - Don't set NSZeroSize to say that a given control size isn't available. r=mstange

Actually, we should patch DrawCellWithSnapping to ignore sizes set to
NSZeroSize, see bug 665571.
This commit is contained in:
Mounir Lamouri 2011-06-20 19:02:42 +02:00
parent 37c943cc8c
commit 443f578e23
3 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1 @@
<html xmlns="http://www.w3.org/1999/xhtml"><div><td style="-moz-appearance: progressbar;"></td></div></html>

View File

@ -1,2 +1,3 @@
skip-if(!cocoaWidget) != 507947.html about:blank
== progressbar-fallback-default-style.html progressbar-fallback-default-style-ref.html
load 664925.xhtml

View File

@ -1143,7 +1143,10 @@ static const CellRenderSettings progressSettings[2][2] = {
// Determined settings.
{
{
NSZeroSize, // mini
// TODO: for the moment, DrawCellWithSnapping doesn't handle NSZeroSize
// values in this array so we have to use negative values until
// bug 665571 is fixed.
NSMakeSize(-5, -5), // mini
NSMakeSize(10, 0), // small
NSMakeSize(16, 0) // regular
},
@ -1161,7 +1164,10 @@ static const CellRenderSettings progressSettings[2][2] = {
// There is no horizontal margin in regular undetermined size.
{
{
NSZeroSize, // mini
// TODO: for the moment, DrawCellWithSnapping doesn't handle NSZeroSize
// values in this array so we have to use negative values until
// bug 665571 is fixed.
NSMakeSize(-5, -5), // mini
NSMakeSize(10, 0), // small
NSMakeSize(16, 0) // regular
},