зеркало из https://github.com/mozilla/gecko-dev.git
Merge m-c to birch.
This commit is contained in:
Коммит
89cab4da7e
|
@ -847,7 +847,7 @@ AccessibleWrap::accNavigate(
|
|||
VariantInit(pvarEndUpAt);
|
||||
|
||||
Accessible* navAccessible = nullptr;
|
||||
uint32_t xpRelation = 0;
|
||||
int32_t xpRelation = -1;
|
||||
|
||||
switch(navDir) {
|
||||
case NAVDIR_FIRSTCHILD:
|
||||
|
@ -929,7 +929,7 @@ AccessibleWrap::accNavigate(
|
|||
|
||||
pvarEndUpAt->vt = VT_EMPTY;
|
||||
|
||||
if (xpRelation) {
|
||||
if (xpRelation >= 0) {
|
||||
Relation rel = RelationByType(xpRelation);
|
||||
navAccessible = rel.Next();
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
../panda/sources.xml
|
|
@ -218,12 +218,11 @@ static bool Launch()
|
|||
// Hand off focus rights if the terminal has focus to the out-of-process
|
||||
// activation server (explorer.exe). Without this the metro interface
|
||||
// won't launch.
|
||||
if (GetForegroundWindow() == GetConsoleWindow()) {
|
||||
hr = CoAllowSetForegroundWindow(activateMgr, NULL);
|
||||
if (FAILED(hr)) {
|
||||
Fail(L"CoAllowSetForegroundWindow result %X", hr);
|
||||
return false;
|
||||
}
|
||||
hr = CoAllowSetForegroundWindow(activateMgr, NULL);
|
||||
if (FAILED(hr)) {
|
||||
// Log but don't fail. This has happened on vms with certain terminals run by
|
||||
// QA during mozmill testing.
|
||||
Log(L"Windows focus rights hand off failed (HRESULT=0x%X). Ignoring.", hr);
|
||||
}
|
||||
|
||||
Log(L"Harness process id: %d", GetCurrentProcessId());
|
||||
|
|
|
@ -441,6 +441,7 @@ gssapi/gssapi_generic.h
|
|||
gssapi/gssapi.h
|
||||
gssapi.h
|
||||
gtk/gtk.h
|
||||
gtk/gtkx.h
|
||||
gtk/gtkprinter.h
|
||||
gtk/gtkprintjob.h
|
||||
gtk/gtkprintunixdialog.h
|
||||
|
|
|
@ -425,11 +425,11 @@ private:
|
|||
};
|
||||
|
||||
#define NS_ELEMENT_INTERFACE_TABLE_TO_MAP_SEGUE \
|
||||
rv = FragmentOrElement::QueryInterface(aIID, aInstancePtr); \
|
||||
if (NS_SUCCEEDED(rv)) \
|
||||
return rv; \
|
||||
\
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
rv = FragmentOrElement::QueryInterface(aIID, aInstancePtr); \
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
|
||||
#define NS_ELEMENT_INTERFACE_MAP_END \
|
||||
{ \
|
||||
|
|
|
@ -1797,128 +1797,6 @@ private:
|
|||
nsCOMPtr<nsINode> mNode;
|
||||
};
|
||||
|
||||
extern const nsIID kThisPtrOffsetsSID;
|
||||
|
||||
// _implClass is the class to use to cast to nsISupports
|
||||
#define NS_OFFSET_AND_INTERFACE_TABLE_BEGIN_AMBIGUOUS(_class, _implClass) \
|
||||
static const QITableEntry offsetAndQITable[] = { \
|
||||
NS_INTERFACE_TABLE_ENTRY_AMBIGUOUS(_class, nsISupports, _implClass)
|
||||
|
||||
#define NS_OFFSET_AND_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_BEGIN_AMBIGUOUS(_class, _class)
|
||||
|
||||
#define NS_OFFSET_AND_INTERFACE_TABLE_END \
|
||||
{ nullptr, 0 } }; \
|
||||
if (aIID.Equals(kThisPtrOffsetsSID)) { \
|
||||
*aInstancePtr = \
|
||||
const_cast<void*>(static_cast<const void*>(&offsetAndQITable)); \
|
||||
return NS_OK; \
|
||||
}
|
||||
|
||||
#define NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE \
|
||||
rv = NS_TableDrivenQI(this, offsetAndQITable, aIID, aInstancePtr); \
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
|
||||
// nsNodeSH::PreCreate() depends on the identity pointer being the same as
|
||||
// nsINode, so if you change the nsISupports line below, make sure
|
||||
// nsNodeSH::PreCreate() still does the right thing!
|
||||
#define NS_NODE_OFFSET_AND_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_BEGIN_AMBIGUOUS(_class, nsINode) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, nsINode)
|
||||
|
||||
#define NS_NODE_INTERFACE_TABLE1(_class, _i1) \
|
||||
NS_NODE_OFFSET_AND_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
|
||||
#define NS_NODE_INTERFACE_TABLE2(_class, _i1, _i2) \
|
||||
NS_NODE_OFFSET_AND_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
|
||||
#define NS_NODE_INTERFACE_TABLE3(_class, _i1, _i2, _i3) \
|
||||
NS_NODE_OFFSET_AND_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i3) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
|
||||
#define NS_NODE_INTERFACE_TABLE4(_class, _i1, _i2, _i3, _i4) \
|
||||
NS_NODE_OFFSET_AND_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i3) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i4) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
|
||||
#define NS_NODE_INTERFACE_TABLE5(_class, _i1, _i2, _i3, _i4, _i5) \
|
||||
NS_NODE_OFFSET_AND_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i3) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i4) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i5) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
|
||||
#define NS_NODE_INTERFACE_TABLE6(_class, _i1, _i2, _i3, _i4, _i5, _i6) \
|
||||
NS_NODE_OFFSET_AND_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i3) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i4) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i5) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i6) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
|
||||
#define NS_NODE_INTERFACE_TABLE7(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7) \
|
||||
NS_NODE_OFFSET_AND_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i3) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i4) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i5) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i6) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i7) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
|
||||
#define NS_NODE_INTERFACE_TABLE8(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, \
|
||||
_i8) \
|
||||
NS_NODE_OFFSET_AND_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i3) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i4) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i5) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i6) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i7) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i8) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
|
||||
#define NS_NODE_INTERFACE_TABLE9(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, \
|
||||
_i8, _i9) \
|
||||
NS_NODE_OFFSET_AND_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i3) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i4) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i5) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i6) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i7) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i8) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i9) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
|
||||
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(nsINode, NS_INODE_IID)
|
||||
|
||||
#define NS_FORWARD_NSIDOMNODE_TO_NSINODE_HELPER(...) \
|
||||
|
|
|
@ -100,10 +100,9 @@ NS_IMPL_CYCLE_COLLECTION_CAN_SKIP_THIS_END
|
|||
// QueryInterface implementation for Attr
|
||||
NS_INTERFACE_TABLE_HEAD(Attr)
|
||||
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
|
||||
NS_NODE_INTERFACE_TABLE5(Attr, nsIDOMAttr, nsIAttribute, nsIDOMNode,
|
||||
nsIDOMEventTarget, EventTarget)
|
||||
NS_INTERFACE_MAP_ENTRIES_CYCLE_COLLECTION(Attr)
|
||||
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIAttribute)
|
||||
NS_INTERFACE_TABLE6(Attr, nsINode, nsIDOMAttr, nsIAttribute, nsIDOMNode,
|
||||
nsIDOMEventTarget, EventTarget)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE_CYCLE_COLLECTION(Attr)
|
||||
NS_INTERFACE_MAP_ENTRY_TEAROFF(nsISupportsWeakReference,
|
||||
new nsNodeSupportsWeakRefTearoff(this))
|
||||
NS_INTERFACE_MAP_ENTRY_TEAROFF(nsIDOMXPathNSResolver,
|
||||
|
|
|
@ -126,8 +126,6 @@
|
|||
using namespace mozilla;
|
||||
using namespace mozilla::dom;
|
||||
|
||||
NS_DEFINE_IID(kThisPtrOffsetsSID, NS_THISPTROFFSETS_SID);
|
||||
|
||||
int32_t nsIContent::sTabFocusModel = eTabFocus_any;
|
||||
bool nsIContent::sTabFocusModelAppliesToXUL = false;
|
||||
uint32_t nsMutationGuard::sMutationCount = 0;
|
||||
|
|
|
@ -25,10 +25,8 @@ DOMCI_DATA(DOMStringList, nsDOMStringList)
|
|||
NS_IMPL_ADDREF(nsDOMStringList)
|
||||
NS_IMPL_RELEASE(nsDOMStringList)
|
||||
NS_INTERFACE_TABLE_HEAD(nsDOMStringList)
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_BEGIN(nsDOMStringList)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsDOMStringList, nsIDOMDOMStringList)
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_INTERFACE_TABLE1(nsDOMStringList, nsIDOMDOMStringList)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(DOMStringList)
|
||||
NS_INTERFACE_MAP_END
|
||||
|
||||
|
|
|
@ -1236,10 +1236,8 @@ protected:
|
|||
NS_IMPL_ADDREF(nsDOMStyleSheetSetList)
|
||||
NS_IMPL_RELEASE(nsDOMStyleSheetSetList)
|
||||
NS_INTERFACE_TABLE_HEAD(nsDOMStyleSheetSetList)
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_BEGIN(nsDOMStyleSheetSetList)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsDOMStyleSheetSetList, nsIDOMDOMStringList)
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_INTERFACE_TABLE1(nsDOMStyleSheetSetList, nsIDOMDOMStringList)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(DOMStringList)
|
||||
NS_INTERFACE_MAP_END
|
||||
|
||||
|
@ -1524,8 +1522,12 @@ nsDocument::~nsDocument()
|
|||
|
||||
NS_INTERFACE_TABLE_HEAD(nsDocument)
|
||||
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
|
||||
NS_DOCUMENT_INTERFACE_TABLE_BEGIN(nsDocument)
|
||||
NS_INTERFACE_TABLE_BEGIN
|
||||
NS_INTERFACE_TABLE_ENTRY_AMBIGUOUS(nsDocument, nsISupports, nsINode)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsDocument, nsINode)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsDocument, nsIDocument)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsDocument, nsIDOMDocument)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsDocument, nsIDOMNode)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsDocument, nsIDOMDocumentXBL)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsDocument, nsIScriptObjectPrincipal)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsDocument, nsIDOMEventTarget)
|
||||
|
@ -1539,9 +1541,8 @@ NS_INTERFACE_TABLE_HEAD(nsDocument)
|
|||
NS_INTERFACE_TABLE_ENTRY(nsDocument, nsIInlineEventHandlers)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsDocument, nsIDocumentRegister)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsDocument, nsIObserver)
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_INTERFACE_MAP_ENTRIES_CYCLE_COLLECTION(nsDocument)
|
||||
NS_INTERFACE_TABLE_END
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE_CYCLE_COLLECTION(nsDocument)
|
||||
NS_INTERFACE_MAP_ENTRY_TEAROFF(nsIDOMXPathNSResolver,
|
||||
new nsNode3Tearoff(this))
|
||||
NS_INTERFACE_MAP_ENTRY_TEAROFF(nsIDOMNodeSelector,
|
||||
|
|
|
@ -1466,10 +1466,4 @@ private:
|
|||
nsDocument* mDoc;
|
||||
};
|
||||
|
||||
#define NS_DOCUMENT_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_NODE_OFFSET_AND_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY_AMBIGUOUS(_class, nsIDOMDocument, nsDocument) \
|
||||
NS_INTERFACE_TABLE_ENTRY_AMBIGUOUS(_class, nsIDOMEventTarget, nsDocument) \
|
||||
NS_INTERFACE_TABLE_ENTRY_AMBIGUOUS(_class, nsIDOMNode, nsDocument)
|
||||
|
||||
#endif /* nsDocument_h___ */
|
||||
|
|
|
@ -621,7 +621,6 @@ CanvasRenderingContext2D::Reset()
|
|||
|
||||
// Since the target changes the backing texture will change, and this will
|
||||
// no longer be valid.
|
||||
mThebesSurface = nullptr;
|
||||
mIsEntireFrameInvalid = false;
|
||||
mPredictManyRedrawCalls = false;
|
||||
|
||||
|
@ -713,11 +712,6 @@ CanvasRenderingContext2D::Redraw()
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
if (!mThebesSurface)
|
||||
mThebesSurface =
|
||||
gfxPlatform::GetPlatform()->GetThebesSurfaceForDrawTarget(mTarget);
|
||||
mThebesSurface->MarkDirty();
|
||||
|
||||
nsSVGEffects::InvalidateDirectRenderingObservers(mCanvasElement);
|
||||
|
||||
mCanvasElement->InvalidateCanvasContent(nullptr);
|
||||
|
@ -745,11 +739,6 @@ CanvasRenderingContext2D::Redraw(const mgfx::Rect &r)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!mThebesSurface)
|
||||
mThebesSurface =
|
||||
gfxPlatform::GetPlatform()->GetThebesSurfaceForDrawTarget(mTarget);
|
||||
mThebesSurface->MarkDirty();
|
||||
|
||||
nsSVGEffects::InvalidateDirectRenderingObservers(mCanvasElement);
|
||||
|
||||
mCanvasElement->InvalidateCanvasContent(&r);
|
||||
|
@ -891,7 +880,6 @@ CanvasRenderingContext2D::InitializeWithSurface(nsIDocShell *shell,
|
|||
int32_t height)
|
||||
{
|
||||
mDocShell = shell;
|
||||
mThebesSurface = surface;
|
||||
|
||||
SetDimensions(width, height);
|
||||
mTarget = gfxPlatform::GetPlatform()->
|
||||
|
@ -3212,18 +3200,39 @@ CanvasRenderingContext2D::DrawWindow(nsIDOMWindow* window, double x,
|
|||
// save and restore it
|
||||
Matrix matrix = mTarget->GetTransform();
|
||||
nsRefPtr<gfxContext> thebes;
|
||||
nsRefPtr<gfxASurface> drawSurf;
|
||||
if (gfxPlatform::GetPlatform()->SupportsAzureContentForDrawTarget(mTarget)) {
|
||||
thebes = new gfxContext(mTarget);
|
||||
thebes->SetMatrix(gfxMatrix(matrix._11, matrix._12, matrix._21,
|
||||
matrix._22, matrix._31, matrix._32));
|
||||
} else {
|
||||
nsRefPtr<gfxASurface> drawSurf;
|
||||
GetThebesSurface(getter_AddRefs(drawSurf));
|
||||
drawSurf =
|
||||
gfxPlatform::GetPlatform()->CreateOffscreenSurface(gfxIntSize(ceil(w), ceil(h)),
|
||||
gfxASurface::CONTENT_COLOR_ALPHA);
|
||||
|
||||
drawSurf->SetDeviceOffset(gfxPoint(-floor(x), -floor(y)));
|
||||
thebes = new gfxContext(drawSurf);
|
||||
thebes->Translate(gfxPoint(floor(x), floor(y)));
|
||||
}
|
||||
thebes->SetMatrix(gfxMatrix(matrix._11, matrix._12, matrix._21,
|
||||
matrix._22, matrix._31, matrix._32));
|
||||
|
||||
nsCOMPtr<nsIPresShell> shell = presContext->PresShell();
|
||||
unused << shell->RenderDocument(r, renderDocFlags, backgroundColor, thebes);
|
||||
mTarget->SetTransform(matrix);
|
||||
if (drawSurf) {
|
||||
gfxIntSize size = drawSurf->GetSize();
|
||||
|
||||
drawSurf->SetDeviceOffset(gfxPoint(0, 0));
|
||||
nsRefPtr<gfxImageSurface> img = drawSurf->GetAsReadableARGB32ImageSurface();
|
||||
RefPtr<SourceSurface> data =
|
||||
mTarget->CreateSourceSurfaceFromData(img->Data(),
|
||||
IntSize(size.width, size.height),
|
||||
img->Stride(),
|
||||
FORMAT_B8G8R8A8);
|
||||
mgfx::Rect rect(0, 0, w, h);
|
||||
mTarget->DrawSurface(data, rect, rect);
|
||||
mTarget->Flush();
|
||||
} else {
|
||||
mTarget->SetTransform(matrix);
|
||||
}
|
||||
|
||||
// note that x and y are coordinates in the document that
|
||||
// we're drawing; x and y are drawn to 0,0 in current user
|
||||
|
@ -3667,20 +3676,15 @@ NS_IMETHODIMP
|
|||
CanvasRenderingContext2D::GetThebesSurface(gfxASurface **surface)
|
||||
{
|
||||
EnsureTarget();
|
||||
if (!mThebesSurface) {
|
||||
mThebesSurface =
|
||||
|
||||
nsRefPtr<gfxASurface> thebesSurface =
|
||||
gfxPlatform::GetPlatform()->GetThebesSurfaceForDrawTarget(mTarget);
|
||||
|
||||
if (!mThebesSurface) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
} else {
|
||||
// Normally GetThebesSurfaceForDrawTarget will handle the flush, when
|
||||
// we're returning a cached ThebesSurface we need to flush here.
|
||||
mTarget->Flush();
|
||||
if (!thebesSurface) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
*surface = mThebesSurface;
|
||||
*surface = thebesSurface;
|
||||
NS_ADDREF(*surface);
|
||||
|
||||
return NS_OK;
|
||||
|
|
|
@ -45,13 +45,13 @@ NS_IMPL_RELEASE_INHERITED(HTMLAnchorElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLAnchorElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLAnchorElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE3(HTMLAnchorElement,
|
||||
nsIDOMHTMLAnchorElement,
|
||||
nsILink,
|
||||
Link)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLAnchorElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED3(HTMLAnchorElement,
|
||||
nsIDOMHTMLAnchorElement,
|
||||
nsILink,
|
||||
Link)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLAnchorElement)
|
||||
|
|
|
@ -29,13 +29,13 @@ NS_IMPL_RELEASE_INHERITED(HTMLAreaElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLAreaElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLAreaElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE3(HTMLAreaElement,
|
||||
nsIDOMHTMLAreaElement,
|
||||
nsILink,
|
||||
Link)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLAreaElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED3(HTMLAreaElement,
|
||||
nsIDOMHTMLAreaElement,
|
||||
nsILink,
|
||||
Link)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLAreaElement)
|
||||
|
|
|
@ -34,12 +34,12 @@ NS_IMPL_ADDREF_INHERITED(HTMLAudioElement, HTMLMediaElement)
|
|||
NS_IMPL_RELEASE_INHERITED(HTMLAudioElement, HTMLMediaElement)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLAudioElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE4(HTMLAudioElement, nsIDOMHTMLMediaElement,
|
||||
nsIDOMHTMLAudioElement, nsITimerCallback,
|
||||
nsIAudioChannelAgentCallback)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLAudioElement,
|
||||
HTMLMediaElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(HTMLMediaElement)
|
||||
NS_INTERFACE_TABLE_INHERITED4(HTMLAudioElement, nsIDOMHTMLMediaElement,
|
||||
nsIDOMHTMLAudioElement, nsITimerCallback,
|
||||
nsIAudioChannelAgentCallback)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLAudioElement)
|
||||
|
||||
|
|
|
@ -34,10 +34,10 @@ NS_IMPL_RELEASE_INHERITED(HTMLBRElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLBRElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLBRElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLBRElement, nsIDOMHTMLBRElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLBRElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLBRElement, nsIDOMHTMLBRElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLBRElement)
|
||||
|
|
|
@ -204,10 +204,10 @@ NS_IMPL_RELEASE_INHERITED(HTMLBodyElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLBodyElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLBodyElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLBodyElement, nsIDOMHTMLBodyElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLBodyElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLBodyElement, nsIDOMHTMLBodyElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLBodyElement)
|
||||
|
||||
|
|
|
@ -84,12 +84,12 @@ NS_IMPL_RELEASE_INHERITED(HTMLButtonElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLButtonElement
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLButtonElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE2(HTMLButtonElement,
|
||||
nsIDOMHTMLButtonElement,
|
||||
nsIConstraintValidation)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLButtonElement,
|
||||
nsGenericHTMLFormElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLFormElement)
|
||||
NS_INTERFACE_TABLE_INHERITED2(HTMLButtonElement,
|
||||
nsIDOMHTMLButtonElement,
|
||||
nsIConstraintValidation)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
// nsIConstraintValidation
|
||||
NS_IMPL_NSICONSTRAINTVALIDATION(HTMLButtonElement)
|
||||
|
|
|
@ -160,12 +160,12 @@ NS_IMPL_ADDREF_INHERITED(HTMLCanvasElement, Element)
|
|||
NS_IMPL_RELEASE_INHERITED(HTMLCanvasElement, Element)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLCanvasElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE2(HTMLCanvasElement,
|
||||
nsIDOMHTMLCanvasElement,
|
||||
nsICanvasElementExternal)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLCanvasElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED2(HTMLCanvasElement,
|
||||
nsIDOMHTMLCanvasElement,
|
||||
nsICanvasElementExternal)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLCanvasElement)
|
||||
|
||||
|
|
|
@ -25,11 +25,9 @@ HTMLDataElement::~HTMLDataElement()
|
|||
NS_IMPL_ADDREF_INHERITED(HTMLDataElement, Element)
|
||||
NS_IMPL_RELEASE_INHERITED(HTMLDataElement, Element)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLDataElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE0(HTMLDataElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLDataElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_INTERFACE_MAP_BEGIN(HTMLDataElement)
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLDataElement)
|
||||
|
||||
|
|
|
@ -28,11 +28,11 @@ NS_IMPL_ADDREF_INHERITED(HTMLDataListElement, Element)
|
|||
NS_IMPL_RELEASE_INHERITED(HTMLDataListElement, Element)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLDataListElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLDataListElement,
|
||||
nsIDOMHTMLDataListElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLDataListElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLDataListElement,
|
||||
nsIDOMHTMLDataListElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLDataListElement)
|
||||
|
|
|
@ -25,10 +25,10 @@ NS_IMPL_RELEASE_INHERITED(HTMLDivElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLDivElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLDivElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLDivElement, nsIDOMHTMLDivElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLDivElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLDivElement, nsIDOMHTMLDivElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLDivElement)
|
||||
|
||||
|
|
|
@ -55,11 +55,9 @@ HTMLElement::~HTMLElement()
|
|||
NS_IMPL_ADDREF_INHERITED(HTMLElement, Element)
|
||||
NS_IMPL_RELEASE_INHERITED(HTMLElement, Element)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE0(HTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_INTERFACE_MAP_BEGIN(HTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLElement)
|
||||
|
||||
|
|
|
@ -45,12 +45,12 @@ NS_IMPL_RELEASE_INHERITED(HTMLFieldSetElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLFieldSetElement
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLFieldSetElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE2(HTMLFieldSetElement,
|
||||
nsIDOMHTMLFieldSetElement,
|
||||
nsIConstraintValidation)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLFieldSetElement,
|
||||
nsGenericHTMLFormElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLFormElement)
|
||||
NS_INTERFACE_TABLE_INHERITED2(HTMLFieldSetElement,
|
||||
nsIDOMHTMLFieldSetElement,
|
||||
nsIConstraintValidation)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLFieldSetElement)
|
||||
|
||||
|
|
|
@ -32,10 +32,10 @@ NS_IMPL_RELEASE_INHERITED(HTMLFontElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLFontElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLFontElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLFontElement, nsIDOMHTMLFontElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLFontElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLFontElement, nsIDOMHTMLFontElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLFontElement)
|
||||
|
|
|
@ -32,10 +32,10 @@ NS_IMPL_RELEASE_INHERITED(HTMLFrameElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLFrameElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLFrameElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLFrameElement, nsIDOMHTMLFrameElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLFrameElement,
|
||||
nsGenericHTMLFrameElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLFrameElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLFrameElement, nsIDOMHTMLFrameElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLFrameElement)
|
||||
|
|
|
@ -28,11 +28,11 @@ NS_IMPL_RELEASE_INHERITED(HTMLFrameSetElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLFrameSetElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLFrameSetElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLFrameSetElement,
|
||||
nsIDOMHTMLFrameSetElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLFrameSetElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLFrameSetElement,
|
||||
nsIDOMHTMLFrameSetElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLFrameSetElement)
|
||||
|
|
|
@ -26,11 +26,11 @@ NS_IMPL_RELEASE_INHERITED(HTMLHRElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLHRElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLHRElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLHRElement,
|
||||
nsIDOMHTMLHRElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLHRElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLHRElement,
|
||||
nsIDOMHTMLHRElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLHRElement)
|
||||
|
|
|
@ -27,11 +27,11 @@ NS_IMPL_RELEASE_INHERITED(HTMLHeadingElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLHeadingElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLHeadingElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLHeadingElement,
|
||||
nsIDOMHTMLHeadingElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLHeadingElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLHeadingElement,
|
||||
nsIDOMHTMLHeadingElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLHeadingElement)
|
||||
|
|
|
@ -36,12 +36,12 @@ NS_IMPL_RELEASE_INHERITED(HTMLIFrameElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLIFrameElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLIFrameElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE2(HTMLIFrameElement,
|
||||
nsIDOMHTMLIFrameElement,
|
||||
nsIDOMGetSVGDocument)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLIFrameElement,
|
||||
nsGenericHTMLFrameElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLFrameElement)
|
||||
NS_INTERFACE_TABLE_INHERITED2(HTMLIFrameElement,
|
||||
nsIDOMHTMLIFrameElement,
|
||||
nsIDOMGetSVGDocument)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLIFrameElement)
|
||||
|
||||
|
|
|
@ -85,14 +85,14 @@ NS_IMPL_RELEASE_INHERITED(HTMLImageElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLImageElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLImageElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE4(HTMLImageElement,
|
||||
nsIDOMHTMLImageElement,
|
||||
nsIImageLoadingContent,
|
||||
imgIOnloadBlocker,
|
||||
imgINotificationObserver)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLImageElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED4(HTMLImageElement,
|
||||
nsIDOMHTMLImageElement,
|
||||
nsIImageLoadingContent,
|
||||
imgIOnloadBlocker,
|
||||
imgINotificationObserver)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLImageElement)
|
||||
|
|
|
@ -730,18 +730,18 @@ NS_IMPL_RELEASE_INHERITED(HTMLInputElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLInputElement
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLInputElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE8(HTMLInputElement,
|
||||
nsIDOMHTMLInputElement,
|
||||
nsITextControlElement,
|
||||
nsIPhonetic,
|
||||
imgINotificationObserver,
|
||||
nsIImageLoadingContent,
|
||||
imgIOnloadBlocker,
|
||||
nsIDOMNSEditableElement,
|
||||
nsIConstraintValidation)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLInputElement,
|
||||
nsGenericHTMLFormElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLFormElement)
|
||||
NS_INTERFACE_TABLE_INHERITED8(HTMLInputElement,
|
||||
nsIDOMHTMLInputElement,
|
||||
nsITextControlElement,
|
||||
nsIPhonetic,
|
||||
imgINotificationObserver,
|
||||
nsIImageLoadingContent,
|
||||
imgIOnloadBlocker,
|
||||
nsIDOMNSEditableElement,
|
||||
nsIConstraintValidation)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
// nsIConstraintValidation
|
||||
NS_IMPL_NSICONSTRAINTVALIDATION_EXCEPT_SETCUSTOMVALIDITY(HTMLInputElement)
|
||||
|
|
|
@ -27,10 +27,10 @@ NS_IMPL_RELEASE_INHERITED(HTMLLIElement, Element)
|
|||
|
||||
// QueryInterface implementation for nsHTMLLIElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLLIElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLLIElement, nsIDOMHTMLLIElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLLIElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLLIElement, nsIDOMHTMLLIElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLLIElement)
|
||||
|
||||
|
|
|
@ -36,11 +36,11 @@ NS_IMPL_RELEASE_INHERITED(HTMLLabelElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLLabelElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLLabelElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLLabelElement,
|
||||
nsIDOMHTMLLabelElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLLabelElement,
|
||||
nsGenericHTMLFormElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLFormElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLLabelElement,
|
||||
nsIDOMHTMLLabelElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
// nsIDOMHTMLLabelElement
|
||||
|
|
|
@ -26,10 +26,10 @@ NS_IMPL_RELEASE_INHERITED(HTMLLegendElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLLegendElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLLegendElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLLegendElement, nsIDOMHTMLLegendElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLLegendElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLLegendElement, nsIDOMHTMLLegendElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
// nsIDOMHTMLLegendElement
|
||||
|
|
|
@ -55,15 +55,15 @@ NS_IMPL_RELEASE_INHERITED(HTMLLinkElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLLinkElement
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLLinkElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE5(HTMLLinkElement,
|
||||
nsIDOMHTMLLinkElement,
|
||||
nsIDOMLinkStyle,
|
||||
nsILink,
|
||||
nsIStyleSheetLinkingElement,
|
||||
Link)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLLinkElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED5(HTMLLinkElement,
|
||||
nsIDOMHTMLLinkElement,
|
||||
nsIDOMLinkStyle,
|
||||
nsILink,
|
||||
nsIStyleSheetLinkingElement,
|
||||
Link)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLLinkElement)
|
||||
|
|
|
@ -32,10 +32,10 @@ NS_IMPL_RELEASE_INHERITED(HTMLMapElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLMapElement
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLMapElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLMapElement, nsIDOMHTMLMapElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLMapElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLMapElement, nsIDOMHTMLMapElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLMapElement)
|
||||
|
||||
|
|
|
@ -58,12 +58,12 @@ NS_IMPL_RELEASE_INHERITED(HTMLMenuElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLMenuElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLMenuElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE2(HTMLMenuElement,
|
||||
nsIDOMHTMLMenuElement,
|
||||
nsIHTMLMenu)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLMenuElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED2(HTMLMenuElement,
|
||||
nsIDOMHTMLMenuElement,
|
||||
nsIHTMLMenu)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLMenuElement)
|
||||
|
||||
|
|
|
@ -176,12 +176,11 @@ NS_IMPL_RELEASE_INHERITED(HTMLMenuItemElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLMenuItemElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLMenuItemElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE2(HTMLMenuItemElement,
|
||||
nsIDOMHTMLCommandElement,
|
||||
nsIDOMHTMLMenuItemElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLMenuItemElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLMenuItemElement,
|
||||
nsIDOMHTMLMenuItemElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
//NS_IMPL_ELEMENT_CLONE(HTMLMenuItemElement)
|
||||
nsresult
|
||||
|
|
|
@ -39,9 +39,6 @@ public:
|
|||
// nsIDOMHTMLElement
|
||||
NS_FORWARD_NSIDOMHTMLELEMENT_TO_GENERIC
|
||||
|
||||
// nsIDOMHTMLCommandElement
|
||||
NS_DECL_NSIDOMHTMLCOMMANDELEMENT
|
||||
|
||||
// nsIDOMHTMLMenuItemElement
|
||||
NS_DECL_NSIDOMHTMLMENUITEMELEMENT
|
||||
|
||||
|
|
|
@ -31,10 +31,10 @@ NS_IMPL_RELEASE_INHERITED(HTMLMetaElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLMetaElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLMetaElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLMetaElement, nsIDOMHTMLMetaElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLMetaElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLMetaElement, nsIDOMHTMLMetaElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLMetaElement)
|
||||
|
|
|
@ -31,11 +31,11 @@ NS_IMPL_RELEASE_INHERITED(HTMLMeterElement, Element)
|
|||
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLMeterElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLMeterElement,
|
||||
nsIDOMHTMLMeterElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLMeterElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLMeterElement,
|
||||
nsIDOMHTMLMeterElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLMeterElement)
|
||||
|
||||
|
|
|
@ -28,11 +28,11 @@ NS_IMPL_RELEASE_INHERITED(HTMLModElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLModElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLModElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLModElement,
|
||||
nsIDOMHTMLModElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLModElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLModElement,
|
||||
nsIDOMHTMLModElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLModElement)
|
||||
|
|
|
@ -80,23 +80,22 @@ NS_IMPL_ADDREF_INHERITED(HTMLObjectElement, Element)
|
|||
NS_IMPL_RELEASE_INHERITED(HTMLObjectElement, Element)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLObjectElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_BEGIN(HTMLObjectElement)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLObjectElement, nsIDOMHTMLObjectElement)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLObjectElement, imgINotificationObserver)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLObjectElement, nsIRequestObserver)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLObjectElement, nsIStreamListener)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLObjectElement, nsIFrameLoaderOwner)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLObjectElement, nsIObjectLoadingContent)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLObjectElement, nsIImageLoadingContent)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLObjectElement, imgIOnloadBlocker)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLObjectElement, nsIInterfaceRequestor)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLObjectElement, nsIChannelEventSink)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLObjectElement, nsIConstraintValidation)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLObjectElement, nsIDOMGetSVGDocument)
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLObjectElement,
|
||||
nsGenericHTMLFormElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLFormElement)
|
||||
NS_INTERFACE_TABLE_INHERITED12(HTMLObjectElement,
|
||||
nsIDOMHTMLObjectElement,
|
||||
imgINotificationObserver,
|
||||
nsIRequestObserver,
|
||||
nsIStreamListener,
|
||||
nsIFrameLoaderOwner,
|
||||
nsIObjectLoadingContent,
|
||||
nsIImageLoadingContent,
|
||||
imgIOnloadBlocker,
|
||||
nsIInterfaceRequestor,
|
||||
nsIChannelEventSink,
|
||||
nsIConstraintValidation,
|
||||
nsIDOMGetSVGDocument)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLObjectElement)
|
||||
|
||||
|
|
|
@ -46,11 +46,11 @@ NS_IMPL_RELEASE_INHERITED(HTMLOptGroupElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLOptGroupElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLOptGroupElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLOptGroupElement,
|
||||
nsIDOMHTMLOptGroupElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLOptGroupElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLOptGroupElement,
|
||||
nsIDOMHTMLOptGroupElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLOptGroupElement)
|
||||
|
|
|
@ -82,11 +82,11 @@ NS_IMPL_RELEASE_INHERITED(HTMLOptionElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLOptionElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLOptionElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLOptionElement,
|
||||
nsIDOMHTMLOptionElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLOptionElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLOptionElement,
|
||||
nsIDOMHTMLOptionElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLOptionElement)
|
||||
|
|
|
@ -54,13 +54,13 @@ NS_IMPL_ADDREF_INHERITED(HTMLOutputElement, Element)
|
|||
NS_IMPL_RELEASE_INHERITED(HTMLOutputElement, Element)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLOutputElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE3(HTMLOutputElement,
|
||||
nsIDOMHTMLOutputElement,
|
||||
nsIMutationObserver,
|
||||
nsIConstraintValidation)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLOutputElement,
|
||||
nsGenericHTMLFormElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLFormElement)
|
||||
NS_INTERFACE_TABLE_INHERITED3(HTMLOutputElement,
|
||||
nsIDOMHTMLOutputElement,
|
||||
nsIMutationObserver,
|
||||
nsIConstraintValidation)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLOutputElement)
|
||||
|
||||
|
|
|
@ -25,11 +25,11 @@ NS_IMPL_RELEASE_INHERITED(HTMLParagraphElement, Element)
|
|||
|
||||
// QueryInterface implementation for nsHTMLParagraphElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLParagraphElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLParagraphElement,
|
||||
nsIDOMHTMLParagraphElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLParagraphElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLParagraphElement,
|
||||
nsIDOMHTMLParagraphElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLParagraphElement)
|
||||
|
||||
|
|
|
@ -26,10 +26,10 @@ NS_IMPL_RELEASE_INHERITED(HTMLPreElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLPreElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLPreElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLPreElement, nsIDOMHTMLPreElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLPreElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLPreElement, nsIDOMHTMLPreElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLPreElement)
|
||||
|
||||
|
|
|
@ -34,11 +34,11 @@ NS_IMPL_RELEASE_INHERITED(HTMLProgressElement, Element)
|
|||
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLProgressElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLProgressElement,
|
||||
nsIDOMHTMLProgressElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLProgressElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLProgressElement,
|
||||
nsIDOMHTMLProgressElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLProgressElement)
|
||||
|
||||
|
|
|
@ -53,14 +53,14 @@ NS_IMPL_RELEASE_INHERITED(HTMLScriptElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLScriptElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLScriptElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE4(HTMLScriptElement,
|
||||
nsIDOMHTMLScriptElement,
|
||||
nsIScriptLoaderObserver,
|
||||
nsIScriptElement,
|
||||
nsIMutationObserver)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLScriptElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED4(HTMLScriptElement,
|
||||
nsIDOMHTMLScriptElement,
|
||||
nsIScriptLoaderObserver,
|
||||
nsIScriptElement,
|
||||
nsIMutationObserver)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
nsresult
|
||||
|
|
|
@ -148,15 +148,14 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_END
|
|||
NS_IMPL_ADDREF_INHERITED(HTMLSelectElement, Element)
|
||||
NS_IMPL_RELEASE_INHERITED(HTMLSelectElement, Element)
|
||||
|
||||
|
||||
// QueryInterface implementation for HTMLSelectElement
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLSelectElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE2(HTMLSelectElement,
|
||||
nsIDOMHTMLSelectElement,
|
||||
nsIConstraintValidation)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLSelectElement,
|
||||
nsGenericHTMLFormElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLFormElement)
|
||||
NS_INTERFACE_TABLE_INHERITED2(HTMLSelectElement,
|
||||
nsIDOMHTMLSelectElement,
|
||||
nsIConstraintValidation)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
// nsIDOMHTMLSelectElement
|
||||
|
|
|
@ -32,13 +32,9 @@ NS_IMPL_ADDREF_INHERITED(HTMLSharedElement, Element)
|
|||
NS_IMPL_RELEASE_INHERITED(HTMLSharedElement, Element)
|
||||
|
||||
// QueryInterface implementation for HTMLSharedElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLSharedElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_AMBIGUOUS_BEGIN(HTMLSharedElement,
|
||||
nsIDOMHTMLParamElement)
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE_AMBIGUOUS(HTMLSharedElement,
|
||||
nsGenericHTMLElement,
|
||||
nsIDOMHTMLParamElement)
|
||||
NS_INTERFACE_MAP_BEGIN(HTMLSharedElement)
|
||||
NS_HTML_CONTENT_INTERFACES_AMBIGUOUS(nsGenericHTMLElement,
|
||||
nsIDOMHTMLParamElement)
|
||||
NS_INTERFACE_MAP_ENTRY_IF_TAG(nsIDOMHTMLParamElement, param)
|
||||
NS_INTERFACE_MAP_ENTRY_IF_TAG(nsIDOMHTMLBaseElement, base)
|
||||
NS_INTERFACE_MAP_ENTRY_IF_TAG(nsIDOMHTMLDirectoryElement, dir)
|
||||
|
@ -46,7 +42,7 @@ NS_INTERFACE_TABLE_HEAD(HTMLSharedElement)
|
|||
NS_INTERFACE_MAP_ENTRY_IF_TAG(nsIDOMHTMLQuoteElement, blockquote)
|
||||
NS_INTERFACE_MAP_ENTRY_IF_TAG(nsIDOMHTMLHeadElement, head)
|
||||
NS_INTERFACE_MAP_ENTRY_IF_TAG(nsIDOMHTMLHtmlElement, html)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLSharedElement)
|
||||
|
|
|
@ -28,17 +28,13 @@ NS_IMPL_ADDREF_INHERITED(HTMLSharedListElement, Element)
|
|||
NS_IMPL_RELEASE_INHERITED(HTMLSharedListElement, Element)
|
||||
|
||||
// QueryInterface implementation for nsHTMLSharedListElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLSharedListElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_AMBIGUOUS_BEGIN(HTMLSharedListElement,
|
||||
nsIDOMHTMLOListElement)
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE_AMBIGUOUS(HTMLSharedListElement,
|
||||
nsGenericHTMLElement,
|
||||
nsIDOMHTMLOListElement)
|
||||
NS_INTERFACE_MAP_BEGIN(HTMLSharedListElement)
|
||||
NS_HTML_CONTENT_INTERFACES_AMBIGUOUS(nsGenericHTMLElement,
|
||||
nsIDOMHTMLOListElement)
|
||||
NS_INTERFACE_MAP_ENTRY_IF_TAG(nsIDOMHTMLOListElement, ol)
|
||||
NS_INTERFACE_MAP_ENTRY_IF_TAG(nsIDOMHTMLDListElement, dl)
|
||||
NS_INTERFACE_MAP_ENTRY_IF_TAG(nsIDOMHTMLUListElement, ul)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLSharedListElement)
|
||||
|
|
|
@ -92,25 +92,23 @@ NS_IMPL_ADDREF_INHERITED(HTMLSharedObjectElement, Element)
|
|||
NS_IMPL_RELEASE_INHERITED(HTMLSharedObjectElement, Element)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLSharedObjectElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_AMBIGUOUS_BEGIN(HTMLSharedObjectElement,
|
||||
nsIDOMHTMLAppletElement)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLSharedObjectElement, nsIRequestObserver)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLSharedObjectElement, nsIStreamListener)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLSharedObjectElement, nsIFrameLoaderOwner)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLSharedObjectElement, nsIObjectLoadingContent)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLSharedObjectElement, imgINotificationObserver)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLSharedObjectElement, nsIImageLoadingContent)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLSharedObjectElement, imgIOnloadBlocker)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLSharedObjectElement, nsIInterfaceRequestor)
|
||||
NS_INTERFACE_TABLE_ENTRY(HTMLSharedObjectElement, nsIChannelEventSink)
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE_AMBIGUOUS(HTMLSharedObjectElement,
|
||||
nsGenericHTMLElement,
|
||||
nsIDOMHTMLAppletElement)
|
||||
NS_HTML_CONTENT_INTERFACES_AMBIGUOUS(nsGenericHTMLElement,
|
||||
nsIDOMHTMLAppletElement)
|
||||
NS_INTERFACE_TABLE_INHERITED9(HTMLSharedObjectElement,
|
||||
nsIRequestObserver,
|
||||
nsIStreamListener,
|
||||
nsIFrameLoaderOwner,
|
||||
nsIObjectLoadingContent,
|
||||
imgINotificationObserver,
|
||||
nsIImageLoadingContent,
|
||||
imgIOnloadBlocker,
|
||||
nsIInterfaceRequestor,
|
||||
nsIChannelEventSink)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_INTERFACE_MAP_ENTRY_IF_TAG(nsIDOMHTMLAppletElement, applet)
|
||||
NS_INTERFACE_MAP_ENTRY_IF_TAG(nsIDOMHTMLEmbedElement, embed)
|
||||
NS_INTERFACE_MAP_ENTRY_IF_TAG(nsIDOMGetSVGDocument, embed)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLSharedObjectElement)
|
||||
|
||||
|
|
|
@ -30,10 +30,10 @@ NS_IMPL_RELEASE_INHERITED(HTMLSourceElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLSourceElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLSourceElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLSourceElement, nsIDOMHTMLSourceElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLSourceElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLSourceElement, nsIDOMHTMLSourceElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLSourceElement)
|
||||
|
|
|
@ -24,11 +24,9 @@ NS_IMPL_ADDREF_INHERITED(HTMLSpanElement, Element)
|
|||
NS_IMPL_RELEASE_INHERITED(HTMLSpanElement, Element)
|
||||
|
||||
// QueryInterface implementation for HTMLSpanElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLSpanElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE0(HTMLSpanElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLSpanElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_INTERFACE_MAP_BEGIN(HTMLSpanElement)
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLSpanElement)
|
||||
|
|
|
@ -47,14 +47,14 @@ NS_IMPL_RELEASE_INHERITED(HTMLStyleElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLStyleElement
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLStyleElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE4(HTMLStyleElement,
|
||||
nsIDOMHTMLStyleElement,
|
||||
nsIDOMLinkStyle,
|
||||
nsIStyleSheetLinkingElement,
|
||||
nsIMutationObserver)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLStyleElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED4(HTMLStyleElement,
|
||||
nsIDOMHTMLStyleElement,
|
||||
nsIDOMLinkStyle,
|
||||
nsIStyleSheetLinkingElement,
|
||||
nsIMutationObserver)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLStyleElement)
|
||||
|
||||
|
|
|
@ -31,11 +31,11 @@ NS_IMPL_RELEASE_INHERITED(HTMLTableCaptionElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLTableCaptionElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLTableCaptionElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLTableCaptionElement,
|
||||
nsIDOMHTMLTableCaptionElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLTableCaptionElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLTableCaptionElement,
|
||||
nsIDOMHTMLTableCaptionElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLTableCaptionElement)
|
||||
|
||||
|
|
|
@ -35,11 +35,11 @@ NS_IMPL_RELEASE_INHERITED(HTMLTableCellElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLTableCellElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLTableCellElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLTableCellElement,
|
||||
nsIDOMHTMLTableCellElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLTableCellElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLTableCellElement,
|
||||
nsIDOMHTMLTableCellElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLTableCellElement)
|
||||
|
|
|
@ -35,11 +35,11 @@ NS_IMPL_RELEASE_INHERITED(HTMLTableColElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLTableColElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLTableColElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLTableColElement,
|
||||
nsIDOMHTMLTableColElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLTableColElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLTableColElement,
|
||||
nsIDOMHTMLTableColElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLTableColElement)
|
||||
|
||||
|
|
|
@ -332,10 +332,10 @@ NS_IMPL_RELEASE_INHERITED(HTMLTableElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLTableElement
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLTableElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLTableElement, nsIDOMHTMLTableElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLTableElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLTableElement, nsIDOMHTMLTableElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLTableElement)
|
||||
|
|
|
@ -36,11 +36,11 @@ NS_IMPL_RELEASE_INHERITED(HTMLTableRowElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLTableRowElement
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLTableRowElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLTableRowElement,
|
||||
nsIDOMHTMLTableRowElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLTableRowElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLTableRowElement,
|
||||
nsIDOMHTMLTableRowElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLTableRowElement)
|
||||
|
|
|
@ -36,11 +36,11 @@ NS_IMPL_RELEASE_INHERITED(HTMLTableSectionElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLTableSectionElement
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLTableSectionElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLTableSectionElement,
|
||||
nsIDOMHTMLTableSectionElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLTableSectionElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLTableSectionElement,
|
||||
nsIDOMHTMLTableSectionElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLTableSectionElement)
|
||||
|
|
|
@ -71,11 +71,9 @@ NS_IMPL_CYCLE_COLLECTION_INHERITED_1(HTMLTemplateElement,
|
|||
mContent)
|
||||
|
||||
// QueryInterface implementation for HTMLTemplateElement
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLTemplateElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE0(HTMLTemplateElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLTemplateElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(HTMLTemplateElement)
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE_WITH_INIT(HTMLTemplateElement)
|
||||
|
||||
|
|
|
@ -87,15 +87,15 @@ NS_IMPL_RELEASE_INHERITED(HTMLTextAreaElement, Element)
|
|||
|
||||
// QueryInterface implementation for HTMLTextAreaElement
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLTextAreaElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE5(HTMLTextAreaElement,
|
||||
nsIDOMHTMLTextAreaElement,
|
||||
nsITextControlElement,
|
||||
nsIDOMNSEditableElement,
|
||||
nsIMutationObserver,
|
||||
nsIConstraintValidation)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLTextAreaElement,
|
||||
nsGenericHTMLFormElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLFormElement)
|
||||
NS_INTERFACE_TABLE_INHERITED5(HTMLTextAreaElement,
|
||||
nsIDOMHTMLTextAreaElement,
|
||||
nsITextControlElement,
|
||||
nsIDOMNSEditableElement,
|
||||
nsIMutationObserver,
|
||||
nsIConstraintValidation)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
// nsIDOMHTMLTextAreaElement
|
||||
|
|
|
@ -28,11 +28,9 @@ HTMLTimeElement::~HTMLTimeElement()
|
|||
NS_IMPL_ADDREF_INHERITED(HTMLTimeElement, Element)
|
||||
NS_IMPL_RELEASE_INHERITED(HTMLTimeElement, Element)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLTimeElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE0(HTMLTimeElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLTimeElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_INTERFACE_MAP_BEGIN(HTMLTimeElement)
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLTimeElement)
|
||||
|
||||
|
|
|
@ -40,12 +40,12 @@ namespace dom {
|
|||
|
||||
// QueryInterface implementation for HTMLTitleElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLTitleElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE2(HTMLTitleElement,
|
||||
nsIDOMHTMLTitleElement,
|
||||
nsIMutationObserver)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLTitleElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED2(HTMLTitleElement,
|
||||
nsIDOMHTMLTitleElement,
|
||||
nsIMutationObserver)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLTitleElement)
|
||||
|
|
|
@ -36,11 +36,11 @@ HTMLUnknownElement::WrapNode(JSContext *aCx, JS::Handle<JSObject*> aScope)
|
|||
|
||||
// QueryInterface implementation for HTMLUnknownElement
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLUnknownElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE1(HTMLUnknownElement,
|
||||
nsIDOMHTMLUnknownElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLUnknownElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLUnknownElement,
|
||||
nsIDOMHTMLUnknownElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLUnknownElement)
|
||||
|
||||
|
|
|
@ -43,10 +43,10 @@ NS_IMPL_ADDREF_INHERITED(HTMLVideoElement, HTMLMediaElement)
|
|||
NS_IMPL_RELEASE_INHERITED(HTMLVideoElement, HTMLMediaElement)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD(HTMLVideoElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE2(HTMLVideoElement, nsIDOMHTMLMediaElement, nsIDOMHTMLVideoElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(HTMLVideoElement,
|
||||
HTMLMediaElement)
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
NS_HTML_CONTENT_INTERFACES(HTMLMediaElement)
|
||||
NS_INTERFACE_TABLE_INHERITED2(HTMLVideoElement, nsIDOMHTMLMediaElement, nsIDOMHTMLVideoElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_ELEMENT_CLONE(HTMLVideoElement)
|
||||
|
||||
|
|
|
@ -1440,37 +1440,20 @@ protected:
|
|||
* QueryInterface() implementation helper macros
|
||||
*/
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_TABLE_AMBIGUOUS_BEGIN(_class, _base) \
|
||||
NS_NODE_OFFSET_AND_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY_AMBIGUOUS(_class, nsIDOMNode, _base) \
|
||||
NS_INTERFACE_TABLE_ENTRY_AMBIGUOUS(_class, nsIDOMElement, _base) \
|
||||
NS_INTERFACE_TABLE_ENTRY_AMBIGUOUS(_class, nsIDOMHTMLElement, _base)
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_AMBIGUOUS_BEGIN(_class, nsIDOMHTMLElement)
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE_AMBIGUOUS(_class, _base, \
|
||||
_base_if) \
|
||||
rv = _base::QueryInterface(aIID, aInstancePtr); \
|
||||
if (NS_SUCCEEDED(rv)) \
|
||||
return rv; \
|
||||
#define NS_HTML_CONTENT_INTERFACES_AMBIGUOUS(_base, _base_if) \
|
||||
{ \
|
||||
nsresult html_rv = _base::QueryInterface(aIID, aInstancePtr); \
|
||||
if (NS_SUCCEEDED(html_rv)) \
|
||||
return html_rv; \
|
||||
\
|
||||
rv = DOMQueryInterface(static_cast<_base_if *>(this), aIID, aInstancePtr); \
|
||||
if (NS_SUCCEEDED(rv)) \
|
||||
return rv; \
|
||||
\
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
html_rv = DOMQueryInterface(static_cast<_base_if *>(this), aIID, \
|
||||
aInstancePtr); \
|
||||
if (NS_SUCCEEDED(html_rv)) \
|
||||
return html_rv; \
|
||||
}
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(_class, _base) \
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE_AMBIGUOUS(_class, _base, \
|
||||
nsIDOMHTMLElement)
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_MAP_END \
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_TABLE_TAIL_CLASSINFO(_class) \
|
||||
NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(_class) \
|
||||
NS_HTML_CONTENT_INTERFACE_MAP_END
|
||||
#define NS_HTML_CONTENT_INTERFACES(_base) \
|
||||
NS_HTML_CONTENT_INTERFACES_AMBIGUOUS(_base, nsIDOMHTMLElement)
|
||||
|
||||
#define NS_INTERFACE_MAP_ENTRY_IF_TAG(_interface, _tag) \
|
||||
NS_INTERFACE_MAP_ENTRY_CONDITIONAL(_interface, \
|
||||
|
@ -1487,110 +1470,6 @@ protected:
|
|||
} \
|
||||
} else
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_TABLE0(_class) \
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_TABLE1(_class, _i1) \
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_TABLE2(_class, _i1, _i2) \
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_TABLE3(_class, _i1, _i2, _i3) \
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i3) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_TABLE4(_class, _i1, _i2, _i3, _i4) \
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i3) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i4) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_TABLE5(_class, _i1, _i2, _i3, _i4, _i5) \
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i3) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i4) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i5) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_TABLE6(_class, _i1, _i2, _i3, _i4, _i5, \
|
||||
_i6) \
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i3) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i4) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i5) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i6) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_TABLE7(_class, _i1, _i2, _i3, _i4, _i5, \
|
||||
_i6, _i7) \
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i3) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i4) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i5) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i6) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i7) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_TABLE8(_class, _i1, _i2, _i3, _i4, _i5, \
|
||||
_i6, _i7, _i8) \
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i3) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i4) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i5) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i6) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i7) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i8) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_TABLE9(_class, _i1, _i2, _i3, _i4, _i5, \
|
||||
_i6, _i7, _i8, _i9) \
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i3) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i4) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i5) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i6) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i7) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i8) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i9) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
|
||||
#define NS_HTML_CONTENT_INTERFACE_TABLE10(_class, _i1, _i2, _i3, _i4, _i5, \
|
||||
_i6, _i7, _i8, _i9, _i10) \
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_BEGIN(_class) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i1) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i2) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i3) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i4) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i5) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i6) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i7) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i8) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i9) \
|
||||
NS_INTERFACE_TABLE_ENTRY(_class, _i10) \
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
|
||||
#define NS_FORWARD_NSIDOMHTMLELEMENT_TO_GENERIC \
|
||||
NS_IMETHOD GetId(nsAString& aId) MOZ_FINAL { \
|
||||
mozilla::dom::Element::GetId(aId); \
|
||||
|
|
|
@ -301,14 +301,15 @@ DOMCI_NODE_DATA(HTMLFormElement, nsHTMLFormElement)
|
|||
|
||||
// QueryInterface implementation for nsHTMLFormElement
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(nsHTMLFormElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE4(nsHTMLFormElement,
|
||||
nsIDOMHTMLFormElement,
|
||||
nsIForm,
|
||||
nsIWebProgressListener,
|
||||
nsIRadioGroupContainer)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(nsHTMLFormElement,
|
||||
nsGenericHTMLElement)
|
||||
NS_HTML_CONTENT_INTERFACE_TABLE_TAIL_CLASSINFO(HTMLFormElement)
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED4(nsHTMLFormElement,
|
||||
nsIDOMHTMLFormElement,
|
||||
nsIForm,
|
||||
nsIWebProgressListener,
|
||||
nsIRadioGroupContainer)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(HTMLFormElement)
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
// nsIDOMHTMLFormElement
|
||||
|
|
|
@ -145,13 +145,9 @@ NS_IMPL_ADDREF_INHERITED(ImageDocument, MediaDocument)
|
|||
NS_IMPL_RELEASE_INHERITED(ImageDocument, MediaDocument)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(ImageDocument)
|
||||
NS_HTML_DOCUMENT_INTERFACE_TABLE_BEGIN(ImageDocument)
|
||||
NS_INTERFACE_TABLE_ENTRY(ImageDocument, nsIImageDocument)
|
||||
NS_INTERFACE_TABLE_ENTRY(ImageDocument, imgINotificationObserver)
|
||||
NS_INTERFACE_TABLE_ENTRY(ImageDocument, nsIDOMEventListener)
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_INTERFACE_MAP_END_INHERITING(MediaDocument)
|
||||
NS_INTERFACE_TABLE_INHERITED3(ImageDocument, nsIImageDocument,
|
||||
imgINotificationObserver, nsIDOMEventListener)
|
||||
NS_INTERFACE_TABLE_TAIL_INHERITING(MediaDocument)
|
||||
|
||||
|
||||
nsresult
|
||||
|
|
|
@ -219,12 +219,9 @@ NS_IMPL_RELEASE_INHERITED(nsHTMLDocument, nsDocument)
|
|||
|
||||
// QueryInterface implementation for nsHTMLDocument
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(nsHTMLDocument)
|
||||
NS_DOCUMENT_INTERFACE_TABLE_BEGIN(nsHTMLDocument)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsHTMLDocument, nsIHTMLDocument)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsHTMLDocument, nsIDOMHTMLDocument)
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_INTERFACE_MAP_END_INHERITING(nsDocument)
|
||||
NS_INTERFACE_TABLE_INHERITED2(nsHTMLDocument, nsIHTMLDocument,
|
||||
nsIDOMHTMLDocument)
|
||||
NS_INTERFACE_TABLE_TAIL_INHERITING(nsDocument)
|
||||
|
||||
JSObject*
|
||||
nsHTMLDocument::WrapNode(JSContext* aCx, JS::Handle<JSObject*> aScope)
|
||||
|
|
|
@ -30,12 +30,11 @@ using namespace mozilla::dom;
|
|||
// nsISupports methods:
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD(nsMathMLElement)
|
||||
NS_NODE_OFFSET_AND_INTERFACE_TABLE_BEGIN(nsMathMLElement)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsMathMLElement, nsIDOMNode)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsMathMLElement, nsIDOMElement)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsMathMLElement, nsILink)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsMathMLElement, Link)
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
NS_INTERFACE_TABLE_INHERITED4(nsMathMLElement,
|
||||
nsIDOMNode,
|
||||
nsIDOMElement,
|
||||
nsILink,
|
||||
Link)
|
||||
NS_ELEMENT_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
|
|
@ -30,15 +30,10 @@ nsSVGElement::StringInfo SVGFEImageElement::sStringInfo[2] =
|
|||
//----------------------------------------------------------------------
|
||||
// nsISupports methods
|
||||
|
||||
NS_IMPL_ADDREF_INHERITED(SVGFEImageElement,SVGFEImageElementBase)
|
||||
NS_IMPL_RELEASE_INHERITED(SVGFEImageElement,SVGFEImageElementBase)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD(SVGFEImageElement)
|
||||
NS_NODE_INTERFACE_TABLE6(SVGFEImageElement, nsIDOMNode, nsIDOMElement,
|
||||
nsIDOMSVGElement,
|
||||
imgINotificationObserver, nsIImageLoadingContent,
|
||||
imgIOnloadBlocker)
|
||||
NS_INTERFACE_MAP_END_INHERITING(SVGFEImageElementBase)
|
||||
NS_IMPL_ISUPPORTS_INHERITED6(SVGFEImageElement, SVGFEImageElementBase,
|
||||
nsIDOMNode, nsIDOMElement, nsIDOMSVGElement,
|
||||
imgINotificationObserver, nsIImageLoadingContent,
|
||||
imgIOnloadBlocker)
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Implementation
|
||||
|
|
|
@ -46,10 +46,10 @@ NS_IMPL_ADDREF_INHERITED(SVGMPathElement,SVGMPathElementBase)
|
|||
NS_IMPL_RELEASE_INHERITED(SVGMPathElement,SVGMPathElementBase)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(SVGMPathElement)
|
||||
NS_NODE_INTERFACE_TABLE4(SVGMPathElement, nsIDOMNode, nsIDOMElement,
|
||||
nsIDOMSVGElement,
|
||||
nsIMutationObserver)
|
||||
NS_INTERFACE_MAP_END_INHERITING(SVGMPathElementBase)
|
||||
NS_INTERFACE_TABLE_INHERITED4(SVGMPathElement, nsIDOMNode, nsIDOMElement,
|
||||
nsIDOMSVGElement,
|
||||
nsIMutationObserver)
|
||||
NS_INTERFACE_TABLE_TAIL_INHERITING(SVGMPathElementBase)
|
||||
|
||||
// Constructor
|
||||
#ifdef _MSC_VER
|
||||
|
|
|
@ -26,11 +26,10 @@ NS_IMPL_ADDREF_INHERITED(SVGStyleElement, SVGStyleElementBase)
|
|||
NS_IMPL_RELEASE_INHERITED(SVGStyleElement, SVGStyleElementBase)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(SVGStyleElement)
|
||||
NS_NODE_INTERFACE_TABLE6(SVGStyleElement, nsIDOMNode, nsIDOMElement,
|
||||
nsIDOMSVGElement,
|
||||
nsIDOMLinkStyle, nsIStyleSheetLinkingElement,
|
||||
nsIMutationObserver)
|
||||
NS_INTERFACE_MAP_END_INHERITING(SVGStyleElementBase)
|
||||
NS_INTERFACE_TABLE_INHERITED3(SVGStyleElement, nsIDOMLinkStyle,
|
||||
nsIStyleSheetLinkingElement,
|
||||
nsIMutationObserver)
|
||||
NS_INTERFACE_TABLE_TAIL_INHERITING(SVGStyleElementBase)
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(SVGStyleElement,
|
||||
SVGStyleElementBase)
|
||||
|
|
|
@ -32,9 +32,7 @@ NS_IMPL_CYCLE_COLLECTION_INHERITED_1(SVGSwitchElement, SVGSwitchElementBase,
|
|||
NS_IMPL_ADDREF_INHERITED(SVGSwitchElement,SVGSwitchElementBase)
|
||||
NS_IMPL_RELEASE_INHERITED(SVGSwitchElement,SVGSwitchElementBase)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(SVGSwitchElement)
|
||||
NS_NODE_INTERFACE_TABLE3(SVGSwitchElement, nsIDOMNode, nsIDOMElement,
|
||||
nsIDOMSVGElement)
|
||||
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(SVGSwitchElement)
|
||||
NS_INTERFACE_MAP_END_INHERITING(SVGSwitchElementBase)
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
|
|
@ -62,10 +62,8 @@ NS_IMPL_ADDREF_INHERITED(SVGUseElement,SVGUseElementBase)
|
|||
NS_IMPL_RELEASE_INHERITED(SVGUseElement,SVGUseElementBase)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(SVGUseElement)
|
||||
NS_NODE_INTERFACE_TABLE4(SVGUseElement, nsIDOMNode, nsIDOMElement,
|
||||
nsIDOMSVGElement,
|
||||
nsIMutationObserver)
|
||||
NS_INTERFACE_MAP_END_INHERITING(SVGUseElementBase)
|
||||
NS_INTERFACE_TABLE_INHERITED1(SVGUseElement, nsIMutationObserver)
|
||||
NS_INTERFACE_TABLE_TAIL_INHERITING(SVGUseElementBase)
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Implementation
|
||||
|
|
|
@ -21,10 +21,7 @@ DOMCI_NODE_DATA(Element, nsXMLElement)
|
|||
|
||||
// QueryInterface implementation for nsXMLElement
|
||||
NS_INTERFACE_TABLE_HEAD(nsXMLElement)
|
||||
NS_NODE_OFFSET_AND_INTERFACE_TABLE_BEGIN(nsXMLElement)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsXMLElement, nsIDOMNode)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsXMLElement, nsIDOMElement)
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
NS_INTERFACE_TABLE_INHERITED2(nsXMLElement, nsIDOMNode, nsIDOMElement)
|
||||
NS_ELEMENT_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(Element)
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
|
|
@ -234,17 +234,7 @@ XMLDocument::~XMLDocument()
|
|||
}
|
||||
|
||||
// QueryInterface implementation for XMLDocument
|
||||
NS_INTERFACE_TABLE_HEAD(XMLDocument)
|
||||
NS_DOCUMENT_INTERFACE_TABLE_BEGIN(XMLDocument)
|
||||
NS_INTERFACE_TABLE_ENTRY(XMLDocument, nsIDOMXMLDocument)
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_INTERFACE_MAP_END_INHERITING(nsDocument)
|
||||
|
||||
|
||||
NS_IMPL_ADDREF_INHERITED(XMLDocument, nsDocument)
|
||||
NS_IMPL_RELEASE_INHERITED(XMLDocument, nsDocument)
|
||||
|
||||
NS_IMPL_ISUPPORTS_INHERITED1(XMLDocument, nsDocument, nsIDOMXMLDocument)
|
||||
|
||||
nsresult
|
||||
XMLDocument::Init()
|
||||
|
|
|
@ -340,11 +340,8 @@ NS_IMPL_ADDREF_INHERITED(nsXULElement, nsStyledElement)
|
|||
NS_IMPL_RELEASE_INHERITED(nsXULElement, nsStyledElement)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(nsXULElement)
|
||||
NS_NODE_OFFSET_AND_INTERFACE_TABLE_BEGIN(nsXULElement)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsXULElement, nsIDOMNode)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsXULElement, nsIDOMElement)
|
||||
NS_INTERFACE_TABLE_ENTRY(nsXULElement, nsIDOMXULElement)
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
NS_INTERFACE_TABLE_INHERITED3(nsXULElement, nsIDOMNode, nsIDOMElement,
|
||||
nsIDOMXULElement)
|
||||
NS_ELEMENT_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_INTERFACE_MAP_ENTRY_TEAROFF(nsIDOMElementCSSInlineStyle,
|
||||
new nsXULElementTearoff(this))
|
||||
|
|
|
@ -351,14 +351,10 @@ NS_IMPL_RELEASE_INHERITED(XULDocument, XMLDocument)
|
|||
|
||||
// QueryInterface implementation for XULDocument
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(XULDocument)
|
||||
NS_DOCUMENT_INTERFACE_TABLE_BEGIN(XULDocument)
|
||||
NS_INTERFACE_TABLE_ENTRY(XULDocument, nsIXULDocument)
|
||||
NS_INTERFACE_TABLE_ENTRY(XULDocument, nsIDOMXULDocument)
|
||||
NS_INTERFACE_TABLE_ENTRY(XULDocument, nsIStreamLoaderObserver)
|
||||
NS_INTERFACE_TABLE_ENTRY(XULDocument, nsICSSLoaderObserver)
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_END
|
||||
NS_OFFSET_AND_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_INTERFACE_MAP_END_INHERITING(XMLDocument)
|
||||
NS_INTERFACE_TABLE_INHERITED4(XULDocument, nsIXULDocument,
|
||||
nsIDOMXULDocument, nsIStreamLoaderObserver,
|
||||
nsICSSLoaderObserver)
|
||||
NS_INTERFACE_TABLE_TAIL_INHERITING(XMLDocument)
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
|
|
@ -16,7 +16,6 @@ XPIDL_SOURCES += [
|
|||
'nsIDOMHTMLByteRanges.idl',
|
||||
'nsIDOMHTMLCanvasElement.idl',
|
||||
'nsIDOMHTMLCollection.idl',
|
||||
'nsIDOMHTMLCommandElement.idl',
|
||||
'nsIDOMHTMLDListElement.idl',
|
||||
'nsIDOMHTMLDataListElement.idl',
|
||||
'nsIDOMHTMLDirectoryElement.idl',
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* 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/. */
|
||||
|
||||
#include "nsIDOMHTMLElement.idl"
|
||||
|
||||
/**
|
||||
* The nsIDOMHTMLCommandElement interface is the interface to a HTML
|
||||
* <command> element.
|
||||
*
|
||||
* For more information on this interface, please see
|
||||
* http://www.whatwg.org/specs/web-apps/current-work/#the-command-element
|
||||
*
|
||||
* @status UNDER_DEVELOPMENT
|
||||
*/
|
||||
|
||||
[scriptable, uuid(b580f607-6cd8-4bab-8ac5-698208b99e1b)]
|
||||
interface nsIDOMHTMLCommandElement : nsIDOMHTMLElement
|
||||
{
|
||||
attribute DOMString type;
|
||||
attribute DOMString label;
|
||||
attribute DOMString icon;
|
||||
attribute boolean disabled;
|
||||
attribute boolean defaultChecked;
|
||||
attribute boolean checked;
|
||||
attribute DOMString radiogroup;
|
||||
};
|
|
@ -3,16 +3,28 @@
|
|||
* 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/. */
|
||||
|
||||
#include "nsIDOMHTMLCommandElement.idl"
|
||||
#include "nsIDOMHTMLElement.idl"
|
||||
|
||||
/**
|
||||
* The nsIDOMHTMLMenuItemElement interface is the interface to a HTML
|
||||
* <menuitem> element.
|
||||
*
|
||||
* @status UNDER_DEVELOPMENT
|
||||
*/
|
||||
|
||||
[scriptable, uuid(7f449325-b250-478a-bd2c-d0986256763e)]
|
||||
interface nsIDOMHTMLMenuItemElement : nsIDOMHTMLCommandElement
|
||||
[scriptable, uuid(53180e95-90af-4c6e-9d16-34fa799f84d5)]
|
||||
interface nsIDOMHTMLMenuItemElement : nsIDOMHTMLElement
|
||||
{
|
||||
attribute DOMString type;
|
||||
attribute DOMString label;
|
||||
attribute DOMString icon;
|
||||
attribute boolean disabled;
|
||||
|
||||
// This should be 'default' but in the IDL implementation
|
||||
// this has been renamed 'defaultChecked'.
|
||||
attribute boolean defaultChecked;
|
||||
|
||||
attribute boolean checked;
|
||||
attribute DOMString radiogroup;
|
||||
|
||||
// Currently not implemented.
|
||||
// readonly attribute HTMLElement? command;
|
||||
};
|
||||
|
|
|
@ -61,14 +61,7 @@ CopyableCanvasLayer::UpdateSurface(gfxASurface* aDestSurface, Layer* aMaskLayer)
|
|||
|
||||
if (mDrawTarget) {
|
||||
mDrawTarget->Flush();
|
||||
if (mDrawTarget->GetType() == BACKEND_COREGRAPHICS_ACCELERATED) {
|
||||
// We have an accelerated CG context which has changed, unlike a bitmap surface
|
||||
// where we can alias the bits on initializing the mDrawTarget, we need to readback
|
||||
// and copy the accelerated surface each frame. We want to support this for quick
|
||||
// thumbnail but if we're going to be doing this every frame it likely is better
|
||||
// to use a non accelerated (bitmap) canvas.
|
||||
mSurface = gfxPlatform::GetPlatform()->GetThebesSurfaceForDrawTarget(mDrawTarget);
|
||||
}
|
||||
mSurface = gfxPlatform::GetPlatform()->GetThebesSurfaceForDrawTarget(mDrawTarget);
|
||||
}
|
||||
|
||||
if (!mGLContext && aDestSurface) {
|
||||
|
|
|
@ -52,7 +52,7 @@ protected:
|
|||
nsRefPtr<gfxASurface> mSurface;
|
||||
nsRefPtr<mozilla::gl::GLContext> mGLContext;
|
||||
mozilla::RefPtr<mozilla::gfx::DrawTarget> mDrawTarget;
|
||||
|
||||
|
||||
uint32_t mCanvasFramebuffer;
|
||||
|
||||
bool mIsGLAlphaPremult;
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -50,12 +50,6 @@ public:
|
|||
const uint8_t *aFontData,
|
||||
uint32_t aLength);
|
||||
|
||||
// Interfaces used internally
|
||||
// (but public so that they can be accessed from non-member functions):
|
||||
|
||||
// A language guessed from the gfxFontStyle
|
||||
PangoLanguage *GetPangoLanguage() { return mPangoLanguage; }
|
||||
|
||||
private:
|
||||
// @param aLang [in] language to use for pref fonts and system default font
|
||||
// selection, or NULL for the language guessed from the gfxFontStyle.
|
||||
|
|
|
@ -441,6 +441,7 @@ gssapi/gssapi_generic.h
|
|||
gssapi/gssapi.h
|
||||
gssapi.h
|
||||
gtk/gtk.h
|
||||
gtk/gtkx.h
|
||||
gtk/gtkprinter.h
|
||||
gtk/gtkprintjob.h
|
||||
gtk/gtkprintunixdialog.h
|
||||
|
|
|
@ -4390,7 +4390,7 @@ if test "$MOZ_DEBUG"; then
|
|||
AC_DEFINE(MOZ_REFLOW_PERF_DSP)
|
||||
fi
|
||||
|
||||
if test "$ACCESSIBILITY" -a "$MOZ_ENABLE_GTK2" ; then
|
||||
if test "$ACCESSIBILITY" -a "$MOZ_ENABLE_GTK" ; then
|
||||
AC_DEFINE(MOZ_ACCESSIBILITY_ATK)
|
||||
ATK_FULL_VERSION=`$PKG_CONFIG --modversion atk`
|
||||
ATK_MAJOR_VERSION=`echo ${ATK_FULL_VERSION} | $AWK -F\. '{ print $1 }'`
|
||||
|
|
|
@ -62,6 +62,7 @@ js::Nursery::enable()
|
|||
return;
|
||||
JS_ASSERT(position_ == start());
|
||||
numActiveChunks_ = 1;
|
||||
setCurrentChunk(0);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -71,6 +72,7 @@ js::Nursery::disable()
|
|||
return;
|
||||
JS_ASSERT(position_ == start());
|
||||
numActiveChunks_ = 0;
|
||||
currentEnd_ = 0;
|
||||
}
|
||||
|
||||
void *
|
||||
|
|
|
@ -858,7 +858,13 @@ ReorderCommutative(MDefinition **lhsp, MDefinition **rhsp)
|
|||
// Ensure that if there is a constant, then it is in rhs.
|
||||
// In addition, since clobbering binary operations clobber the left
|
||||
// operand, prefer a non-constant lhs operand with no further uses.
|
||||
if (lhs->isConstant() || (!rhs->isConstant() && rhs->useCount() == 1)) {
|
||||
|
||||
if (rhs->isConstant())
|
||||
return;
|
||||
|
||||
if (lhs->isConstant() ||
|
||||
(lhs->defUseCount() == 1 && rhs->defUseCount() != 1))
|
||||
{
|
||||
*rhsp = lhs;
|
||||
*lhsp = rhs;
|
||||
}
|
||||
|
|
|
@ -241,6 +241,16 @@ MDefinition::useCount() const
|
|||
return count;
|
||||
}
|
||||
|
||||
size_t
|
||||
MDefinition::defUseCount() const
|
||||
{
|
||||
size_t count = 0;
|
||||
for (MUseIterator i(uses_.begin()); i != uses_.end(); i++)
|
||||
if ((*i)->consumer()->isDefinition())
|
||||
count++;
|
||||
return count;
|
||||
}
|
||||
|
||||
MUseIterator
|
||||
MDefinition::removeUse(MUseIterator use)
|
||||
{
|
||||
|
|
|
@ -441,6 +441,10 @@ class MDefinition : public MNode
|
|||
// Number of uses of this instruction.
|
||||
size_t useCount() const;
|
||||
|
||||
// Number of uses of this instruction.
|
||||
// (only counting MDefinitions, ignoring MResumePoints)
|
||||
size_t defUseCount() const;
|
||||
|
||||
bool hasUses() const {
|
||||
return !uses_.empty();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
// |jit-test|
|
||||
// Exercise finding a DebuggerSource cross compartment wrapper in
|
||||
// JSCompartment::findOutgoingEdges()
|
||||
|
||||
let g = newGlobal('new-compartment');
|
||||
let dbg = new Debugger(g);
|
||||
dbg.onNewScript = function (script) {
|
||||
var text = script.source.text;
|
||||
}
|
||||
g.eval("function f() { function g() {} }");
|
||||
gczeal(9, 1)
|
||||
var a = {}
|
||||
var b = {}
|
|
@ -3243,6 +3243,7 @@ JSCompartment::findOutgoingEdges(ComponentFinder<JS::Zone> &finder)
|
|||
}
|
||||
} else {
|
||||
JS_ASSERT(kind == CrossCompartmentKey::DebuggerScript ||
|
||||
kind == CrossCompartmentKey::DebuggerSource ||
|
||||
kind == CrossCompartmentKey::DebuggerObject ||
|
||||
kind == CrossCompartmentKey::DebuggerEnvironment);
|
||||
/*
|
||||
|
|
|
@ -18,25 +18,6 @@ using namespace JS;
|
|||
|
||||
extern const char* xpc_qsStringTable;
|
||||
|
||||
static inline QITableEntry *
|
||||
GetOffsets(nsISupports *identity, XPCWrappedNativeProto* proto)
|
||||
{
|
||||
QITableEntry* offsets = proto ? proto->GetOffsets() : nullptr;
|
||||
if (!offsets) {
|
||||
static NS_DEFINE_IID(kThisPtrOffsetsSID, NS_THISPTROFFSETS_SID);
|
||||
identity->QueryInterface(kThisPtrOffsetsSID, (void**)&offsets);
|
||||
}
|
||||
return offsets;
|
||||
}
|
||||
|
||||
static inline QITableEntry *
|
||||
GetOffsetsFromSlimWrapper(JSObject *obj)
|
||||
{
|
||||
NS_ASSERTION(IS_SLIM_WRAPPER(obj), "What kind of object is this?");
|
||||
return GetOffsets(static_cast<nsISupports*>(xpc_GetJSPrivate(obj)),
|
||||
GetSlimWrapperProto(obj));
|
||||
}
|
||||
|
||||
static const xpc_qsHashEntry *
|
||||
LookupEntry(uint32_t tableSize, const xpc_qsHashEntry *table, const nsID &iid)
|
||||
{
|
||||
|
@ -509,25 +490,12 @@ xpc_qsAUTF8String::xpc_qsAUTF8String(JSContext *cx, jsval v, jsval *pval)
|
|||
|
||||
static nsresult
|
||||
getNative(nsISupports *idobj,
|
||||
QITableEntry* entries,
|
||||
HandleObject obj,
|
||||
const nsIID &iid,
|
||||
void **ppThis,
|
||||
nsISupports **pThisRef,
|
||||
jsval *vp)
|
||||
{
|
||||
// Try using the QITableEntry to avoid the extra AddRef and Release.
|
||||
if (entries) {
|
||||
for (QITableEntry* e = entries; e->iid; e++) {
|
||||
if (e->iid->Equals(iid)) {
|
||||
*ppThis = (char*) idobj + e->offset - entries[0].offset;
|
||||
*vp = OBJECT_TO_JSVAL(obj);
|
||||
*pThisRef = nullptr;
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
nsresult rv = idobj->QueryInterface(iid, ppThis);
|
||||
*pThisRef = static_cast<nsISupports*>(*ppThis);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
|
@ -544,8 +512,8 @@ getNativeFromWrapper(JSContext *cx,
|
|||
jsval *vp)
|
||||
{
|
||||
RootedObject obj(cx, wrapper->GetFlatJSObject());
|
||||
return getNative(wrapper->GetIdentityObject(), wrapper->GetOffsets(),
|
||||
obj, iid, ppThis, pThisRef, vp);
|
||||
return getNative(wrapper->GetIdentityObject(), obj, iid, ppThis, pThisRef,
|
||||
vp);
|
||||
}
|
||||
|
||||
|
||||
|
@ -628,18 +596,16 @@ castNative(JSContext *cx,
|
|||
return rv;
|
||||
} else if (cur) {
|
||||
nsISupports *native;
|
||||
QITableEntry *entries;
|
||||
if ((native = mozilla::dom::UnwrapDOMObjectToISupports(cur))) {
|
||||
entries = nullptr;
|
||||
} else if (IS_SLIM_WRAPPER(cur)) {
|
||||
native = static_cast<nsISupports*>(xpc_GetJSPrivate(cur));
|
||||
entries = GetOffsetsFromSlimWrapper(cur);
|
||||
} else {
|
||||
*pThisRef = nullptr;
|
||||
return NS_ERROR_ILLEGAL_VALUE;
|
||||
if (!(native = mozilla::dom::UnwrapDOMObjectToISupports(cur))) {
|
||||
if (IS_SLIM_WRAPPER(cur)) {
|
||||
native = static_cast<nsISupports*>(xpc_GetJSPrivate(cur));
|
||||
} else {
|
||||
*pThisRef = nullptr;
|
||||
return NS_ERROR_ILLEGAL_VALUE;
|
||||
}
|
||||
}
|
||||
|
||||
if (NS_SUCCEEDED(getNative(native, entries, cur, iid, ppThis, pThisRef, vp))) {
|
||||
if (NS_SUCCEEDED(getNative(native, cur, iid, ppThis, pThisRef, vp))) {
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
@ -721,8 +687,7 @@ xpc_qsUnwrapThisFromCcxImpl(XPCCallContext &ccx,
|
|||
return xpc_qsThrow(ccx.GetJSContext(), NS_ERROR_XPC_HAS_BEEN_SHUTDOWN);
|
||||
|
||||
RootedObject obj(ccx, ccx.GetFlattenedJSObject());
|
||||
nsresult rv = getNative(native, GetOffsets(native, ccx.GetProto()),
|
||||
obj, iid, ppThis, pThisRef, vp);
|
||||
nsresult rv = getNative(native, obj, iid, ppThis, pThisRef, vp);
|
||||
if (NS_FAILED(rv))
|
||||
return xpc_qsThrow(ccx.GetJSContext(), rv);
|
||||
return true;
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче