зеркало из https://github.com/mozilla/pjs.git
Bug 588407. Put top level content documents in a container layer. r=roc
This commit is contained in:
Родитель
19f7b374c5
Коммит
ca1a9846eb
|
@ -483,7 +483,15 @@ nsSubDocumentFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|||
new (aBuilder) nsDisplayZoom(subdocRootFrame, &childItems,
|
||||
subdocAPD, parentAPD);
|
||||
childItems.AppendToTop(zoomItem);
|
||||
} else if (!nsContentUtils::IsChildOfSameType(presShell->GetDocument())) {
|
||||
// We always want top level content documents to be in their own layer.
|
||||
// If we need a zoom item then we are good because it creates a layer. If
|
||||
// not then create our own layer.
|
||||
nsDisplayOwnLayer* layerItem = new (aBuilder) nsDisplayOwnLayer(
|
||||
subdocRootFrame ? subdocRootFrame : this, &childItems);
|
||||
childItems.AppendToTop(layerItem);
|
||||
}
|
||||
|
||||
// Clip children to the child root frame's rectangle
|
||||
rv = aLists.Content()->AppendNewToTop(
|
||||
new (aBuilder) nsDisplayClip(this, this, &childItems,
|
||||
|
|
Загрузка…
Ссылка в новой задаче