Bug 686513 - RenderFrameParent::BuildDisplayList crash when shadow root layer is null; r=roc

This commit is contained in:
Oleg Romashin 2011-09-14 08:51:24 +01:00
Родитель 629fff9409
Коммит bf429a8ed6
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -811,11 +811,12 @@ RenderFrameParent::BuildDisplayList(nsDisplayListBuilder* aBuilder,
// We're the subdoc for <browser remote="true"> and it has
// painted content. Display its shadow layer tree.
nsDisplayList shadowTree;
if (aBuilder->IsForEventDelivery()) {
ContainerLayer* container = GetRootLayer();
if (aBuilder->IsForEventDelivery() && container) {
nsRect bounds = aFrame->EnsureInnerView()->GetBounds();
ViewTransform offset =
ViewTransform(GetRootFrameOffset(aFrame, aBuilder), 1, 1);
BuildListForLayer(GetRootLayer(), mFrameLoader, offset,
BuildListForLayer(container, mFrameLoader, offset,
aBuilder, shadowTree, aFrame);
} else {
shadowTree.AppendToTop(