зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1022612. Part 1: Always pass a frame to AutoBuildingDisplayList. r=mattwoodrow
--HG-- extra : rebase_source : c76f7af7e65a4e98dc3ee0a8309d0c05e02cf82e
This commit is contained in:
Родитель
20443103f0
Коммит
022839c50e
|
@ -533,17 +533,6 @@ public:
|
|||
friend class AutoBuildingDisplayList;
|
||||
class AutoBuildingDisplayList {
|
||||
public:
|
||||
AutoBuildingDisplayList(nsDisplayListBuilder* aBuilder, bool aIsRoot)
|
||||
: mBuilder(aBuilder),
|
||||
mPrevCachedOffsetFrame(aBuilder->mCachedOffsetFrame),
|
||||
mPrevCachedReferenceFrame(aBuilder->mCachedReferenceFrame),
|
||||
mPrevLayerEventRegions(aBuilder->mLayerEventRegions),
|
||||
mPrevCachedOffset(aBuilder->mCachedOffset),
|
||||
mPrevIsAtRootOfPseudoStackingContext(aBuilder->mIsAtRootOfPseudoStackingContext),
|
||||
mPrevAncestorHasTouchEventHandler(aBuilder->mAncestorHasTouchEventHandler)
|
||||
{
|
||||
aBuilder->mIsAtRootOfPseudoStackingContext = aIsRoot;
|
||||
}
|
||||
AutoBuildingDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
nsIFrame* aForChild, bool aIsRoot)
|
||||
: mBuilder(aBuilder),
|
||||
|
|
|
@ -1953,7 +1953,7 @@ nsIFrame::BuildDisplayListForStackingContext(nsDisplayListBuilder* aBuilder,
|
|||
|
||||
nsDisplayListCollection set;
|
||||
{
|
||||
nsDisplayListBuilder::AutoBuildingDisplayList rootSetter(aBuilder, true);
|
||||
nsDisplayListBuilder::AutoBuildingDisplayList rootSetter(aBuilder, this, true);
|
||||
DisplayListClipState::AutoSaveRestore nestedClipState(aBuilder);
|
||||
nsDisplayListBuilder::AutoInTransformSetter
|
||||
inTransformSetter(aBuilder, inTransform);
|
||||
|
|
Загрузка…
Ссылка в новой задаче