Bug 896138 patch 7: Remove unused aFrameManager parameters to some functions. r=heycam

This commit is contained in:
L. David Baron
2013-07-20 12:14:25 -07:00
parent 82f7e7134b
commit 03e7bf4a60
2 changed files with 8 additions and 13 deletions

View File

@@ -70,7 +70,6 @@ static bool gInApplyRenderingChangeToTree = false;
static void
DoApplyRenderingChangeToTree(nsIFrame* aFrame,
nsFrameManager* aFrameManager,
nsChangeHint aChange);
/**
@@ -83,7 +82,6 @@ DoApplyRenderingChangeToTree(nsIFrame* aFrame,
*/
static void
SyncViewsAndInvalidateDescendants(nsIFrame* aFrame,
nsFrameManager* aFrameManager,
nsChangeHint aChange)
{
NS_PRECONDITION(gInApplyRenderingChangeToTree,
@@ -112,13 +110,11 @@ SyncViewsAndInvalidateDescendants(nsIFrame* aFrame,
// do the out-of-flow frame and its continuations
nsIFrame* outOfFlowFrame =
nsPlaceholderFrame::GetRealFrameForPlaceholder(child);
DoApplyRenderingChangeToTree(outOfFlowFrame, aFrameManager,
aChange);
DoApplyRenderingChangeToTree(outOfFlowFrame, aChange);
} else if (lists.CurrentID() == nsIFrame::kPopupList) {
DoApplyRenderingChangeToTree(child, aFrameManager,
aChange);
DoApplyRenderingChangeToTree(child, aChange);
} else { // regular frame
SyncViewsAndInvalidateDescendants(child, aFrameManager, aChange);
SyncViewsAndInvalidateDescendants(child, aChange);
}
}
}
@@ -168,7 +164,6 @@ GetFrameForChildrenOnlyTransformHint(nsIFrame *aFrame)
static void
DoApplyRenderingChangeToTree(nsIFrame* aFrame,
nsFrameManager* aFrameManager,
nsChangeHint aChange)
{
NS_PRECONDITION(gInApplyRenderingChangeToTree,
@@ -180,7 +175,7 @@ DoApplyRenderingChangeToTree(nsIFrame* aFrame,
// there can't be any out-of-flows or popups that need to be transformed;
// all out-of-flow descendants of the transformed element must also be
// descendants of the transformed frame.
SyncViewsAndInvalidateDescendants(aFrame, aFrameManager,
SyncViewsAndInvalidateDescendants(aFrame,
nsChangeHint(aChange & (nsChangeHint_RepaintFrame |
nsChangeHint_SyncFrameView |
nsChangeHint_UpdateOpacityLayer)));
@@ -297,7 +292,7 @@ ApplyRenderingChangeToTree(nsPresContext* aPresContext,
#ifdef DEBUG
gInApplyRenderingChangeToTree = true;
#endif
DoApplyRenderingChangeToTree(aFrame, shell->FrameManager(), aChange);
DoApplyRenderingChangeToTree(aFrame, aChange);
#ifdef DEBUG
gInApplyRenderingChangeToTree = false;
#endif

View File

@@ -6253,7 +6253,7 @@ nsCSSFrameConstructor::MaybeConstructLazily(Operation aOperation,
}
}
PostRestyleEventForLazyConstruction();
RestyleManager()->PostRestyleEventForLazyConstruction();
return true;
}
@@ -8526,8 +8526,8 @@ nsCSSFrameConstructor::RecreateFramesForContent(nsIContent* aContent,
// ContentRemoved triggered reconstruction, then we don't need to do this
// because the frames will already have been built.
if (aAsyncInsert) {
PostRestyleEvent(aContent->AsElement(), nsRestyleHint(0),
nsChangeHint_ReconstructFrame);
RestyleManager()->PostRestyleEvent(
aContent->AsElement(), nsRestyleHint(0), nsChangeHint_ReconstructFrame);
} else {
rv = ContentInserted(container, aContent, mTempFrameTreeState, false);
}