mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
Bug 1329088 - Add LengthParsingMode enum to Gecko side. r=emilio
Add a Gecko side LengthParsingMode enum that matches the Servo version. This will be used in a few Stylo glue APIs on the FFI boundary. MozReview-Commit-ID: EuDlWc6ZiQ8
This commit is contained in:
parent
a498868ba9
commit
9e8f561392
@ -71,6 +71,18 @@ enum class UpdateAnimationsTasks : uint8_t {
|
||||
CascadeResults = 1 << 3,
|
||||
};
|
||||
|
||||
// The mode to use when parsing lengths.
|
||||
enum class LengthParsingMode {
|
||||
// In CSS, lengths must have units, except for zero values, where the unit can
|
||||
// be omitted.
|
||||
// https://www.w3.org/TR/css3-values/#lengths
|
||||
Default,
|
||||
// In SVG, a coordinate or length value without a unit identifier (e.g., "25")
|
||||
// is assumed to be in user units (px).
|
||||
// https://www.w3.org/TR/SVG/coords.html#Units
|
||||
SVG,
|
||||
};
|
||||
|
||||
MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS(UpdateAnimationsTasks)
|
||||
|
||||
} // namespace mozilla
|
||||
|
Loading…
Reference in New Issue
Block a user