Land bug 72747 in pieces: use new functions for common overflow tests. b=72747 r+sr=roc

git-svn-id: svn://10.0.0.236/trunk@161682 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%dbaron.org
2004-09-02 23:27:23 +00:00
parent 30c83961ca
commit e8aae32dd7
10 changed files with 16 additions and 34 deletions

View File

@@ -555,9 +555,7 @@ NS_METHOD nsTableRowFrame::Paint(nsPresContext* aPresContext,
aFlags |= NS_PAINT_FLAG_TABLE_BG_PAINT;
}
PRUint8 overflow = GetStyleDisplay()->mOverflow;
PRBool clip = overflow == NS_STYLE_OVERFLOW_CLIP ||
overflow == NS_STYLE_OVERFLOW_HIDDEN;
PRBool clip = GetStyleDisplay()->IsTableClip();
if (clip) {
aRenderingContext.PushState();
SetOverflowClipRect(aRenderingContext);