зеркало из https://github.com/mozilla/pjs.git
Bug 404146. Simplifying the code a little
This commit is contained in:
Родитель
c738a80c4f
Коммит
bd654f2c4e
|
@ -661,9 +661,9 @@ nsContainerFrame::DoInlineIntrinsicWidth(nsIRenderingContext *aRenderingContext,
|
|||
GetCoord(styleMargin->mMargin.Get(startSide, tmp), 0);
|
||||
|
||||
const nsLineList_iterator* savedLine = aData->line;
|
||||
nsContainerFrame* next;
|
||||
|
||||
for (nsContainerFrame *nif = this; nif; nif = next) {
|
||||
for (nsContainerFrame *nif = this; nif;
|
||||
nif = (nsContainerFrame*) nif->GetNextInFlow()) {
|
||||
for (nsIFrame *kid = nif->mFrames.FirstChild(); kid;
|
||||
kid = kid->GetNextSibling()) {
|
||||
if (aType == nsLayoutUtils::MIN_WIDTH)
|
||||
|
@ -674,12 +674,9 @@ nsContainerFrame::DoInlineIntrinsicWidth(nsIRenderingContext *aRenderingContext,
|
|||
static_cast<InlinePrefWidthData*>(aData));
|
||||
}
|
||||
|
||||
next = (nsContainerFrame*) nif->GetNextInFlow();
|
||||
if (next) {
|
||||
// After we advance to our next-in-flow, the stored line may no
|
||||
// longer be the correct line. Just forget it.
|
||||
aData->line = nsnull;
|
||||
}
|
||||
// After we advance to our next-in-flow, the stored line may not
|
||||
// longer be the correct line. Just forget it.
|
||||
aData->line = nsnull;
|
||||
}
|
||||
|
||||
aData->line = savedLine;
|
||||
|
|
Загрузка…
Ссылка в новой задаче