mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
47eb45a0b5
This is the first step to unprefix user-select. This has no behavior change, it's just a nicer way to do the same thing which allows us to unship individual values more easily using parse(condition). Differential Revision: https://phabricator.services.mozilla.com/D11580
59 lines
1.5 KiB
TOML
59 lines
1.5 KiB
TOML
header = """/* 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/. */"""
|
|
autogen_warning = """/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen.
|
|
* To generate this file:
|
|
* 1. Get the latest cbindgen using `cargo install --force cbindgen`
|
|
* a. Alternatively, you can clone `https://github.com/eqrion/cbindgen` and use a tagged release
|
|
* 2. Run `rustup run nightly cbindgen toolkit/library/rust/ --lockfile Cargo.lock --crate style -o layout/style/ServoStyleConsts.h`
|
|
*/
|
|
class nsAtom;
|
|
namespace mozilla {
|
|
namespace css {
|
|
struct URLValue;
|
|
}
|
|
// Work-around weird cbindgen renaming.
|
|
typedef css::URLValue StyleURLValue;
|
|
typedef nsAtom StylensAtom;
|
|
}
|
|
"""
|
|
include_guard = "mozilla_ServoStyleConsts_h"
|
|
include_version = true
|
|
braces = "SameLine"
|
|
line_length = 80
|
|
tab_width = 2
|
|
language = "C++"
|
|
namespaces = ["mozilla"]
|
|
|
|
[parse]
|
|
parse_deps = true
|
|
include = ["cssparser"]
|
|
|
|
[struct]
|
|
derive_eq = true
|
|
|
|
[enum]
|
|
derive_helper_methods = true
|
|
|
|
[export]
|
|
prefix = "Style"
|
|
include = [
|
|
"Appearance",
|
|
"ComputedFontStretchRange",
|
|
"ComputedFontStyleDescriptor",
|
|
"ComputedFontWeightRange",
|
|
"ComputedTimingFunction",
|
|
"Display",
|
|
"DisplayMode",
|
|
"FillRule",
|
|
"FontDisplay",
|
|
"FontFaceSourceListComponent",
|
|
"FontLanguageOverride",
|
|
"OverflowWrap",
|
|
"TimingFunction",
|
|
"PathCommand",
|
|
"UnicodeRange",
|
|
"UserSelect",
|
|
]
|
|
item_types = ["enums", "structs", "typedefs"]
|