Bug 948419 - Allow mouse-wheel zooming on about:newtab by allowing zooming for XUL documents not in chrome docshells. r=smaug

This commit is contained in:
Drew Willcoxon 2013-12-11 18:33:47 -08:00
parent b8c943758f
commit f698377e16

View File

@ -2504,11 +2504,11 @@ void
nsEventStateManager::DoScrollZoom(nsIFrame *aTargetFrame,
int32_t adjustment)
{
// Exclude form controls and XUL content.
// Exclude form controls and content in chrome docshells.
nsIContent *content = aTargetFrame->GetContent();
if (content &&
!content->IsNodeOfType(nsINode::eHTML_FORM_CONTROL) &&
!content->OwnerDoc()->IsXUL())
!nsContentUtils::IsInChromeDocshell(content->OwnerDoc()))
{
// positive adjustment to decrease zoom, negative to increase
int32_t change = (adjustment > 0) ? -1 : 1;