mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Bug 1444231 - Fix QI implementation for FragmentOrElement. r=mccr8, a=RyanVM
MozReview-Commit-ID: 9mPO2ezk2Y7 --HG-- extra : source : 060024fa93121d878d27f329c959757e6f71017a extra : intermediate-source : 925d5693c5a1a73806062947b18c98ed13efc6c3
This commit is contained in:
parent
222de2080c
commit
b5e5cabc37
2 changed files with 6 additions and 1 deletions
|
|
@ -183,6 +183,12 @@ Element::DoGetClasses() const
|
|||
NS_IMETHODIMP
|
||||
Element::QueryInterface(REFNSIID aIID, void** aInstancePtr)
|
||||
{
|
||||
if (aIID.Equals(NS_GET_IID(Element))) {
|
||||
NS_ADDREF_THIS();
|
||||
*aInstancePtr = this;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_ASSERTION(aInstancePtr,
|
||||
"QueryInterface requires a non-NULL destination!");
|
||||
nsresult rv = FragmentOrElement::QueryInterface(aIID, aInstancePtr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue