зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1588025
- Change an argument to nsContainerFrame* for ConstructAnonymousContentForCanvas. r=jfkthame
The only caller SetRootElementFrameAndConstructCanvasAnonContent() already passes nsContainerFrame* to aFrame. A minor cleanup discovered while working on this bug. Differential Revision: https://phabricator.services.mozilla.com/D48943 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
7fd6d04f2b
Коммит
914a980331
|
@ -2754,8 +2754,8 @@ void nsCSSFrameConstructor::SetUpDocElementContainingBlock(
|
|||
}
|
||||
|
||||
void nsCSSFrameConstructor::ConstructAnonymousContentForCanvas(
|
||||
nsFrameConstructorState& aState, nsIFrame* aFrame, nsIContent* aDocElement,
|
||||
nsFrameList& aFrameList) {
|
||||
nsFrameConstructorState& aState, nsContainerFrame* aFrame,
|
||||
nsIContent* aDocElement, nsFrameList& aFrameList) {
|
||||
NS_ASSERTION(aFrame->IsCanvasFrame(), "aFrame should be canvas frame!");
|
||||
MOZ_ASSERT(mRootElementFrame->GetContent() == aDocElement);
|
||||
|
||||
|
@ -2766,11 +2766,10 @@ void nsCSSFrameConstructor::ConstructAnonymousContentForCanvas(
|
|||
}
|
||||
|
||||
AutoFrameConstructionItemList itemsToConstruct(this);
|
||||
nsContainerFrame* frameAsContainer = do_QueryFrame(aFrame);
|
||||
AddFCItemsForAnonymousContent(aState, frameAsContainer, anonymousItems,
|
||||
AddFCItemsForAnonymousContent(aState, aFrame, anonymousItems,
|
||||
itemsToConstruct);
|
||||
|
||||
ConstructFramesFromItemList(aState, itemsToConstruct, frameAsContainer,
|
||||
ConstructFramesFromItemList(aState, itemsToConstruct, aFrame,
|
||||
/* aParentIsWrapperAnonBox = */ false,
|
||||
aFrameList);
|
||||
}
|
||||
|
|
|
@ -2124,7 +2124,7 @@ class nsCSSFrameConstructor final : public nsFrameManager {
|
|||
void CountersDirty();
|
||||
|
||||
void ConstructAnonymousContentForCanvas(nsFrameConstructorState& aState,
|
||||
nsIFrame* aFrame,
|
||||
nsContainerFrame* aFrame,
|
||||
nsIContent* aDocElement,
|
||||
nsFrameList&);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче