mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 1128527 - Only create an APZCTreeManager for widgets for toplevel and child windows. r=kats,Bas
This commit is contained in:
parent
3de09b658c
commit
bf97c2533d
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user