mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
37c943cc8c
commit
443f578e23
1
widget/reftests/664925.xhtml
Normal file
1
widget/reftests/664925.xhtml
Normal file
@ -0,0 +1 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><div><td style="-moz-appearance: progressbar;"></td></div></html>
|
@ -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
|
||||
|
@ -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
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user