зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
145fa27431
Коммит
3bd4abf53c
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче