servo/components/style
Hiroyuki Ikezoe c63a9a37a9
style: Introduce nsCSSKeywordAndBoolTableEntry.
The values in the boolean context depend on its feature.  For examples, in the
case of prefers-reduced-motion 'no-preference' means false and 'reduced' mean
true in the boolean context, whereas in the case of prefers-contrast
'no-preference' means false and other two values, 'high' and 'low' means true
in the boolean context.  To support it we introduce a child struct of
nsCSSKTableEntry that has an additional field representing the value in the
boolean context and use it when we have no specified value in the media feature
(i.e. in the boolean context).

Bug: 1365045
Reviewed-by: heycam
MozReview-Commit-ID: 79HiW8l5ous
2018-08-08 01:34:35 +02:00
..
counter_style style: autopep8 2018-07-24 03:26:12 +02:00
gecko style: Introduce nsCSSKeywordAndBoolTableEntry. 2018-08-08 01:34:35 +02:00
gecko_bindings style: Change nscolor to StyleComplexColor in nsCSSShadowItem. 2018-07-01 00:03:11 +02:00
gecko_string_cache Store nsDynamicAtom's chars after the end of the object. 2018-06-23 20:36:41 +02:00
invalidation style: Make svg:use use an actual shadow tree. 2018-07-24 03:30:12 +02:00
media_queries style: Appease tidy. 2018-07-01 01:01:46 +02:00
properties style: Appease tidy. 2018-07-24 03:58:16 +02:00
rule_tree style: Update StyleSource to use ArcUnion. 2018-04-29 03:28:32 +02:00
servo style: Fix servo build. 2018-07-24 03:38:14 +02:00
sharing style: Fix the broken invariants of the rule node cache. 2018-06-23 20:34:50 +02:00
stylesheets style: Add @-moz-document media-document(image|video|plugin). 2018-07-24 03:30:59 +02:00
values style: Hide display: -moz-box|-moz-inline-box from content on Nightly and early beta. 2018-07-24 03:31:12 +02:00
animation.rs style: Push visited style computation a bit further down. 2018-07-24 03:28:50 +02:00
applicable_declarations.rs style: Update StyleSource to use ArcUnion. 2018-04-29 03:28:32 +02:00
attr.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
author_styles.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
bezier.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
bloom.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
build.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
build_gecko.rs style: Use RUSTFMT env in stylo build script. 2018-07-01 00:07:01 +02:00
Cargo.toml WR update 2018-08-06 07:22:24 +02:00
context.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
custom_properties.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
data.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
dom.rs style: Make element-backed pseudos inherit from NAC subtree roots and other NAC inherit from their parents. 2018-06-02 12:07:07 +02:00
dom_apis.rs style: Optimize QuerySelector in shadow trees. 2018-05-28 16:02:31 +02:00
driver.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
element_state.rs style: Appease tidy. 2018-07-01 01:01:46 +02:00
encoding_support.rs style: Fix servo build. 2018-06-23 20:34:10 +02:00
error_reporting.rs style: Better debugging for stylesheets and URLs. 2018-06-23 20:37:03 +02:00
font_face.rs style: Move the error reporter into ParserContext. 2018-06-23 20:36:23 +02:00
font_metrics.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
hash.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
lib.rs style: Remove some unneeded cfg(..). 2018-05-05 17:53:22 +02:00
logical_geometry.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
macros.rs style: Add a ValueInfo trait for exposing types needed by devtools. 2018-04-29 03:28:34 +02:00
matching.rs style: Update animations if the logical to physical property mapping changes. 2018-07-24 03:28:23 +02:00
parallel.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
parser.rs style: Move the error reporter into ParserContext. 2018-06-23 20:36:23 +02:00
README.md
rule_cache.rs style: Remove IS_STYLE_IF_VISITED. 2018-07-24 03:29:03 +02:00
scoped_tls.rs
selector_map.rs style: Add namespace bucket for the selector map. 2018-07-01 00:05:12 +02:00
selector_parser.rs style: Measure heap allocations hanging off selector components. 2018-07-16 19:43:15 +02:00
shared_lock.rs Update parking_lot to 0.6 2018-07-20 00:44:08 +02:00
str.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
style_adjuster.rs style: Remove IS_STYLE_IF_VISITED. 2018-07-24 03:29:03 +02:00
style_resolver.rs style: Make element-backed pseudos inherit from NAC subtree roots and other NAC inherit from their parents. 2018-06-02 12:07:07 +02:00
stylesheet_set.rs style: Allow placeholder import sheets. 2018-04-17 20:01:27 +02:00
stylist.rs style: Make svg:use use an actual shadow tree. 2018-07-24 03:30:12 +02:00
thread_state.rs
timer.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
traversal.rs style: Make element-backed pseudos inherit from NAC subtree roots and other NAC inherit from their parents. 2018-06-02 12:07:07 +02:00
traversal_flags.rs

servo-style

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