diff --git a/content/html/content/src/nsHTMLTableElement.cpp b/content/html/content/src/nsHTMLTableElement.cpp index 9e41ceab6136..aca142a316b8 100644 --- a/content/html/content/src/nsHTMLTableElement.cpp +++ b/content/html/content/src/nsHTMLTableElement.cpp @@ -1155,13 +1155,15 @@ MapAttributesInto(nsIHTMLAttributes* aAttributes, if (value.GetUnit() == eHTMLUnit_Pixel) { if (nsnull==tableStyle) tableStyle = (nsStyleTable*)aContext->GetMutableStyleData(eStyleStruct_Table); - tableStyle->mCellSpacing.SetCoordValue(NSIntPixelsToTwips(value.GetPixelValue(), p2t)); + tableStyle->mBorderSpacingX.SetCoordValue(NSIntPixelsToTwips(value.GetPixelValue(), p2t)); + tableStyle->mBorderSpacingY.SetCoordValue(NSIntPixelsToTwips(value.GetPixelValue(), p2t)); } else { // XXX: remove me as soon as we get this from the style sheet if (nsnull==tableStyle) tableStyle = (nsStyleTable*)aContext->GetMutableStyleData(eStyleStruct_Table); - tableStyle->mCellSpacing.SetCoordValue(NSIntPixelsToTwips(2, p2t)); + tableStyle->mBorderSpacingX.SetCoordValue(NSIntPixelsToTwips(2, p2t)); + tableStyle->mBorderSpacingY.SetCoordValue(NSIntPixelsToTwips(2, p2t)); } // cols diff --git a/layout/html/content/src/nsHTMLTableElement.cpp b/layout/html/content/src/nsHTMLTableElement.cpp index 9e41ceab6136..aca142a316b8 100644 --- a/layout/html/content/src/nsHTMLTableElement.cpp +++ b/layout/html/content/src/nsHTMLTableElement.cpp @@ -1155,13 +1155,15 @@ MapAttributesInto(nsIHTMLAttributes* aAttributes, if (value.GetUnit() == eHTMLUnit_Pixel) { if (nsnull==tableStyle) tableStyle = (nsStyleTable*)aContext->GetMutableStyleData(eStyleStruct_Table); - tableStyle->mCellSpacing.SetCoordValue(NSIntPixelsToTwips(value.GetPixelValue(), p2t)); + tableStyle->mBorderSpacingX.SetCoordValue(NSIntPixelsToTwips(value.GetPixelValue(), p2t)); + tableStyle->mBorderSpacingY.SetCoordValue(NSIntPixelsToTwips(value.GetPixelValue(), p2t)); } else { // XXX: remove me as soon as we get this from the style sheet if (nsnull==tableStyle) tableStyle = (nsStyleTable*)aContext->GetMutableStyleData(eStyleStruct_Table); - tableStyle->mCellSpacing.SetCoordValue(NSIntPixelsToTwips(2, p2t)); + tableStyle->mBorderSpacingX.SetCoordValue(NSIntPixelsToTwips(2, p2t)); + tableStyle->mBorderSpacingY.SetCoordValue(NSIntPixelsToTwips(2, p2t)); } // cols