Bug 1353060: Allow APZ in popup window widgets. r=kats

Prior to this patchset, we never hosted remote, scrollable content in widgets
other than toplevel and child windows, so all other widget types have APZ
disabled. Since we now need to host remote content in popup widgets, and would
like similar performance and behavior for those browsers as other remote
browsers, we also need to enable APZ for those widgets too.

MozReview-Commit-ID: AVDt9U5i2WK
This commit is contained in:
Kris Maglione
2017-04-17 13:29:56 -07:00
parent e240fa1529
commit 2d98d9a4ca

View File

@@ -923,7 +923,9 @@ bool
nsBaseWidget::UseAPZ()
{
return (gfxPlatform::AsyncPanZoomEnabled() &&
(WindowType() == eWindowType_toplevel || WindowType() == eWindowType_child));
(WindowType() == eWindowType_toplevel ||
WindowType() == eWindowType_child ||
(WindowType() == eWindowType_popup && !IsSmallPopup())));
}
void nsBaseWidget::CreateCompositor()