зеркало из https://github.com/mozilla/gecko-dev.git
Checking for border width > 0 before setting the border style to NS_STYLE_BORDER_STYLE_BG_INSET.
This fixes a bug where style changes were causing table cell borders to appear when previously there were none. b=25425 r=karnaze
This commit is contained in:
Родитель
e2e7c63c10
Коммит
3dcb1df4fd
|
@ -1087,7 +1087,7 @@ MapAttributesInto(const nsIHTMLMappedAttributes* aAttributes,
|
|||
if (readDisplay && (readDisplay->mDisplay == NS_STYLE_DISPLAY_TABLE_CELL)) {
|
||||
// set the cell's border from the table
|
||||
aAttributes->GetAttribute(nsHTMLAtoms::border, value);
|
||||
if ((value.GetUnit() == eHTMLUnit_Pixel) ||
|
||||
if (((value.GetUnit() == eHTMLUnit_Pixel) && (value.GetPixelValue() > 0)) ||
|
||||
(value.GetUnit() == eHTMLUnit_Empty)) {
|
||||
float p2t;
|
||||
aPresContext->GetPixelsToTwips(&p2t);
|
||||
|
|
|
@ -1087,7 +1087,7 @@ MapAttributesInto(const nsIHTMLMappedAttributes* aAttributes,
|
|||
if (readDisplay && (readDisplay->mDisplay == NS_STYLE_DISPLAY_TABLE_CELL)) {
|
||||
// set the cell's border from the table
|
||||
aAttributes->GetAttribute(nsHTMLAtoms::border, value);
|
||||
if ((value.GetUnit() == eHTMLUnit_Pixel) ||
|
||||
if (((value.GetUnit() == eHTMLUnit_Pixel) && (value.GetPixelValue() > 0)) ||
|
||||
(value.GetUnit() == eHTMLUnit_Empty)) {
|
||||
float p2t;
|
||||
aPresContext->GetPixelsToTwips(&p2t);
|
||||
|
|
Загрузка…
Ссылка в новой задаче