зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1563555 - Don't bindgen static prefs. r=emilio
Bindgen is no longer necessary now that Rust bindings are generated by generate_static_pref_list.py. Differential Revision: https://phabricator.services.mozilla.com/D40793 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
48f276929d
Коммит
4ee7b811de
|
@ -24,7 +24,6 @@ headers = [
|
|||
"mozilla/dom/ChildIterator.h",
|
||||
"mozilla/dom/NameSpaceConstants.h",
|
||||
"mozilla/LookAndFeel.h",
|
||||
"mozilla/StaticPrefsAll.h",
|
||||
"mozilla/GeckoBindings.h",
|
||||
"mozilla/ServoBindings.h",
|
||||
"mozilla/ComputedStyle.h",
|
||||
|
@ -161,7 +160,6 @@ whitelist-vars = [
|
|||
"mozilla::detail::gGkAtoms",
|
||||
"mozilla::detail::kGkAtomsArrayOffset",
|
||||
"mozilla::profiler::detail::RacyFeatures::sActiveAndFeatures",
|
||||
"mozilla::StaticPrefs::.*",
|
||||
]
|
||||
# TODO(emilio): A bunch of types here can go away once we generate bindings and
|
||||
# structs together.
|
||||
|
@ -202,7 +200,6 @@ whitelist-types = [
|
|||
"mozilla::OriginFlags",
|
||||
"mozilla::PropertyStyleAnimationValuePair",
|
||||
"mozilla::ServoTraversalFlags",
|
||||
"mozilla::StaticPrefs",
|
||||
"mozilla::StyleShapeRadius",
|
||||
"mozilla::StyleGrid.*",
|
||||
"mozilla::UpdateAnimationsTasks",
|
||||
|
|
|
@ -15,8 +15,7 @@ namespace mozilla {
|
|||
namespace StaticPrefs {
|
||||
|
||||
// For mirrored prefs we generate an extern variable declaration and three
|
||||
// getter declarations/definitions. The extern declaration of the variable is
|
||||
// necessary for bindgen to see it and generate Rust bindings.
|
||||
// getter declarations/definitions.
|
||||
#define NEVER_PREF(name, cpp_type, default_value)
|
||||
#define ALWAYS_PREF(name, base_id, full_id, cpp_type, default_value) \
|
||||
extern cpp_type sVarCache_##full_id; \
|
||||
|
|
Загрузка…
Ссылка в новой задаче