mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
b8c943758f
commit
f698377e16
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user