Bug 686513 - RenderFrameParent::BuildDisplayList crash when shadow root layer is null; r=roc
This commit is contained in:
@@ -811,11 +811,12 @@ RenderFrameParent::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|||||||
// We're the subdoc for <browser remote="true"> and it has
|
// We're the subdoc for <browser remote="true"> and it has
|
||||||
// painted content. Display its shadow layer tree.
|
// painted content. Display its shadow layer tree.
|
||||||
nsDisplayList shadowTree;
|
nsDisplayList shadowTree;
|
||||||
if (aBuilder->IsForEventDelivery()) {
|
ContainerLayer* container = GetRootLayer();
|
||||||
|
if (aBuilder->IsForEventDelivery() && container) {
|
||||||
nsRect bounds = aFrame->EnsureInnerView()->GetBounds();
|
nsRect bounds = aFrame->EnsureInnerView()->GetBounds();
|
||||||
ViewTransform offset =
|
ViewTransform offset =
|
||||||
ViewTransform(GetRootFrameOffset(aFrame, aBuilder), 1, 1);
|
ViewTransform(GetRootFrameOffset(aFrame, aBuilder), 1, 1);
|
||||||
BuildListForLayer(GetRootLayer(), mFrameLoader, offset,
|
BuildListForLayer(container, mFrameLoader, offset,
|
||||||
aBuilder, shadowTree, aFrame);
|
aBuilder, shadowTree, aFrame);
|
||||||
} else {
|
} else {
|
||||||
shadowTree.AppendToTop(
|
shadowTree.AppendToTop(
|
||||||
|
|||||||
Reference in New Issue
Block a user