From 23025b2d6975eaba24b84bb2c12e5dc884e3fea8 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Tue, 21 Jul 1998 07:47:46 +0000 Subject: [PATCH] Commented out code that was forcing the border style to solid rather than using whatever is in the default ua style sheet (inset) git-svn-id: svn://10.0.0.236/trunk@6062 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/table/src/nsTableCellFrame.cpp | 4 ++++ mozilla/layout/tables/nsTableCellFrame.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/mozilla/layout/html/table/src/nsTableCellFrame.cpp b/mozilla/layout/html/table/src/nsTableCellFrame.cpp index 3ff92ad013e..54abab38e5b 100644 --- a/mozilla/layout/html/table/src/nsTableCellFrame.cpp +++ b/mozilla/layout/html/table/src/nsTableCellFrame.cpp @@ -427,10 +427,14 @@ void nsTableCellFrame::MapHTMLBorderStyle(nsIPresContext* aPresContext, nsStyleS aSpacingStyle.mBorder.SetBottom(width); aSpacingStyle.mBorder.SetRight(width); + // XXX This should come from the default style sheet (ua.css), and + // not be hardcoded. Using solid causes the borders not to show up... +#if 0 aSpacingStyle.mBorderStyle[NS_SIDE_TOP] = NS_STYLE_BORDER_STYLE_SOLID; aSpacingStyle.mBorderStyle[NS_SIDE_LEFT] = NS_STYLE_BORDER_STYLE_SOLID; aSpacingStyle.mBorderStyle[NS_SIDE_BOTTOM] = NS_STYLE_BORDER_STYLE_SOLID; aSpacingStyle.mBorderStyle[NS_SIDE_RIGHT] = NS_STYLE_BORDER_STYLE_SOLID; +#endif nsTableFrame* tableFrame = GetTableFrame(); nsIStyleContext* styleContext = nsnull; diff --git a/mozilla/layout/tables/nsTableCellFrame.cpp b/mozilla/layout/tables/nsTableCellFrame.cpp index 3ff92ad013e..54abab38e5b 100644 --- a/mozilla/layout/tables/nsTableCellFrame.cpp +++ b/mozilla/layout/tables/nsTableCellFrame.cpp @@ -427,10 +427,14 @@ void nsTableCellFrame::MapHTMLBorderStyle(nsIPresContext* aPresContext, nsStyleS aSpacingStyle.mBorder.SetBottom(width); aSpacingStyle.mBorder.SetRight(width); + // XXX This should come from the default style sheet (ua.css), and + // not be hardcoded. Using solid causes the borders not to show up... +#if 0 aSpacingStyle.mBorderStyle[NS_SIDE_TOP] = NS_STYLE_BORDER_STYLE_SOLID; aSpacingStyle.mBorderStyle[NS_SIDE_LEFT] = NS_STYLE_BORDER_STYLE_SOLID; aSpacingStyle.mBorderStyle[NS_SIDE_BOTTOM] = NS_STYLE_BORDER_STYLE_SOLID; aSpacingStyle.mBorderStyle[NS_SIDE_RIGHT] = NS_STYLE_BORDER_STYLE_SOLID; +#endif nsTableFrame* tableFrame = GetTableFrame(); nsIStyleContext* styleContext = nsnull;