From b58f73f0cf1ecbd1361e523d1cea7cc805d8ece4 Mon Sep 17 00:00:00 2001 From: "attinasi%netscape.com" Date: Fri, 28 Apr 2000 20:40:17 +0000 Subject: [PATCH] Made table backgrounds draw in NavQuirks as well as Standard mode. r=karnaze b=34838 git-svn-id: svn://10.0.0.236/trunk@67558 18797224-902f-48f8-a5cc-f745e15eee43 --- .../layout/html/table/src/nsTableFrame.cpp | 19 ++++++++----------- mozilla/layout/tables/nsTableFrame.cpp | 19 ++++++++----------- 2 files changed, 16 insertions(+), 22 deletions(-) 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()) {