зеркало из https://github.com/mozilla/gecko-dev.git
Backed out 1 changesets (bug 1207420) for mulet reftest failures
Backed out changeset 160c4484f0a2 (bug 1207420)
This commit is contained in:
Родитель
0ce48c0f5e
Коммит
93c4173b23
|
@ -3589,28 +3589,20 @@ class nsDisplayTransform: public nsDisplayItem
|
|||
public:
|
||||
StoreList(nsDisplayListBuilder* aBuilder, nsIFrame* aFrame,
|
||||
nsDisplayList* aList) :
|
||||
nsDisplayWrapList(aBuilder, aFrame, aList),
|
||||
mHasBounds(false) {}
|
||||
nsDisplayWrapList(aBuilder, aFrame, aList) {}
|
||||
StoreList(nsDisplayListBuilder* aBuilder, nsIFrame* aFrame,
|
||||
nsDisplayItem* aItem) :
|
||||
nsDisplayWrapList(aBuilder, aFrame, aItem),
|
||||
mHasBounds(false) {}
|
||||
nsDisplayWrapList(aBuilder, aFrame, aItem) {}
|
||||
virtual ~StoreList() {}
|
||||
|
||||
virtual void UpdateBounds(nsDisplayListBuilder* aBuilder) override {}
|
||||
virtual nsRect GetBounds(nsDisplayListBuilder* aBuilder,
|
||||
bool* aSnap) override {
|
||||
if (!mHasBounds) {
|
||||
// The bounds should not be computed until now, because we don't
|
||||
// get accmulated transform before.
|
||||
nsDisplayWrapList::UpdateBounds(aBuilder);
|
||||
mHasBounds = true;
|
||||
}
|
||||
// The bounds should not be computed until now, because we don't
|
||||
// get accmulated transform before.
|
||||
nsDisplayWrapList::UpdateBounds(aBuilder);
|
||||
return nsDisplayWrapList::GetBounds(aBuilder, aSnap);
|
||||
}
|
||||
|
||||
private:
|
||||
bool mHasBounds;
|
||||
};
|
||||
|
||||
public:
|
||||
|
|
Загрузка…
Ссылка в новой задаче