diff --git a/mozilla/layout/html/table/src/nsTableFrame.cpp b/mozilla/layout/html/table/src/nsTableFrame.cpp
index 8f59cbeaab3..7f14fc61b8c 100644
--- a/mozilla/layout/html/table/src/nsTableFrame.cpp
+++ b/mozilla/layout/html/table/src/nsTableFrame.cpp
@@ -1236,18 +1236,15 @@ NS_METHOD nsTableFrame::Paint(nsIPresContext* aPresContext,
nsRect rect(0, 0, mRect.width, mRect.height);
- nsCompatibility mode;
- aPresContext->GetCompatibilityMode(&mode);
- if (eCompatibility_Standard == mode) {
- nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, this,
- aDirtyRect, rect, *color, *spacing, 0, 0);
- // paint the column groups and columns
- nsIFrame* colGroupFrame = mColGroups.FirstChild();
- while (nsnull != colGroupFrame) {
- PaintChild(aPresContext, aRenderingContext, aDirtyRect, colGroupFrame, aWhichLayer);
- colGroupFrame->GetNextSibling(&colGroupFrame);
- }
+ nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, this,
+ aDirtyRect, rect, *color, *spacing, 0, 0);
+ // paint the column groups and columns
+ nsIFrame* colGroupFrame = mColGroups.FirstChild();
+ while (nsnull != colGroupFrame) {
+ PaintChild(aPresContext, aRenderingContext, aDirtyRect, colGroupFrame, aWhichLayer);
+ colGroupFrame->GetNextSibling(&colGroupFrame);
}
+
PRIntn skipSides = GetSkipSides();
if (NS_STYLE_BORDER_SEPARATE == GetBorderCollapseStyle())
{
diff --git a/mozilla/layout/tables/nsTableFrame.cpp b/mozilla/layout/tables/nsTableFrame.cpp
index 8f59cbeaab3..7f14fc61b8c 100644
--- a/mozilla/layout/tables/nsTableFrame.cpp
+++ b/mozilla/layout/tables/nsTableFrame.cpp
@@ -1236,18 +1236,15 @@ NS_METHOD nsTableFrame::Paint(nsIPresContext* aPresContext,
nsRect rect(0, 0, mRect.width, mRect.height);
- nsCompatibility mode;
- aPresContext->GetCompatibilityMode(&mode);
- if (eCompatibility_Standard == mode) {
- nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, this,
- aDirtyRect, rect, *color, *spacing, 0, 0);
- // paint the column groups and columns
- nsIFrame* colGroupFrame = mColGroups.FirstChild();
- while (nsnull != colGroupFrame) {
- PaintChild(aPresContext, aRenderingContext, aDirtyRect, colGroupFrame, aWhichLayer);
- colGroupFrame->GetNextSibling(&colGroupFrame);
- }
+ nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, this,
+ aDirtyRect, rect, *color, *spacing, 0, 0);
+ // paint the column groups and columns
+ nsIFrame* colGroupFrame = mColGroups.FirstChild();
+ while (nsnull != colGroupFrame) {
+ PaintChild(aPresContext, aRenderingContext, aDirtyRect, colGroupFrame, aWhichLayer);
+ colGroupFrame->GetNextSibling(&colGroupFrame);
}
+
PRIntn skipSides = GetSkipSides();
if (NS_STYLE_BORDER_SEPARATE == GetBorderCollapseStyle())
{