зеркало из https://github.com/mozilla/gecko-dev.git
Changing the order in which borders are painted for compatibility.
Used to be TOP,LEFT,BOTTOM,RIGHT, and now it's BOTTOM,LEFT,TOP,RIGHT. Fix for bug#11022
This commit is contained in:
Родитель
38a72c5fc1
Коммит
9db5447de6
|
@ -1423,10 +1423,10 @@ void nsCSSRendering::PaintBorder(nsIPresContext& aPresContext,
|
|||
twipsPerPixel = (nscoord) p2t;/* XXX */
|
||||
|
||||
nscolor sideColor;
|
||||
if (0 == (aSkipSides & (1<<NS_SIDE_TOP))) {
|
||||
if (aBorderStyle.GetBorderColor(NS_SIDE_TOP, sideColor)) {
|
||||
DrawSide(aRenderingContext, NS_SIDE_TOP,
|
||||
aBorderStyle.GetBorderStyle(NS_SIDE_TOP),
|
||||
if (0 == (aSkipSides & (1<<NS_SIDE_BOTTOM))) {
|
||||
if (aBorderStyle.GetBorderColor(NS_SIDE_BOTTOM, sideColor)) {
|
||||
DrawSide(aRenderingContext, NS_SIDE_BOTTOM,
|
||||
aBorderStyle.GetBorderStyle(NS_SIDE_BOTTOM),
|
||||
sideColor,
|
||||
bgColor->mBackgroundColor, inside,outside, aSkipSides,
|
||||
twipsPerPixel, aGap);
|
||||
|
@ -1441,10 +1441,10 @@ void nsCSSRendering::PaintBorder(nsIPresContext& aPresContext,
|
|||
twipsPerPixel, aGap);
|
||||
}
|
||||
}
|
||||
if (0 == (aSkipSides & (1<<NS_SIDE_BOTTOM))) {
|
||||
if (aBorderStyle.GetBorderColor(NS_SIDE_BOTTOM, sideColor)) {
|
||||
DrawSide(aRenderingContext, NS_SIDE_BOTTOM,
|
||||
aBorderStyle.GetBorderStyle(NS_SIDE_BOTTOM),
|
||||
if (0 == (aSkipSides & (1<<NS_SIDE_TOP))) {
|
||||
if (aBorderStyle.GetBorderColor(NS_SIDE_TOP, sideColor)) {
|
||||
DrawSide(aRenderingContext, NS_SIDE_TOP,
|
||||
aBorderStyle.GetBorderStyle(NS_SIDE_TOP),
|
||||
sideColor,
|
||||
bgColor->mBackgroundColor,inside, outside,aSkipSides,
|
||||
twipsPerPixel, aGap);
|
||||
|
|
|
@ -1423,10 +1423,10 @@ void nsCSSRendering::PaintBorder(nsIPresContext& aPresContext,
|
|||
twipsPerPixel = (nscoord) p2t;/* XXX */
|
||||
|
||||
nscolor sideColor;
|
||||
if (0 == (aSkipSides & (1<<NS_SIDE_TOP))) {
|
||||
if (aBorderStyle.GetBorderColor(NS_SIDE_TOP, sideColor)) {
|
||||
DrawSide(aRenderingContext, NS_SIDE_TOP,
|
||||
aBorderStyle.GetBorderStyle(NS_SIDE_TOP),
|
||||
if (0 == (aSkipSides & (1<<NS_SIDE_BOTTOM))) {
|
||||
if (aBorderStyle.GetBorderColor(NS_SIDE_BOTTOM, sideColor)) {
|
||||
DrawSide(aRenderingContext, NS_SIDE_BOTTOM,
|
||||
aBorderStyle.GetBorderStyle(NS_SIDE_BOTTOM),
|
||||
sideColor,
|
||||
bgColor->mBackgroundColor, inside,outside, aSkipSides,
|
||||
twipsPerPixel, aGap);
|
||||
|
@ -1441,10 +1441,10 @@ void nsCSSRendering::PaintBorder(nsIPresContext& aPresContext,
|
|||
twipsPerPixel, aGap);
|
||||
}
|
||||
}
|
||||
if (0 == (aSkipSides & (1<<NS_SIDE_BOTTOM))) {
|
||||
if (aBorderStyle.GetBorderColor(NS_SIDE_BOTTOM, sideColor)) {
|
||||
DrawSide(aRenderingContext, NS_SIDE_BOTTOM,
|
||||
aBorderStyle.GetBorderStyle(NS_SIDE_BOTTOM),
|
||||
if (0 == (aSkipSides & (1<<NS_SIDE_TOP))) {
|
||||
if (aBorderStyle.GetBorderColor(NS_SIDE_TOP, sideColor)) {
|
||||
DrawSide(aRenderingContext, NS_SIDE_TOP,
|
||||
aBorderStyle.GetBorderStyle(NS_SIDE_TOP),
|
||||
sideColor,
|
||||
bgColor->mBackgroundColor,inside, outside,aSkipSides,
|
||||
twipsPerPixel, aGap);
|
||||
|
|
Загрузка…
Ссылка в новой задаче