зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1769290 - Part 14: Apply mozilla-js-handle-rooted-typedef against gfx r=andi
Differential Revision: https://phabricator.services.mozilla.com/D151781
This commit is contained in:
Родитель
c8a6450e63
Коммит
5c5782d0ee
|
@ -113,7 +113,7 @@ struct APZTestDataToJSConverter {
|
|||
}
|
||||
};
|
||||
|
||||
bool APZTestData::ToJS(JS::MutableHandleValue aOutValue,
|
||||
bool APZTestData::ToJS(JS::MutableHandle<JS::Value> aOutValue,
|
||||
JSContext* aContext) const {
|
||||
dom::APZTestData result;
|
||||
APZTestDataToJSConverter::ConvertAPZTestData(*this, result);
|
||||
|
|
|
@ -92,7 +92,7 @@ class APZTestData {
|
|||
}
|
||||
|
||||
// Convert this object to a JS representation.
|
||||
bool ToJS(JS::MutableHandleValue aOutValue, JSContext* aContext) const;
|
||||
bool ToJS(JS::MutableHandle<JS::Value> aOutValue, JSContext* aContext) const;
|
||||
|
||||
// Use dummy derived structures wrapping the typedefs to work around a type
|
||||
// name length limit in MSVC.
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace layers {
|
|||
|
||||
using namespace gfx;
|
||||
|
||||
bool FrameUniformityData::ToJS(JS::MutableHandleValue aOutValue,
|
||||
bool FrameUniformityData::ToJS(JS::MutableHandle<JS::Value> aOutValue,
|
||||
JSContext* aContext) {
|
||||
dom::FrameUniformityResults results;
|
||||
dom::Sequence<dom::FrameUniformity>& layers =
|
||||
|
|
|
@ -21,7 +21,7 @@ class FrameUniformityData {
|
|||
friend struct IPC::ParamTraits<FrameUniformityData>;
|
||||
|
||||
public:
|
||||
bool ToJS(JS::MutableHandleValue aOutValue, JSContext* aContext);
|
||||
bool ToJS(JS::MutableHandle<JS::Value> aOutValue, JSContext* aContext);
|
||||
// Contains the calculated frame uniformities
|
||||
std::map<uintptr_t, float> mUniformities;
|
||||
};
|
||||
|
|
|
@ -133,16 +133,15 @@ class EnumerateFontsTask final : public Runnable {
|
|||
};
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsThebesFontEnumerator::EnumerateAllFontsAsync(JSContext* aCx,
|
||||
JS::MutableHandleValue aRval) {
|
||||
nsThebesFontEnumerator::EnumerateAllFontsAsync(
|
||||
JSContext* aCx, JS::MutableHandle<JS::Value> aRval) {
|
||||
return EnumerateFontsAsync(nullptr, nullptr, aCx, aRval);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsThebesFontEnumerator::EnumerateFontsAsync(const char* aLangGroup,
|
||||
const char* aGeneric,
|
||||
JSContext* aCx,
|
||||
JS::MutableHandleValue aRval) {
|
||||
nsThebesFontEnumerator::EnumerateFontsAsync(
|
||||
const char* aLangGroup, const char* aGeneric, JSContext* aCx,
|
||||
JS::MutableHandle<JS::Value> aRval) {
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
nsCOMPtr<nsIGlobalObject> global = xpc::CurrentNativeGlobal(aCx);
|
||||
|
|
|
@ -118,7 +118,7 @@ class MockGfxInfo final : public nsIGfxInfo {
|
|||
}
|
||||
|
||||
NS_IMETHOD GetMonitors(JSContext* cx,
|
||||
JS::MutableHandleValue _retval) override {
|
||||
JS::MutableHandle<JS::Value> _retval) override {
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
NS_IMETHOD GetFailures(nsTArray<int32_t>& indices,
|
||||
|
|
Загрузка…
Ссылка в новой задаче