servo/components/style
bors-servo dc654c9912 Auto merge of #18099 - KuoE0:make-empty-rule-can-be-inserted-into-rule-tree, r=emilio
Make emtpy rule can be inserted into rule tree

<!-- Please describe your changes on the following line: -->
We really want to ensure empty rule nodes appear in the rule tree for devtools, this condition ensures that if we find an empty rule node, we insert it at the normal level.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix [Bug 1384802](https://bugzilla.mozilla.org/show_bug.cgi?id=1384802)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because of the test cases are in Gecko.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/18099)
<!-- Reviewable:end -->
2017-08-15 23:11:04 -05:00
..
counter_style Update to cssparser 0.19, count line numbers during tokenization 2017-08-09 22:37:16 +02:00
gecko Update Stylo bindings 2017-08-15 22:09:08 -05:00
gecko_bindings Convert gecko's currentcolor to servo one. 2017-08-15 15:19:47 +09:00
gecko_string_cache stylo: Devirtualize nsIAtom refcounting. 2017-08-09 13:06:11 +02:00
invalidation Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10) 2017-08-15 14:10:44 +02:00
properties Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10) 2017-08-15 14:10:44 +02:00
rule_tree Make emtpy rule can be inserted into rule tree 2017-08-16 11:08:49 +08:00
servo stylo: Remove some unused FFI functions. 2017-08-15 23:57:59 +02:00
sharing Introduce a new flag and use it to be more permissive about cousin sharing. 2017-08-05 01:07:02 -07:00
stylesheets Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10) 2017-08-15 14:10:44 +02:00
values Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10) 2017-08-15 14:10:44 +02:00
animation.rs style: Tweak Stylist API for getting animations to avoid exposing the hash table. 2017-08-09 16:24:49 +08:00
applicable_declarations.rs Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00
attr.rs Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00
bezier.rs Don't use Point2D<f32> for cubic curves anymore 2017-07-19 10:19:41 +02:00
bloom.rs Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00
build.rs Remove testing feature from style crate 2017-08-07 14:30:31 -07:00
build_gecko.rs
cache.rs
Cargo.toml Update to cssparser 0.19, count line numbers during tokenization 2017-08-09 22:37:16 +02:00
cascade_info.rs
context.rs Auto merge of #18017 - heycam:split-cascade, r=emilio 2017-08-09 19:28:07 -05:00
custom_properties.rs Auto merge of #18025 - servo:line-counting, r=jdm 2017-08-09 16:16:33 -05:00
data.rs Avoid leaving stale ANCESTOR_WAS_RECONSTRUCTED bits in the tree. 2017-08-15 14:25:50 -07:00
dom.rs Bonus fix: Be more robust about clearing descendants bits under display:none subtrees. 2017-08-15 14:25:50 -07:00
element_state.rs
encoding_support.rs Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00
error_reporting.rs Update to cssparser 0.19, count line numbers during tokenization 2017-08-09 22:37:16 +02:00
font_face.rs Update to cssparser 0.19, count line numbers during tokenization 2017-08-09 22:37:16 +02:00
font_metrics.rs
lib.rs Drop AnimatedProperty for stylo. 2017-08-09 17:34:55 +09:00
logical_geometry.rs
macros.rs Derive ComputeSquaredDistance 2017-08-13 13:34:04 +02:00
matching.rs Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10) 2017-08-15 14:10:44 +02:00
media_queries.rs Rework MediaType to be an atom-based struct instead of an enum. 2017-08-09 13:25:30 -07:00
parallel.rs Hoist StyleNew{Children,Subtree} into their own paths. 2017-08-11 10:53:08 -07:00
parser.rs Update to cssparser 0.19, count line numbers during tokenization 2017-08-09 22:37:16 +02:00
README.md
scoped_tls.rs
selector_map.rs style: Rework how precomputed pseudo stuff works, to avoid malloc/free churn. 2017-08-08 10:28:02 +02:00
selector_parser.rs style: Use an enumerated array for per-pseudo maps. 2017-08-08 12:40:31 +02:00
sequential.rs Hoist StyleNew{Children,Subtree} into their own paths. 2017-08-11 10:53:08 -07:00
shared_lock.rs Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00
str.rs Rework MediaType to be an atom-based struct instead of an enum. 2017-08-09 13:25:30 -07:00
style_adjuster.rs Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10) 2017-08-15 14:10:44 +02:00
style_resolver.rs Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10) 2017-08-15 14:10:44 +02:00
stylesheet_set.rs style: Only flush stylesheet invalidations for origins that have changed. 2017-08-13 18:51:04 +08:00
stylist.rs stylo: only clear relevant origins when medium features change. 2017-08-14 12:46:43 +02:00
thread_state.rs
timer.rs
traversal.rs Bonus fix: Be more robust about clearing descendants bits under display:none subtrees. 2017-08-15 14:25:50 -07:00
traversal_flags.rs Process normal traversal for throttled animation flush as well. 2017-08-11 18:52:29 -07:00

servo-style

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