Don't overlap scroll frame margin box with float (regression). b=350046 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@208474 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ad80f2b24f
commit
f119c67ad5
@ -233,9 +233,10 @@ nsBlockReflowState::ComputeBlockAvailSpace(nsIFrame* aFrame,
|
||||
// text controls are not splittable
|
||||
// XXXldb Why not just set the frame state bit?
|
||||
|
||||
if ((NS_FRAME_SPLITTABLE_NON_RECTANGULAR == aSplitType || // normal blocks
|
||||
NS_FRAME_NOT_SPLITTABLE == aSplitType) && // things like images mapped to display: block
|
||||
!(aFrame->GetStateBits() & NS_FRAME_REPLACED_ELEMENT)) // but not replaced elements
|
||||
if ((NS_FRAME_SPLITTABLE_NON_RECTANGULAR == aSplitType || // normal blocks
|
||||
NS_FRAME_NOT_SPLITTABLE == aSplitType) && // things like images mapped to display: block
|
||||
!(aFrame->GetStateBits() & NS_FRAME_REPLACED_ELEMENT) && // but not replaced elements
|
||||
aFrame->GetType() != nsLayoutAtoms::scrollFrame) // or scroll frames
|
||||
{
|
||||
if (mBand.GetFloatCount()) {
|
||||
// Use the float-edge property to determine how the child block
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user