mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00
Bug 810592 - Make nsSubDocumentFrames that are actively scrolling build their own layer. r=roc
This commit is contained in:
parent
cf76cd1e8e
commit
e0d92d15d0
@ -414,7 +414,10 @@ nsSubDocumentFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
childItems.AppendToTop(zoomItem);
|
||||
}
|
||||
|
||||
if (!addedLayer && presContext->IsRootContentDocument()) {
|
||||
nsIScrollableFrame *sf = presShell->GetRootScrollFrameAsScrollable();
|
||||
if (!addedLayer &&
|
||||
(presContext->IsRootContentDocument() ||
|
||||
(sf && sf->IsScrollingActive()))) {
|
||||
// We always want top level content documents to be in their own layer.
|
||||
nsDisplayOwnLayer* layerItem = new (aBuilder) nsDisplayOwnLayer(
|
||||
aBuilder, subdocRootFrame ? subdocRootFrame : this,
|
||||
|
Loading…
x
Reference in New Issue
Block a user