servo/components/style
bors-servo fac0d17fd6 Auto merge of #16224 - servo:valid-fontface, r=upsuper
Make the parser accept @font-face rules without font-family or src.

Fix #16165.

Also, it turns out that the CSSFontFaceRule IDL specified in the css-fonts spec is not web-compatible. Instead browsers implement a .style attribute like in CSSStyleRule: https://github.com/w3c/csswg-drafts/issues/825

This in turn requires preserving data about which descriptors were set or not (distinguishing unset from set to a value that happens to be the initial value), so this commit also makes every field `Option<_>`.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16224)
<!-- Reviewable:end -->
2017-04-03 03:53:09 -05:00
..
binding_tools Update Gecko atom bindings for Gecko bug 1351139. 2017-03-28 10:19:09 -04:00
gecko Auto merge of #16224 - servo:valid-fontface, r=upsuper 2017-04-03 03:53:09 -05:00
gecko_bindings Auto merge of #16224 - servo:valid-fontface, r=upsuper 2017-04-03 03:53:09 -05:00
gecko_string_cache Update Gecko atom bindings for Gecko bug 1351139. 2017-03-28 10:19:09 -04:00
properties Create URLExtraData for holding base uri, referrer, and principal. 2017-04-03 14:30:33 +10:00
rule_tree Add a function that returns new rules by removing transition and animation level rules. 2017-03-24 10:39:44 +09:00
servo Use empty pseudo to cascade only inheritable properties for text 2017-04-01 14:05:11 +08:00
values Fix justify-content values. 2017-04-03 07:29:35 +09:00
animation.rs style: Properly track whether <angle> or <time> values came from calc() expressions. 2017-03-27 12:42:22 +02:00
attr.rs Move all PropertyDeclarationBlock from RwLock<_> to Locked<_> 2017-03-19 22:30:38 +01:00
bezier.rs
bloom.rs Bug 1336646 - Use the bloom filter for manual style resolves and pass a mutable StyleContext into match_element. r=emilio 2017-02-08 17:09:35 -08:00
build.rs stylo: Add a build log mechanism. 2017-03-18 13:21:10 +01:00
build_gecko.rs Create URLExtraData for holding base uri, referrer, and principal. 2017-04-03 14:30:33 +10:00
cache.rs style: Iterate the LRU cache contents from back to front. 2017-03-11 11:31:10 +01:00
Cargo.toml stylo: Implement gecko glue for font-language-override. 2017-03-28 15:34:08 +08:00
cascade_info.rs
context.rs Introduce UpdateAnimationTasks to perform a bunch of animation's tasks in a SequentialTask. 2017-03-27 17:38:09 +09:00
custom_properties.rs Rearrange PropertyDeclaration to avoid embedding DeclaredValue. 2017-03-16 14:40:55 -07:00
data.rs style: Cleanup a bit the restyle hint propagation code. 2017-03-27 13:30:48 +02:00
dom.rs Introduce is_native_anonymous and cull style traversal of doomed native anonymous content. 2017-04-01 12:33:37 -07:00
element_state.rs Bug 1350140: stylo: Implement all the remaining state pseudo-classes. r=heycam 2017-03-29 11:52:53 +02:00
encoding_support.rs Parse stylesheets without acquiring a shared lock. 2017-03-19 22:30:40 +01:00
error_reporting.rs style: Avoid cloning all over the error reporter. 2017-03-14 00:49:18 +01:00
font_face.rs Reject @font-face descriptors with value value followed by more stuff. 2017-04-01 14:54:57 +02:00
font_metrics.rs
keyframes.rs Replace ParsedDeclaration::expand with non-generic method 2017-03-29 20:28:25 +02:00
lib.rs Use Gecko nsCSSFontFaceRule for font face rule. 2017-03-30 11:41:09 +11:00
logical_geometry.rs Convert text-orientation to a Gecko-only property 2017-01-27 21:12:38 -08:00
matching.rs Call UpdateEffectProperties for stylo. 2017-03-27 17:38:33 +09:00
media_queries.rs style: Fix media query parsing when invalid queries are present. 2017-03-15 17:45:39 +01:00
parallel.rs style: Add the traversal kind to the style stats. 2017-03-11 11:31:11 +01:00
parser.rs Create URLExtraData for holding base uri, referrer, and principal. 2017-04-03 14:30:33 +10:00
README.md
restyle_hints.rs Introduce eRestyle_CSSAnimations. 2017-03-27 06:19:51 +09:00
scoped_tls.rs Bug 1331856 - Add style performance statistics to Servo. r=emilio 2017-01-19 15:05:19 -08:00
selector_parser.rs
sequential.rs style: Add the traversal kind to the style stats. 2017-03-11 11:31:11 +01:00
shared_lock.rs Use AtomicRefCell instead of RwLock inside SharedRwLock for stylo. 2017-03-20 16:36:03 -07:00
sink.rs
str.rs Use ascii_case_insensitive_phf_map! in PropertyId::parse 2017-02-26 11:10:33 +01:00
stylesheets.rs Make the parser accept @font-face rules without font-family or src. 2017-04-01 14:05:32 +02:00
stylist.rs Auto merge of #16096 - stshine:die-modify-style-die, r=emilio 2017-04-01 06:02:08 -05:00
supports.rs Move parse method of PropertyDeclaration to ParsedDeclaration 2017-03-07 23:37:29 +01:00
thread_state.rs
timer.rs
traversal.rs Introduce is_native_anonymous and cull style traversal of doomed native anonymous content. 2017-04-01 12:33:37 -07:00
viewport.rs Introduce a ToCssWithGuard trait 2017-03-19 22:30:33 +01:00

servo-style

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