mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1432963 - Fixing workers headers - part 6 - Get rid of WorkerInlines.h, r=smaug
This commit is contained in:
parent
8582d79ad5
commit
2e874fc833
@ -83,7 +83,6 @@
|
||||
#include "ServiceWorkerUpdateJob.h"
|
||||
#include "ServiceWorkerUpdaterChild.h"
|
||||
#include "SharedWorker.h"
|
||||
#include "WorkerInlines.h"
|
||||
#include "WorkerPrivate.h"
|
||||
#include "WorkerRunnable.h"
|
||||
#include "WorkerScope.h"
|
||||
|
@ -1,25 +0,0 @@
|
||||
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
||||
/* 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/. */
|
||||
|
||||
BEGIN_WORKERS_NAMESPACE
|
||||
|
||||
inline
|
||||
void
|
||||
SetJSPrivateSafeish(JSObject* aObj, PrivatizableBase* aBase)
|
||||
{
|
||||
JS_SetPrivate(aObj, aBase);
|
||||
}
|
||||
|
||||
template <class Derived>
|
||||
inline
|
||||
Derived*
|
||||
GetJSPrivateSafeish(JSObject* aObj)
|
||||
{
|
||||
return static_cast<Derived*>(
|
||||
static_cast<PrivatizableBase*>(JS_GetPrivate(aObj)));
|
||||
}
|
||||
|
||||
END_WORKERS_NAMESPACE
|
Loading…
Reference in New Issue
Block a user