mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1155829 - remove MaiHyperlink::Initialize r=surkov
This commit is contained in:
parent
c4065db6bc
commit
dbeb87f5d4
@ -121,28 +121,11 @@ MaiHyperlink::GetAtkHyperlink(void)
|
||||
NS_ASSERTION(mMaiAtkHyperlink, "OUT OF MEMORY");
|
||||
NS_ENSURE_TRUE(mMaiAtkHyperlink, nullptr);
|
||||
|
||||
/* be sure to initialize it with "this" */
|
||||
MaiHyperlink::Initialize(mMaiAtkHyperlink, this);
|
||||
MAI_ATK_HYPERLINK(mMaiAtkHyperlink)->maiHyperlink = this;
|
||||
|
||||
return mMaiAtkHyperlink;
|
||||
}
|
||||
|
||||
/* static */
|
||||
|
||||
/* remember to call this static function when a MaiAtkHyperlink
|
||||
* is created
|
||||
*/
|
||||
|
||||
nsresult
|
||||
MaiHyperlink::Initialize(AtkHyperlink *aObj, MaiHyperlink *aHyperlink)
|
||||
{
|
||||
NS_ENSURE_ARG(MAI_IS_ATK_HYPERLINK(aObj));
|
||||
NS_ENSURE_ARG(aHyperlink);
|
||||
|
||||
/* initialize hyperlink */
|
||||
MAI_ATK_HYPERLINK(aObj)->maiHyperlink = aHyperlink;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* static functions for ATK callbacks */
|
||||
|
||||
|
@ -34,8 +34,6 @@ public:
|
||||
protected:
|
||||
Accessible* mHyperlink;
|
||||
AtkHyperlink* mMaiAtkHyperlink;
|
||||
public:
|
||||
static nsresult Initialize(AtkHyperlink *aObj, MaiHyperlink *aClass);
|
||||
};
|
||||
|
||||
} // namespace a11y
|
||||
|
Loading…
Reference in New Issue
Block a user