mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset f2d55d17a0d8 (bug 876092)
This commit is contained in:
parent
58d7a06b9f
commit
4d07c30f0a
@ -598,10 +598,8 @@ void nsDisplayListBuilder::MarkOutOfFlowFrameForDisplay(nsIFrame* aDirtyFrame,
|
||||
|
||||
if (!dirty.IntersectRect(dirty, overflowRect))
|
||||
return;
|
||||
const DisplayItemClip* clip = mClipState.GetClipForContainingBlockDescendants();
|
||||
OutOfFlowDisplayData* data = clip ? new OutOfFlowDisplayData(*clip, dirty)
|
||||
: new OutOfFlowDisplayData(dirty);
|
||||
aFrame->Properties().Set(nsDisplayListBuilder::OutOfFlowDisplayDataProperty(), data);
|
||||
aFrame->Properties().Set(nsDisplayListBuilder::OutOfFlowDisplayDataProperty(),
|
||||
new OutOfFlowDisplayData(mClipState.GetClipForContainingBlockDescendants(), dirty));
|
||||
|
||||
MarkFrameForDisplay(aFrame, aDirtyFrame);
|
||||
}
|
||||
|
@ -566,15 +566,12 @@ public:
|
||||
void SetCurrentTableItem(nsDisplayTableItem* aTableItem) { mCurrentTableItem = aTableItem; }
|
||||
|
||||
struct OutOfFlowDisplayData {
|
||||
OutOfFlowDisplayData(const DisplayItemClip& aContainingBlockClip,
|
||||
OutOfFlowDisplayData(const DisplayItemClip* aContainingBlockClip,
|
||||
const nsRect &aDirtyRect)
|
||||
: mContainingBlockClip(aContainingBlockClip)
|
||||
, mDirtyRect(aDirtyRect)
|
||||
{}
|
||||
OutOfFlowDisplayData(const nsRect &aDirtyRect)
|
||||
: mDirtyRect(aDirtyRect)
|
||||
{}
|
||||
DisplayItemClip mContainingBlockClip;
|
||||
const DisplayItemClip* mContainingBlockClip;
|
||||
nsRect mDirtyRect;
|
||||
};
|
||||
static void DestroyOutOfFlowDisplayData(void* aPropertyValue)
|
||||
|
@ -2107,7 +2107,7 @@ nsIFrame::BuildDisplayListForChild(nsDisplayListBuilder* aBuilder,
|
||||
|
||||
if (savedOutOfFlowData) {
|
||||
clipState.SetClipForContainingBlockDescendants(
|
||||
&savedOutOfFlowData->mContainingBlockClip);
|
||||
savedOutOfFlowData->mContainingBlockClip);
|
||||
}
|
||||
|
||||
// Setup clipping for the parent's overflow:-moz-hidden-unscrollable,
|
||||
|
Loading…
Reference in New Issue
Block a user