servo/components/style
bors-servo 7d785e75cd Auto merge of #17447 - emilio:root-disconnected-subtree, r=heycam,Manishearth
style: Be more strict when setting the root font size.

Before this commit, we assumed that if the element had no parent element, it was
the root of the document, which is plain false, since we can arrive there from,
let's say, getComputedStyle on a detached node.

Bug: 1374062
Reviewed-By: heycam
MozReview-Commit-ID: 65DxdzXgd0J

<!-- 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/17447)
<!-- Reviewable:end -->
2017-06-22 04:17:04 -07:00
..
counter_style style: Have OneOrMoreSeparated replace OneOrMoreCommaSeparated. 2017-06-19 16:09:37 -07:00
gecko Auto merge of #17447 - emilio:root-disconnected-subtree, r=heycam,Manishearth 2017-06-22 04:17:04 -07:00
gecko_bindings Use generics for the filter property 2017-06-20 13:48:53 +02:00
gecko_string_cache style: Clean up after #17427. 2017-06-20 15:42:23 +02:00
invalidation Auto merge of #17443 - emilio:smallwat, r=SimonSapin 2017-06-22 00:14:38 -07:00
properties Auto merge of #17447 - emilio:root-disconnected-subtree, r=heycam,Manishearth 2017-06-22 04:17:04 -07:00
rule_tree style: Don't use SmallVec::into_iter to move into another vector. 2017-06-21 01:39:15 +02:00
servo Untry style 2017-06-18 13:18:13 +02:00
sharing style: Inline RestyleData. 2017-06-16 03:36:18 +02:00
stylesheets style: Assert we never style a root element from another document. 2017-06-21 19:55:02 +02:00
values Auto merge of #17447 - emilio:root-disconnected-subtree, r=heycam,Manishearth 2017-06-22 04:17:04 -07:00
animation.rs style: Be more strict when setting the root font size. 2017-06-21 13:28:57 +02:00
applicable_declarations.rs Hoist ApplicableDeclaration{Block,List} into a separate file. 2017-06-12 12:13:21 -07:00
attr.rs Untry style 2017-06-18 13:18:13 +02:00
bezier.rs Bump euclid to 0.14. 2017-06-14 16:00:59 +02:00
bloom.rs style: Distinguish between the tree structures used for traversal and selector matching. 2017-06-09 18:37:35 +08:00
build.rs Auto merge of #16935 - servo:out-of-crate-bindings-tests, r=emilio 2017-05-19 03:48:14 -05:00
build_gecko.rs style: Update bindgen. 2017-06-21 01:27:14 +02:00
cache.rs Adapt LRUCache to use ArrayDeque crate instead of VecDeque 2017-06-03 20:59:01 +02:00
Cargo.toml style: Update bindgen. 2017-06-21 01:27:14 +02:00
cascade_info.rs Remove style::values::HasViewportPercentage reexport 2017-05-20 22:00:05 +02:00
context.rs Untry style 2017-06-18 13:18:13 +02:00
custom_properties.rs Untry style 2017-06-18 13:18:13 +02:00
data.rs style: Inline RestyleData. 2017-06-16 03:36:18 +02:00
dom.rs Auto merge of #17447 - emilio:root-disconnected-subtree, r=heycam,Manishearth 2017-06-22 04:17:04 -07:00
element_state.rs Add pseudo-classes to match on the state of the "dir" attribute. 2017-06-19 22:09:03 -04:00
encoding_support.rs Bug 1331291 part 1 - Set stylesheet url_data correctly for import rule. 2017-06-13 10:07:06 +10:00
error_reporting.rs Upgrade cssparser to 0.15 2017-06-16 15:05:46 +02:00
font_face.rs stylo: make font-weight descriptor in @font-face preserve keyword values 2017-06-20 15:28:39 +02:00
font_metrics.rs stylo: Use gecko's font metrics 2017-04-10 14:29:51 +08:00
lib.rs Hoist sink into selectors. 2017-06-20 11:59:10 -07:00
logical_geometry.rs Untry style 2017-06-18 13:18:13 +02:00
macros.rs Derive ToCss for keyword structs 2017-06-17 13:46:33 +02:00
matching.rs style: Assert we never style a root element from another document. 2017-06-21 19:55:02 +02:00
media_queries.rs Untry style 2017-06-18 13:18:13 +02:00
parallel.rs Use ArrayVec and tweak the SmallVec sizes. 2017-06-14 22:50:44 -07:00
parser.rs style: Have OneOrMoreSeparated replace OneOrMoreCommaSeparated. 2017-06-19 16:09:37 -07:00
README.md
scoped_tls.rs Reduce the size of top_down_dom stackframes. 2017-06-08 13:02:36 -04:00
selector_map.rs Account for left-to-right rather than right-to-left precedence of classes in selector maps. 2017-06-20 11:59:12 -07:00
selector_parser.rs Thread ParseError return values through CSS parsing. 2017-06-09 16:46:25 -04:00
sequential.rs style: Distinguish between the tree structures used for traversal and selector matching. 2017-06-09 18:37:35 +08:00
shared_lock.rs style: Split stylesheets.rs 2017-06-04 21:50:09 +02:00
str.rs Support vendor prefix keyframes rule. 2017-04-21 12:18:12 +09:00
style_adjuster.rs style: Be more strict when setting the root font size. 2017-06-21 13:28:57 +02:00
stylesheet_set.rs Add an update_stylesheet method to StylesheetSet. 2017-06-20 12:24:39 -07:00
stylist.rs Hoist sink into selectors. 2017-06-20 11:59:10 -07:00
thread_state.rs Tidy up rust code with regard to new rule (no = in beginning of line) 2017-01-06 20:57:16 +01:00
timer.rs style: Document the timer module. 2016-12-31 12:17:04 +01:00
traversal.rs Don't traverse any elements that needed only for animation-only restyles in normal traversal. 2017-06-19 15:01:17 +09:00

servo-style

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