mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1019191 part 16. Remove nsDOMQS.h. r=peterv
This commit is contained in:
parent
9c0d3a322f
commit
149330c39c
@ -1376,13 +1376,6 @@ def UnionConversions(unionTypes, config):
|
|||||||
headers.add(typeDesc.headerFile)
|
headers.add(typeDesc.headerFile)
|
||||||
else:
|
else:
|
||||||
headers.add(CGHeaders.getDeclarationFilename(f.inner))
|
headers.add(CGHeaders.getDeclarationFilename(f.inner))
|
||||||
# Check for whether we have a possibly-XPConnect-implemented
|
|
||||||
# interface. If we do, the right descriptor will come from
|
|
||||||
# providers[0], because that would be the non-worker
|
|
||||||
# descriptor provider, if we have one at all.
|
|
||||||
if (f.isGeckoInterface() and
|
|
||||||
providers[0].getDescriptor(f.inner.identifier.name).hasXPConnectImpls):
|
|
||||||
headers.add("nsDOMQS.h")
|
|
||||||
elif f.isDictionary():
|
elif f.isDictionary():
|
||||||
headers.add(CGHeaders.getDeclarationFilename(f.inner))
|
headers.add(CGHeaders.getDeclarationFilename(f.inner))
|
||||||
elif f.isPrimitive():
|
elif f.isPrimitive():
|
||||||
@ -12278,24 +12271,9 @@ class CGBindingRoot(CGThing):
|
|||||||
dictionaries,
|
dictionaries,
|
||||||
mainCallbacks + workerCallbacks))))
|
mainCallbacks + workerCallbacks))))
|
||||||
|
|
||||||
bindingHeaders["nsDOMQS.h"] = any(d.hasXPConnectImpls for d in descriptors)
|
|
||||||
# Only mainthread things can have hasXPConnectImpls
|
# Only mainthread things can have hasXPConnectImpls
|
||||||
provider = config.getDescriptorProvider(False)
|
provider = config.getDescriptorProvider(False)
|
||||||
|
|
||||||
def checkForXPConnectImpls(typeInfo):
|
|
||||||
type, _, _ = typeInfo
|
|
||||||
type = type.unroll()
|
|
||||||
while type.isMozMap():
|
|
||||||
type = type.inner.unroll()
|
|
||||||
if not type.isInterface() or not type.isGeckoInterface():
|
|
||||||
return False
|
|
||||||
try:
|
|
||||||
typeDesc = provider.getDescriptor(type.inner.identifier.name)
|
|
||||||
except NoSuchDescriptorError:
|
|
||||||
return False
|
|
||||||
return typeDesc.hasXPConnectImpls
|
|
||||||
addHeaderBasedOnTypes("nsDOMQS.h", checkForXPConnectImpls)
|
|
||||||
|
|
||||||
def descriptorClearsPropsInSlots(descriptor):
|
def descriptorClearsPropsInSlots(descriptor):
|
||||||
if not descriptor.wrapperCache:
|
if not descriptor.wrapperCache:
|
||||||
return False
|
return False
|
||||||
@ -15072,7 +15050,6 @@ class CGEventRoot(CGThing):
|
|||||||
"%s.h" % interfaceName,
|
"%s.h" % interfaceName,
|
||||||
"js/GCAPI.h",
|
"js/GCAPI.h",
|
||||||
'mozilla/dom/Nullable.h',
|
'mozilla/dom/Nullable.h',
|
||||||
'nsDOMQS.h'
|
|
||||||
],
|
],
|
||||||
"", self.root, config)
|
"", self.root, config)
|
||||||
|
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
||||||
/* vim: set ts=8 sts=4 et sw=4 tw=99: */
|
|
||||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
||||||
|
|
||||||
#ifndef nsDOMQS_h__
|
|
||||||
#define nsDOMQS_h__
|
|
||||||
|
|
||||||
#include "nsDOMClassInfoID.h"
|
|
||||||
#include "nsGenericHTMLElement.h"
|
|
||||||
#include "mozilla/dom/HTMLCanvasElement.h"
|
|
||||||
#include "mozilla/dom/HTMLFormElement.h"
|
|
||||||
#include "mozilla/dom/HTMLImageElement.h"
|
|
||||||
#include "mozilla/dom/HTMLOptionElement.h"
|
|
||||||
#include "HTMLOptGroupElement.h"
|
|
||||||
#include "mozilla/dom/HTMLVideoElement.h"
|
|
||||||
#include "nsHTMLDocument.h"
|
|
||||||
#include "nsICSSDeclaration.h"
|
|
||||||
#include "nsSVGElement.h"
|
|
||||||
#include "mozilla/dom/Event.h"
|
|
||||||
#include "mozilla/dom/UIEvent.h"
|
|
||||||
#include "mozilla/dom/MouseEvent.h"
|
|
||||||
#include "mozilla/dom/EventTargetBinding.h"
|
|
||||||
#include "mozilla/dom/NodeBinding.h"
|
|
||||||
#include "mozilla/dom/ElementBinding.h"
|
|
||||||
#include "mozilla/dom/HTMLElementBinding.h"
|
|
||||||
#include "mozilla/dom/DocumentBinding.h"
|
|
||||||
#include "mozilla/dom/SVGElementBinding.h"
|
|
||||||
#include "mozilla/dom/HTMLDocumentBinding.h"
|
|
||||||
#include "XPCQuickStubs.h"
|
|
||||||
#include "nsGlobalWindow.h"
|
|
||||||
|
|
||||||
inline nsISupports*
|
|
||||||
ToSupports(nsContentList *p)
|
|
||||||
{
|
|
||||||
return static_cast<nsINodeList*>(p);
|
|
||||||
}
|
|
||||||
|
|
||||||
inline nsISupports*
|
|
||||||
ToCanonicalSupports(nsContentList *p)
|
|
||||||
{
|
|
||||||
return static_cast<nsINodeList*>(p);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* nsDOMQS_h__ */
|
|
Loading…
Reference in New Issue
Block a user