servo/components/style
Emilio Cobos Álvarez a3fcfb6435
style: Add a fast path for querySelector{,All} when we have classes or tags in the rightmost compound.
Before this patch we were only optimizing the case of a single selector, which
is fine, but not enough to catch ones like .foo .bar or so.

This patch allows us to optimize classes and tags in the rightmost compound,
while keeping the current optimization for #id selectors.

Need to profile this, but code-wise should be ready for review.

Differential Revision: https://phabricator.services.mozilla.com/D9351
2018-11-05 12:29:10 +01:00
..
counter_style Format style component. 2018-09-09 16:24:45 +02:00
gecko style: Fix servo build and tidy lints. 2018-10-28 23:52:13 +01:00
gecko_bindings style: Generate StyleTimingFunction and drop ns_timing_function.rs. 2018-10-28 23:44:51 +01:00
gecko_string_cache style: Make static atom pointers constexpr. 2018-10-09 19:45:10 +02:00
invalidation Format style component. 2018-09-09 16:24:45 +02:00
media_queries Format style component. 2018-09-09 16:24:45 +02:00
properties style: Fix servo build and tidy lints. 2018-10-28 23:52:13 +01:00
rule_tree style: Make Servo build. 2018-09-18 11:46:23 +02:00
servo style: Fix Servo build. 2018-10-19 01:15:26 +02:00
sharing servo_arc cleanups for publishing. 2018-09-18 11:39:54 +02:00
stylesheets Fix various tidy issues. 2018-10-19 01:01:27 +02:00
use_counters Format style component. 2018-09-09 16:24:45 +02:00
values style: Don't allow auto in grid line names. 2018-11-05 12:28:59 +01:00
animation.rs style: Fix servo build and tidy lints. 2018-10-28 23:52:13 +01:00
applicable_declarations.rs Format style component. 2018-09-09 16:24:45 +02:00
attr.rs Format style component. 2018-09-09 16:24:45 +02:00
author_styles.rs Format style component. 2018-09-09 16:24:45 +02: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: Apply rustfmt on build_gecko.rs. 2018-10-19 00:38:58 +02:00
Cargo.toml Auto merge of #21789 - mbrubeck:deps, r=nox 2018-09-23 05:32:17 -04:00
cbindgen.toml style: Generate StyleTimingFunction and drop ns_timing_function.rs. 2018-10-28 23:44:51 +01:00
context.rs Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
custom_properties.rs style: Remove DeclaredValue. 2018-09-18 11:39:31 +02:00
data.rs Format style component. 2018-09-09 16:24:45 +02:00
dom.rs Format style component. 2018-09-09 16:24:45 +02:00
dom_apis.rs style: Add a fast path for querySelector{,All} when we have classes or tags in the rightmost compound. 2018-11-05 12:29:10 +01: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: fix tidy issues and update test expectations. 2018-10-09 22:01:38 +02:00
font_metrics.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
hash.rs style: Convert FnvHash{Set,Map} instances to FxHash{Set,Map}. 2018-08-08 01:34:35 +02:00
lib.rs Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
logical_geometry.rs Format style component. 2018-09-09 16:24:45 +02:00
macros.rs Format style component. 2018-09-09 16:24:45 +02:00
matching.rs Revert "style: Make the transitions code make sense again." 2018-10-19 01:21:04 +02:00
parallel.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
parser.rs Format style component. 2018-09-09 16:24:45 +02:00
README.md
rule_cache.rs style: Convert FnvHash{Set,Map} instances to FxHash{Set,Map}. 2018-08-08 01:34:35 +02:00
scoped_tls.rs
selector_map.rs Format style component. 2018-09-09 16:24:45 +02:00
selector_parser.rs style: Fix servo build. 2018-09-03 12:56:30 +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: Fix servo build and tidy lints. 2018-10-28 23:52:13 +01:00
style_resolver.rs Format style component. 2018-09-09 16:24:45 +02:00
stylesheet_set.rs Format style component. 2018-09-09 16:24:45 +02:00
stylist.rs style: Clear host rules from clear_cascade_data. 2018-10-19 00:39:41 +02:00
thread_state.rs Bump bitflags to 1.0 in every servo crate 2017-10-30 23:36:06 +01:00
timer.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
traversal.rs Format style component. 2018-09-09 16:24:45 +02:00
traversal_flags.rs style: Get rid of unstyled children only traversals. 2017-11-20 08:24:08 +01:00

servo-style

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