servo/components/style
Emilio Cobos Álvarez 2184e3f2e5 style: Cleanup generic font-family handling.
To be more similar between Rust and C++. This introduces GenericFontFamily and
exposes that plus FontFamilyNameSyntax to C++, using that where appropriate
instead of plain uint8_t as we were doing.

As a follow-up, as discussed on IRC with Jonathan, we can remove the -moz-fixed
family, and turn it just into an alias of Monospace.

The only non-trivial change is the MatchType changes, but they're ok I think.
The code already assumed at most one CSS generic, and the struct still takes 8
bits. I've verified that the relevant tests are passing (though try is closed).

Differential Revision: https://phabricator.services.mozilla.com/D24272
2019-04-12 12:19:55 +02:00
..
counter_style style: Add derived ToShmem implementations. 2019-04-12 12:19:52 +02:00
gecko style: Cleanup generic font-family handling. 2019-04-12 12:19:55 +02:00
gecko_bindings style: Autogenerate Servo_ binding functions with cbindgen. 2019-04-12 12:19:54 +02:00
gecko_string_cache style: Add derived ToShmem implementations. 2019-04-12 12:19:52 +02:00
invalidation style: Fix ::marker invalidation when we need to potentially insert a marker as a result of a style change. 2019-04-12 12:19:37 +02:00
media_queries style: Add derived ToShmem implementations. 2019-04-12 12:19:52 +02:00
properties style: Cleanup generic font-family handling. 2019-04-12 12:19:55 +02:00
rule_tree style: Reformat recent changes. 2019-03-13 15:08:38 +01:00
servo style: Fix Gecko and Servo builds, and appease tidy. 2019-03-27 14:29:28 +01:00
sharing style: Don't share styles when an element has animations applied to it. 2019-02-23 21:02:53 -08:00
stylesheets style: Add FFI API to create a StyleSheet backed by shared data. 2019-04-12 12:19:53 +02:00
use_counters Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
values style: Cleanup generic font-family handling. 2019-04-12 12:19:55 +02:00
animation.rs style: Minor build fixup after the Servo crossbeam_channel update. 2018-12-16 13:35:08 +01:00
applicable_declarations.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
attr.rs style: Rename LengthOrPercentage to LengthPercentage. 2019-01-08 12:00:48 +01:00
author_styles.rs style: Simplify a bit our generated bindings by getting rid of FooBorrowed and FooBorrowedMut. 2019-03-27 14:29:19 +01:00
bezier.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
bloom.rs style: fix some rust-nightly warnings about unused doc comments. 2019-03-27 14:29:16 +01:00
build.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
build_gecko.rs style: Fix Gecko and Servo builds, and appease tidy. 2019-03-27 14:29:28 +01:00
Cargo.toml style: Add support for deriving ToShmem. 2019-04-12 12:19:45 +02:00
context.rs style: Derive more. 2019-01-29 02:39:13 +01:00
custom_properties.rs style: Add derived ToShmem implementations. 2019-04-12 12:19:52 +02:00
data.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
dom.rs style: Add support for the ::marker pseudo element on list items. Alias :-moz-list-bullet/number to that in the parser. 2019-03-27 14:29:24 +01:00
dom_apis.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
driver.rs style: Derive more. 2019-01-29 02:39:13 +01:00
element_state.rs Rename nsIDocument to mozilla::dom::Document. 2019-01-07 00:32:51 +01:00
encoding_support.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
error_reporting.rs style: Augment CSS errors with the CSS selector. 2019-04-12 12:19:35 +02:00
font_face.rs style: Add derived ToShmem implementations. 2019-04-12 12:19:52 +02:00
font_metrics.rs style: Cleanup generic font-family handling. 2019-04-12 12:19:55 +02:00
global_style_data.rs style: Fix Gecko and Servo builds, and appease tidy. 2019-03-27 14:29:28 +01:00
hash.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
lib.rs style: Add derived ToShmem implementations. 2019-04-12 12:19:52 +02:00
logical_geometry.rs Fix servo build and rustfmt recent changes. 2019-01-20 16:31:01 +01:00
macros.rs style: Add derived ToShmem implementations. 2019-04-12 12:19:52 +02:00
matching.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
parallel.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
parser.rs style: Refactor some enabledness checks. 2019-04-12 12:19:38 +02:00
README.md
rule_cache.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
rule_collector.rs style: Rustfmt recent changes. 2019-01-07 00:32:54 +01:00
scoped_tls.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
selector_map.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
selector_parser.rs style: Add derived ToShmem implementations. 2019-04-12 12:19:52 +02:00
shared_lock.rs style: Add ToShmem impl for shared_lock::Locked. 2019-04-12 12:19:48 +02:00
str.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
style_adjuster.rs style: Follow the list-item definition from the spec a bit more closely. 2019-04-12 12:19:36 +02:00
style_resolver.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
stylesheet_set.rs style: Remove ServoStyleSet::PrependStyleSheet. 2019-01-13 21:59:07 +01:00
stylist.rs style: Add support for static references to servo_arc::Arc. r=emilio 2019-04-12 12:19:43 +02:00
thread_state.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
timer.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
traversal.rs style: fix a typo. 2019-03-13 15:08:35 +01:00
traversal_flags.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00

servo-style

Style system for Servo, using rust-cssparser for parsing.