зеркало из https://github.com/mozilla/pjs.git
Bug 292295. Blocks with clearance are not actually top-margin-roots. Their top margin is still managed by the parent block if there is one. Fixes an Acid2 issue. r+sr=dbaron,a=asa
This commit is contained in:
Родитель
cce8f8a587
Коммит
4084e32dcd
|
@ -734,7 +734,7 @@ nsBlockFrame::Reflow(nsPresContext* aPresContext,
|
|||
}
|
||||
|
||||
nsBlockReflowState state(aReflowState, aPresContext, this, aMetrics,
|
||||
aReflowState.mFlags.mHasClearance || (NS_BLOCK_MARGIN_ROOT & mState),
|
||||
(NS_BLOCK_MARGIN_ROOT & mState),
|
||||
(NS_BLOCK_MARGIN_ROOT & mState));
|
||||
|
||||
// The condition for doing Bidi resolutions includes a test for the
|
||||
|
@ -3239,7 +3239,7 @@ nsBlockFrame::ReflowBlockFrame(nsBlockReflowState& aState,
|
|||
// Only record the first frame that requires clearance
|
||||
if (!*aState.mReflowState.mDiscoveredClearance) {
|
||||
*aState.mReflowState.mDiscoveredClearance = frame;
|
||||
}
|
||||
}
|
||||
// Exactly what we do now is flexible since we'll definitely be
|
||||
// reflowed.
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче