Bug 1128527 - Only create an APZCTreeManager for widgets for toplevel and child windows. r=kats,Bas

This commit is contained in:
Botond Ballo 2015-02-04 12:53:07 -05:00
parent 3de09b658c
commit bf97c2533d

View File

@ -1027,7 +1027,8 @@ void nsBaseWidget::CreateCompositor(int aWidth, int aHeight)
mCompositorChild = new CompositorChild(lm);
mCompositorChild->Open(parentChannel, childMessageLoop, ipc::ChildSide);
if (gfxPrefs::AsyncPanZoomEnabled()) {
if (gfxPrefs::AsyncPanZoomEnabled() &&
(WindowType() == eWindowType_toplevel || WindowType() == eWindowType_child)) {
ConfigureAPZCTreeManager();
}