Bug 417178 - "Google reader does not show subscribed topics in ff3b3 at certain zoom levels" [p=roc@ocallahan.org (Robert O'Callahan [roc]) r+sr=dbaron a1.9b5=mconnor]

This commit is contained in:
reed@reedloden.com 2008-03-24 21:55:47 -07:00
parent ed83140178
commit 3cbc4b60ae
3 changed files with 6 additions and 4 deletions

View File

@ -756,6 +756,7 @@ fails == 413027-3.html 413027-3-ref.html
== 414851-1.html 414851-1-ref.html
== 416106-1.xhtml 416106-1-ref.xhtml
== 416752-1.html 416752-1-ref.html
== 417178-1.html 417178-1-ref.html
== 417246-1.html 417246-1-ref.html
== 417676.html 417676-ref.html
== 418766-1a.html 418766-1-ref.html

View File

@ -306,10 +306,11 @@ struct nsBorderColors {
}
};
// Border widths are rounded to the nearest integer number of pixels, but values
// between zero and one device pixels are always rounded up to one device pixel.
// Border widths are rounded to the nearest-below integer number of pixels,
// but values between zero and one device pixels are always rounded up to
// one device pixel.
#define NS_ROUND_BORDER_TO_PIXELS(l,tpp) \
((l) == 0) ? 0 : PR_MAX((tpp), ((l) + ((tpp) / 2)) / (tpp) * (tpp))
((l) == 0) ? 0 : PR_MAX((tpp), (l) / (tpp) * (tpp))
// Outline offset is rounded to the nearest integer number of pixels, but values
// between zero and one device pixels are always rounded up to one device pixel.
// Note that the offset can be negative.

View File

@ -29,7 +29,7 @@ var computedStyle = document.defaultView.getComputedStyle(div, "");
is(computedStyle.borderLeftWidth, "1px");
is(computedStyle.borderRightWidth, "0px");
is(computedStyle.borderTopWidth, "2px");
is(computedStyle.borderBottomWidth, "6px");
is(computedStyle.borderBottomWidth, "5px");
var div2 = document.getElementById("testDiv2");
var computedStyle2 = document.defaultView.getComputedStyle(div2, "");