Backed out 1 changesets (bug 1207420) for mulet reftest failures

Backed out changeset 160c4484f0a2 (bug 1207420)
This commit is contained in:
Carsten "Tomcat" Book 2015-09-28 12:13:25 +02:00
Родитель 0ce48c0f5e
Коммит 93c4173b23
1 изменённых файлов: 5 добавлений и 13 удалений

Просмотреть файл

@ -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: