Bug 159914 – Printing a div's content 'eats' a few line down the first page, r+sr=roc a=ss

git-svn-id: svn://10.0.0.236/trunk@253634 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
fantasai.cvs%inkedblade.net 2008-08-15 19:35:47 +00:00
parent 9c02139020
commit be0c45ebcd
6 changed files with 173 additions and 1 deletions

View File

@ -426,7 +426,10 @@ nsAbsoluteContainingBlock::ReflowAbsoluteFrame(nsIFrame* aDelegat
// anything totally below the fold, but we can't position frames
// across next-in-flow breaks yet.
if (constrainHeight) {
kidReflowState.availableHeight = aReflowState.availableHeight - aKidFrame->GetRect().y;
kidReflowState.availableHeight = aReflowState.availableHeight - border.top
- kidReflowState.mComputedMargin.top;
if (NS_AUTOOFFSET != kidReflowState.mComputedOffsets.top)
kidReflowState.availableHeight -= kidReflowState.mComputedOffsets.top;
}
// Do the reflow

View File

@ -0,0 +1,40 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
<head>
<title>AbsPos Pagination</title>
<style type="text/css">
html, body, pre { margin: 0; padding: 0; }
pre {
padding-top: 1in;
line-height: 1;
font-size: 0.25in;
}
</style>
</head>
<body>
<pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24</pre>
</body>
</html>

View File

@ -0,0 +1,41 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
<head>
<title>AbsPos Pagination</title>
<style type="text/css">
html, body, pre { margin: 0; padding: 0; }
pre {
position: absolute;
top: 1in;
line-height: 1;
font-size: 0.25in;
}
</style>
</head>
<body>
<pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24</pre>
</body>
</html>

View File

@ -0,0 +1,42 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
<head>
<title>AbsPos Pagination</title>
<style type="text/css">
html, body, pre { margin: 0; padding: 0; }
pre {
position: absolute;
margin-top: 0.5in;
padding-top: 0.5in;
line-height: 1;
font-size: 0.25in;
}
</style>
</head>
<body>
<pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24</pre>
</body>
</html>

View File

@ -0,0 +1,43 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
<head>
<title>AbsPos Pagination</title>
<style type="text/css">
html, body, pre { margin: 0; padding: 0; }
pre {
position: absolute;
margin-top: 0.3in;
padding-top: 0.3in;
top: 0.4in;
line-height: 1;
font-size: 0.25in;
}
</style>
</head>
<body>
<pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24</pre>
</body>
</html>

View File

@ -20,3 +20,6 @@
== content-inserted-007.xhtml content-inserted-002.ref.xhtml
== content-inserted-008.xhtml content-inserted-001.ref.xhtml
== content-inserted-009.xhtml content-inserted-002.ref.xhtml
== abspos-breaking-000.xhtml abspos-breaking-000.ref.xhtml
== abspos-breaking-001.xhtml abspos-breaking-000.ref.xhtml
== abspos-breaking-002.xhtml abspos-breaking-000.ref.xhtml