bug 484256 remove remaining border widths limits that are now obsolete as borders have a 2 byte storage r=fantasai

This commit is contained in:
Bernd 2010-03-06 10:53:03 +01:00
Родитель aa4293bcea
Коммит 41de842d18
5 изменённых файлов: 46 добавлений и 14 удалений

Просмотреть файл

@ -0,0 +1,12 @@
<html>
<head>
<style>
table {border-collapse: separate; border-spacing:0px;
border-top: 300px solid orange}
div {width:10px; height: 10px; border:thin green solid;}
td {padding:0px;}
</style>
</head>
<div></div>
<table><tr><td><div></div></td></tr></table>
</html>

Просмотреть файл

@ -0,0 +1,12 @@
<html>
<head>
<style>
table {border-collapse: collapse;
border-top: 300px solid orange}
div {width:10px; height: 10px; border:thin green solid;}
td {padding:0px;}
</style>
</head>
<div></div>
<table><tr><td><div></div></td></tr></table>
</html>

Просмотреть файл

@ -0,0 +1,13 @@
<html>
<head>
<style>
table {border-collapse: collapse;
border-bottom: 300px solid orange}
div {width:10px; height: 10px; border:thin green solid;}
td {padding:0px;}
</style>
</head>
<table><tr><td><div></div></td></tr></table>
<div></div>
</html>

Просмотреть файл

@ -1261,6 +1261,8 @@ fails-if(MOZ_WIDGET_TOOLKIT=="gtk2") == 481948-3.html 481948-3-ref.html # differ
== 482659-1c.html 482659-1-ref.html
== 482659-1d.html 482659-1-ref.html
== 483565.xul 483565-ref.xul
== 484256-1.html 484256-1-ref.html
== 484256-2.html 484256-1-ref.html
== 485012-1.html 485012-1-ref.html
== 485275-1.html 485275-1-ref.html
== 485275-1.svg 485275-1-ref.html

Просмотреть файл

@ -5070,12 +5070,6 @@ nsTableFrame::ExpandBCDamageArea(nsRect& aRect) const
}
}
#define MAX_TABLE_BORDER_WIDTH 255
static PRUint8
LimitBorderWidth(PRUint16 aWidth)
{
return NS_MIN(PRUint16(MAX_TABLE_BORDER_WIDTH), aWidth);
}
#define ADJACENT PR_TRUE
#define HORIZONTAL PR_TRUE
@ -5246,8 +5240,7 @@ BCMapCellInfo::SetRowRightContBCBorder()
void
BCMapCellInfo::SetTableTopBorderWidth(BCPixelSize aWidth)
{
mTableBCData->mTopBorderWidth =
LimitBorderWidth(NS_MAX(mTableBCData->mTopBorderWidth, aWidth));
mTableBCData->mTopBorderWidth = NS_MAX(mTableBCData->mTopBorderWidth, aWidth);
}
void
@ -5262,8 +5255,8 @@ BCMapCellInfo::SetTableLeftBorderWidth(PRInt32 aRowY, BCPixelSize aWidth)
mTableBCData->mRightCellBorderWidth = aWidth;
}
}
mTableBCData->mLeftBorderWidth =
LimitBorderWidth(NS_MAX(mTableBCData->mLeftBorderWidth, aWidth));
mTableBCData->mLeftBorderWidth = NS_MAX(mTableBCData->mLeftBorderWidth,
aWidth);
}
void
@ -5278,8 +5271,8 @@ BCMapCellInfo::SetTableRightBorderWidth(PRInt32 aRowY, BCPixelSize aWidth)
mTableBCData->mLeftCellBorderWidth = aWidth;
}
}
mTableBCData->mRightBorderWidth =
LimitBorderWidth(NS_MAX(mTableBCData->mRightBorderWidth, aWidth));
mTableBCData->mRightBorderWidth = NS_MAX(mTableBCData->mRightBorderWidth,
aWidth);
}
void
@ -5341,8 +5334,8 @@ BCMapCellInfo::SetLeftBorderWidths(BCPixelSize aWidth)
void
BCMapCellInfo::SetTableBottomBorderWidth(BCPixelSize aWidth)
{
mTableBCData->mBottomBorderWidth =
LimitBorderWidth(NS_MAX(mTableBCData->mBottomBorderWidth, aWidth));
mTableBCData->mBottomBorderWidth = NS_MAX(mTableBCData->mBottomBorderWidth,
aWidth);
}
void