mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Backed out 1 changesets (bug 1207420) for mulet reftest failures
Backed out changeset 160c4484f0a2 (bug 1207420)
This commit is contained in:
parent
0ce48c0f5e
commit
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:
|
||||
|
Loading…
Reference in New Issue
Block a user