Fix for bug #6947. Changed PlaceBlock() to also check the combined area height

when checking for a zero-height frame
This commit is contained in:
troy%netscape.com 1999-06-25 03:17:04 +00:00
Родитель 145fa27431
Коммит 3bd4abf53c
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -343,7 +343,9 @@ nsBlockReflowContext::PlaceBlock(PRBool aForceFit,
PRBool fits = PR_TRUE;
nscoord x = mX;
nscoord y = mY;
if (0 == mMetrics.height) {
// When deciding whether it's an empty paragraph we also need to take into
// account the combined area
if ((0 == mMetrics.height) && (0 == mMetrics.mCombinedArea.height)) {
if (IsHTMLParagraph(mFrame)) {
// Special "feature" for HTML compatability - empty paragraphs
// collapse into nothingness, including their margins.

Просмотреть файл

@ -343,7 +343,9 @@ nsBlockReflowContext::PlaceBlock(PRBool aForceFit,
PRBool fits = PR_TRUE;
nscoord x = mX;
nscoord y = mY;
if (0 == mMetrics.height) {
// When deciding whether it's an empty paragraph we also need to take into
// account the combined area
if ((0 == mMetrics.height) && (0 == mMetrics.mCombinedArea.height)) {
if (IsHTMLParagraph(mFrame)) {
// Special "feature" for HTML compatability - empty paragraphs
// collapse into nothingness, including their margins.