зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
7b70aa2a8c
Коммит
167d58e444
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче