Bug 1265237 - Clear clipping for out-of-flow frames that we are descending into but haven't stored explicit clip data for. r=mstange

--HG--
extra : rebase_source : e9f88b3e469a8afdec5c9636751a278a70ae7102
This commit is contained in:
Matt Woodrow 2016-05-04 12:58:01 +12:00
Родитель 76c8d4c781
Коммит 071273aa13
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -2771,6 +2771,12 @@ nsIFrame::BuildDisplayListForChild(nsDisplayListBuilder* aBuilder,
&savedOutOfFlowData->mContainingBlockClip);
clipState.SetScrollClipForContainingBlockDescendants(
savedOutOfFlowData->mContainingBlockScrollClip);
} else if (GetStateBits() & NS_FRAME_FORCE_DISPLAY_LIST_DESCEND_INTO) {
// If we have nested out-of-flow frames and the outer one isn't visible
// then we won't have stored clip data for it. We can just clear the clip
// instead since we know we won't render anything, and the inner out-of-flow
// frame will setup the correct clip for itself.
clipState.Clear();
}
// Setup clipping for the parent's overflow:-moz-hidden-unscrollable,