mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
d1ffff7a12
We can reduce the size of the SSO by removing the element slot entirely, and instead retrieve the element through a callback function. The callback will take in the value in the private slot of the SSO, which is either a LoadedScript* (from the browser) or a JSObject* (from the shell). In addition, this removes the requirement of having a script dom element ready when parsing a JS script which can open up new opportunities for performance. Differential Revision: https://phabricator.services.mozilla.com/D70417
19 lines
537 B
C++
19 lines
537 B
C++
/* -*- 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/. */
|
|
|
|
#ifndef mozilla_dom_ScriptKind_h
|
|
#define mozilla_dom_ScriptKind_h
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
|
|
enum class ScriptKind { eClassic, eModule, eEvent };
|
|
|
|
} // namespace dom
|
|
} // namespace mozilla
|
|
|
|
#endif
|