mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 755255 - Add a convenience function to grab the JS runtime. r=mrbkap
I started getting sick of typing nsXPConnect::GetXPConnect()->GetRuntime().
This commit is contained in:
parent
742b686e2e
commit
61da966ca9
@ -652,6 +652,7 @@ class XPCJSRuntime
|
||||
{
|
||||
public:
|
||||
static XPCJSRuntime* newXPCJSRuntime(nsXPConnect* aXPConnect);
|
||||
static XPCJSRuntime* Get() { return nsXPConnect::GetXPConnect()->GetRuntime(); }
|
||||
|
||||
JSRuntime* GetJSRuntime() const {return mJSRuntime;}
|
||||
nsXPConnect* GetXPConnect() const {return mXPConnect;}
|
||||
|
Loading…
Reference in New Issue
Block a user