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

@@ -431,10 +431,9 @@ nsTableCellFrame::Paint(nsPresContext* aPresContext,
nsClipCombine_kIntersect);
}
else {
if (NS_STYLE_OVERFLOW_CLIP == disp->mOverflow ||
// XXXldb HIDDEN should really create a scrollframe,
// but test here since it doesn't.
NS_STYLE_OVERFLOW_HIDDEN == disp->mOverflow ||
// XXXldb HIDDEN should really create a scrollframe,
// but use |IsTableClip| here since it doesn't.
if (disp->IsTableClip() ||
HasPctOverHeight()) {
aRenderingContext.PushState();
pushed = PR_TRUE;