mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00
Fix regression bug 223394 -- percent-height replaced inlines that only have
auto-height ancestors should get intrinsic height instead of 0, even in quirks mode. r+sr=roc, a=asa
This commit is contained in:
parent
1ed0199b39
commit
99faa8a63a
@ -1809,16 +1809,13 @@ nsHTMLReflowState::InitConstraints(nsIPresContext* aPresContext,
|
||||
if (eCompatibility_NavQuirks == mode) {
|
||||
if (!IS_TABLE_CELL(fType)) {
|
||||
aContainingBlockHeight = CalcQuirkContainingBlockHeight(*cbrs);
|
||||
if (aContainingBlockHeight == NS_AUTOHEIGHT) {
|
||||
heightUnit = eStyleUnit_Auto;
|
||||
}
|
||||
}
|
||||
else {
|
||||
heightUnit = eStyleUnit_Auto;
|
||||
}
|
||||
// NOTE: since here we really do NEED the computed height of the containing block,
|
||||
// we pass PR_FALSE for the aRestrictToFirstLevel argument, allowing the method
|
||||
// to walk up the frame tree arbitrarily far to find a real height. This is NOT
|
||||
// default behavior, since it is an additional performance hit and is not usually
|
||||
// necessary (see other call in ComputeContainingBlockRectangle).
|
||||
// This is an IE emulation for %-height images - see bug 85016
|
||||
}
|
||||
// in standard mode, use the cb height. if it's "auto", as will be the case
|
||||
// by default in BODY, use auto height as per CSS2 spec.
|
||||
|
@ -1809,16 +1809,13 @@ nsHTMLReflowState::InitConstraints(nsIPresContext* aPresContext,
|
||||
if (eCompatibility_NavQuirks == mode) {
|
||||
if (!IS_TABLE_CELL(fType)) {
|
||||
aContainingBlockHeight = CalcQuirkContainingBlockHeight(*cbrs);
|
||||
if (aContainingBlockHeight == NS_AUTOHEIGHT) {
|
||||
heightUnit = eStyleUnit_Auto;
|
||||
}
|
||||
}
|
||||
else {
|
||||
heightUnit = eStyleUnit_Auto;
|
||||
}
|
||||
// NOTE: since here we really do NEED the computed height of the containing block,
|
||||
// we pass PR_FALSE for the aRestrictToFirstLevel argument, allowing the method
|
||||
// to walk up the frame tree arbitrarily far to find a real height. This is NOT
|
||||
// default behavior, since it is an additional performance hit and is not usually
|
||||
// necessary (see other call in ComputeContainingBlockRectangle).
|
||||
// This is an IE emulation for %-height images - see bug 85016
|
||||
}
|
||||
// in standard mode, use the cb height. if it's "auto", as will be the case
|
||||
// by default in BODY, use auto height as per CSS2 spec.
|
||||
|
Loading…
x
Reference in New Issue
Block a user