servo/components/style
Emilio Cobos Álvarez aa5ea337da style: Try to bring some more sanity into our font code.
It's not very easy to understand on its current state, and it causes subtle bugs
like bug 1533654.

It could be simpler if we centralized where the interactions between properties
are handled. This patch does this.

This patch also changes how MathML script sizes are tracked when scriptlevel
changes and they have relative fonts in between.

With this patch, any explicitly specified font-size is treated the same (being a
scriptlevel boundary), regardless of whether it's either an absolute size, a
relative size, or a wide keyword.

Relative lengths always resolve relative to the constrained size, which allows
us to avoid the double font-size computation, and not give up on sanity with
keyword font-sizes.

I think given no other browser supports scriptlevel it seems like the right
trade-off.

Differential Revision: https://phabricator.services.mozilla.com/D23070
2019-03-27 14:29:07 +01:00
..
counter_style Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
gecko style: Use a single RestyleHint representation. 2019-03-27 14:29:05 +01:00
gecko_bindings style: Reformat recent changes. 2019-03-13 15:08:38 +01:00
gecko_string_cache style: Document a few more macros. 2019-01-13 21:59:25 +01:00
invalidation style: Use a single RestyleHint representation. 2019-03-27 14:29:05 +01:00
media_queries style: Add a Zero trait that doesn't require Add, and use it in place of num_traits and IsZeroLength. 2019-03-13 15:08:14 +01:00
properties style: Try to bring some more sanity into our font code. 2019-03-27 14:29:07 +01:00
rule_tree style: Reformat recent changes. 2019-03-13 15:08:38 +01:00
servo Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +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: Avoid crashing when calling insertRule("@import ...") on a detached sheet. 2019-03-27 14:29:06 +01:00
use_counters Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
values style: Try to bring some more sanity into our font code. 2019-03-27 14:29:07 +01: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 Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
bezier.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
bloom.rs Upgrade to rustc 1.35.0-nightly (4c27fb19b 2019-03-25) 2019-03-26 15:12:55 +01:00
build.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
build_gecko.rs style: Update the Rust target version for bindgen. 2019-01-07 00:32:50 +01:00
Cargo.toml style: Add a dependency on derive_more. 2019-01-29 02:39:05 +01:00
cbindgen.toml style: Use a single RestyleHint representation. 2019-03-27 14:29:05 +01:00
context.rs style: Derive more. 2019-01-29 02:39:13 +01:00
custom_properties.rs style: Reformat recent changes. 2019-03-13 15:08:38 +01:00
data.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
dom.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +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 Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
font_face.rs Upgrade to rustc 1.35.0-nightly (4c27fb19b 2019-03-25) 2019-03-26 15:12:55 +01:00
font_metrics.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
global_style_data.rs #8539 Config preferences backend restructure 2019-03-20 15:01:26 +00:00
hash.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
lib.rs style: Add a Zero trait that doesn't require Add, and use it in place of num_traits and IsZeroLength. 2019-03-13 15:08:14 +01:00
logical_geometry.rs Fix servo build and rustfmt recent changes. 2019-01-20 16:31:01 +01:00
macros.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01: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 Update MPL license to https (part 4) 2018-11-19 14:47:27 +01: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 Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
shared_lock.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
str.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
style_adjuster.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01: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 Upgrade to rustc 1.35.0-nightly (4c27fb19b 2019-03-25) 2019-03-26 15:12:55 +01: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.