Bug 1236828 part 1 - Apply proper clip state to top layer frames. r=mstange

MozReview-Commit-ID: JW2tAFu4wIP

--HG--
extra : rebase_source : 8e77980eb1ffc41af0bba82f292dc6470a6ceea5
This commit is contained in:
Xidorn Quan 2016-04-06 18:48:31 +10:00
Родитель 7b70aa2a8c
Коммит 167d58e444
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -99,10 +99,15 @@ BuildDisplayListForTopLayerFrame(nsDisplayListBuilder* aBuilder,
nsDisplayList* aList)
{
nsRect dirty;
DisplayListClipState::AutoClipMultiple clipState(aBuilder);
nsDisplayListBuilder::OutOfFlowDisplayData*
savedOutOfFlowData = nsDisplayListBuilder::GetOutOfFlowData(aFrame);
if (savedOutOfFlowData) {
dirty = savedOutOfFlowData->mDirtyRect;
clipState.SetClipForContainingBlockDescendants(
&savedOutOfFlowData->mContainingBlockClip);
clipState.SetScrollClipForContainingBlockDescendants(
savedOutOfFlowData->mContainingBlockScrollClip);
}
nsDisplayList list;
aFrame->BuildDisplayListForStackingContext(aBuilder, dirty, &list);