mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1022612. Part 8: nsDisplayWrapList (but not subclasses) should return true for ShouldFlattenAway. r=mattwoodrow
Also the assertion in TryMerge is going away because we're going to do TryMerge first in FrameLayerBuilder. --HG-- extra : rebase_source : de8a1a620279182bf5e33165aa9bbe9a74c08a73
This commit is contained in:
parent
845210128b
commit
d8e5658d39
@ -2619,13 +2619,15 @@ public:
|
||||
nsRegion* aVisibleRegion,
|
||||
const nsRect& aAllowVisibleRegionExpansion) MOZ_OVERRIDE;
|
||||
virtual bool TryMerge(nsDisplayListBuilder* aBuilder, nsDisplayItem* aItem) MOZ_OVERRIDE {
|
||||
NS_WARNING("This list should already have been flattened!!!");
|
||||
return false;
|
||||
}
|
||||
virtual void GetMergedFrames(nsTArray<nsIFrame*>* aFrames) MOZ_OVERRIDE
|
||||
{
|
||||
aFrames->AppendElements(mMergedFrames);
|
||||
}
|
||||
virtual bool ShouldFlattenAway(nsDisplayListBuilder* aBuilder) {
|
||||
return true;
|
||||
}
|
||||
virtual bool IsInvalid(nsRect& aRect) MOZ_OVERRIDE
|
||||
{
|
||||
if (mFrame->IsInvalid(aRect) && aRect.IsEmpty()) {
|
||||
@ -2798,6 +2800,9 @@ public:
|
||||
nsRegion* aVisibleRegion,
|
||||
const nsRect& aAllowVisibleRegionExpansion) MOZ_OVERRIDE;
|
||||
virtual bool TryMerge(nsDisplayListBuilder* aBuilder, nsDisplayItem* aItem) MOZ_OVERRIDE;
|
||||
virtual bool ShouldFlattenAway(nsDisplayListBuilder* aBuilder) MOZ_OVERRIDE {
|
||||
return false;
|
||||
}
|
||||
NS_DISPLAY_DECL_NAME("MixBlendMode", TYPE_MIX_BLEND_MODE)
|
||||
};
|
||||
|
||||
@ -2825,6 +2830,9 @@ public:
|
||||
return mozilla::LAYER_INACTIVE;
|
||||
}
|
||||
virtual bool TryMerge(nsDisplayListBuilder* aBuilder, nsDisplayItem* aItem) MOZ_OVERRIDE;
|
||||
virtual bool ShouldFlattenAway(nsDisplayListBuilder* aBuilder) MOZ_OVERRIDE {
|
||||
return false;
|
||||
}
|
||||
NS_DISPLAY_DECL_NAME("BlendContainer", TYPE_BLEND_CONTAINER)
|
||||
|
||||
private:
|
||||
@ -2884,6 +2892,9 @@ public:
|
||||
// Don't allow merging, each sublist must have its own layer
|
||||
return false;
|
||||
}
|
||||
virtual bool ShouldFlattenAway(nsDisplayListBuilder* aBuilder) MOZ_OVERRIDE {
|
||||
return false;
|
||||
}
|
||||
uint32_t GetFlags() { return mFlags; }
|
||||
NS_DISPLAY_DECL_NAME("OwnLayer", TYPE_OWN_LAYER)
|
||||
protected:
|
||||
@ -3171,6 +3182,9 @@ public:
|
||||
const nsRect& aAllowVisibleRegionExpansion) MOZ_OVERRIDE;
|
||||
virtual bool TryMerge(nsDisplayListBuilder* aBuilder,
|
||||
nsDisplayItem* aItem) MOZ_OVERRIDE;
|
||||
virtual bool ShouldFlattenAway(nsDisplayListBuilder* aBuilder) MOZ_OVERRIDE {
|
||||
return false;
|
||||
}
|
||||
NS_DISPLAY_DECL_NAME("SVGEffects", TYPE_SVG_EFFECTS)
|
||||
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
|
@ -37,6 +37,9 @@ public:
|
||||
: nsDisplayWrapList(aBuilder, aFrame, aList) {}
|
||||
virtual void HitTest(nsDisplayListBuilder* aBuilder, const nsRect& aRect,
|
||||
HitTestState* aState, nsTArray<nsIFrame*> *aOutFrames);
|
||||
virtual bool ShouldFlattenAway(nsDisplayListBuilder* aBuilder) MOZ_OVERRIDE {
|
||||
return false;
|
||||
}
|
||||
NS_DISPLAY_DECL_NAME("OptionEventGrabber", TYPE_OPTION_EVENT_GRABBER)
|
||||
};
|
||||
|
||||
|
@ -2012,6 +2012,9 @@ public:
|
||||
virtual void HitTest(nsDisplayListBuilder* aBuilder, const nsRect& aRect,
|
||||
HitTestState* aState,
|
||||
nsTArray<nsIFrame*> *aOutFrames) MOZ_OVERRIDE;
|
||||
virtual bool ShouldFlattenAway(nsDisplayListBuilder* aBuilder) MOZ_OVERRIDE {
|
||||
return false;
|
||||
}
|
||||
NS_DISPLAY_DECL_NAME("XULEventRedirector", TYPE_XUL_EVENT_REDIRECTOR)
|
||||
private:
|
||||
nsIFrame* mTargetFrame;
|
||||
|
Loading…
Reference in New Issue
Block a user