Bug 1463605 - Check continuation or IB split sibling frames in nsDOMWindowUtils::CheckAndClearDisplayListState. r=mattwoodrow

MozReview-Commit-ID: 6PjC5INFyym

--HG--
extra : rebase_source : 3b6b39e700cf51ea926b8441c832e50118398f41
This commit is contained in:
Hiroyuki Ikezoe 2018-05-23 18:15:12 +09:00
parent a28e0be181
commit c14fa231c7

View File

@ -2936,7 +2936,14 @@ nsDOMWindowUtils::CheckAndClearDisplayListState(Element* aElement, bool* aResult
}
}
*aResult = frame->CheckAndClearDisplayListState();
while (frame) {
if (!frame->CheckAndClearDisplayListState()) {
*aResult = false;
return NS_OK;
}
frame = nsLayoutUtils::GetNextContinuationOrIBSplitSibling(frame);
}
*aResult = true;
return NS_OK;
}