servo/components/style
bors-servo bffe158fa4 Auto merge of #18455 - nnethercote:measure-Arc-Locked-properly, r=jdm
Measure Arc<Locked<T>> fields properly.

Currently when we measure various Arc<Locked<T>> fields we don't measure the T
itself, but only the descendants of the T. This patch fixes this.

This fix requires introducing a new trait, MallocUnconditionalShallowSizeOf,
which is implemented for servo_arc::Arc. A similar trait,
MallocConditionalShallowSizeOf, is also introduced, though it has no uses as
yet.

<!-- Please describe your changes on the following line: -->

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because they are tested 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/18455)
<!-- Reviewable:end -->
2017-09-12 08:40:56 -05:00
..
counter_style Do not use CVAS for the list-style-type property 2017-09-11 18:41:08 +02:00
gecko Auto merge of #18452 - nnethercote:bug-1398737, r=jdm 2017-09-11 22:11:25 -05:00
gecko_bindings Mark the CoordData traits as unsafe 2017-08-28 22:28:20 -07:00
gecko_string_cache Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
invalidation Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
properties Auto merge of #18452 - nnethercote:bug-1398737, r=jdm 2017-09-11 22:11:25 -05:00
rule_tree Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
servo style: Stop the cascade when only reset structs change. 2017-09-06 12:56:29 +02:00
sharing Auto merge of #18420 - servo:toml, r=nox,emilio 2017-09-12 05:01:24 -05:00
stylesheets Measure Arc<Locked<T>> fields properly. 2017-09-12 16:36:28 +10:00
values Auto merge of #18451 - Manishearth:stylo-calc-fontsize, r=emilio 2017-09-11 21:01:57 -05:00
animation.rs Auto merge of #18431 - mbrubeck:pdb-size, r=SimonSapin 2017-09-11 08:57:07 -05:00
applicable_declarations.rs order derivable traits lists 2017-08-23 21:38:44 +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 Un-inline some methods initializing thread_local! … 2017-09-12 11:42:04 +02:00
build.rs use cargo manifest path to find build.py script 2017-09-05 09:31:37 +02:00
build_gecko.rs stylo: Don't add boundary characters to the fixups specified in ServoBindings.toml 2017-09-07 15:37:43 +02:00
cache.rs Encapsulate the sharing cache backend better. 2017-09-11 22:39:34 -07:00
Cargo.toml Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
context.rs Shorten the naming around the style sharing cache. 2017-09-11 22:39:31 -07:00
custom_properties.rs Tidy fixes 2017-09-01 09:53:18 -07:00
data.rs Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
dom.rs stylo: Replace all hashtable collections with ones from style::hash 2017-08-31 16:28:30 -07:00
driver.rs style: Avoid unnecessarily using Borrow. 2017-09-04 13:23:56 +02:00
element_state.rs Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
encoding_support.rs Use cssparser's new_with_line_number_offset 2017-08-28 12:49:30 -06:00
error_reporting.rs stylo: Error reporting for unknown media features 2017-09-08 12:48:50 +02:00
font_face.rs Parse at-rule without block in two stages 2017-09-01 16:21:22 +10:00
font_metrics.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
hash.rs stylo: Add hash module for reexporting HashMap 2017-08-31 16:28:27 -07:00
lib.rs Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
logical_geometry.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
macros.rs Do not use CVAS for specified::Attr 2017-09-11 18:41:12 +02:00
matching.rs style: Remove an unused function. 2017-09-12 08:54:40 +02:00
media_queries.rs stylo: Error reporting for unknown media features 2017-09-08 12:48:50 +02:00
parallel.rs Increase stack safety margin for stylo. 2017-09-07 11:44:45 -07:00
parser.rs Use cssparser's new_with_line_number_offset 2017-08-28 12:49:30 -06: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 Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
selector_parser.rs Measure the stylist during memory reporting. 2017-09-05 19:43:50 +02:00
shared_lock.rs Bypass the lock in get_property_value. 2017-09-05 17:50:03 -07: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 style: Handle correctly display changes from ruby to non-ruby in some edge cases. 2017-09-06 12:56:34 +02:00
style_resolver.rs Auto merge of #18268 - emilio:dirty-viewport-followup, r=SimonSapin 2017-08-29 14:18:58 -05:00
stylesheet_set.rs style: Remove outdated comment. 2017-08-23 14:10:45 +02:00
stylist.rs Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
thread_state.rs
timer.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
traversal.rs Avoid memmoving ValidationData more than necessary. 2017-09-11 22:39:35 -07:00
traversal_flags.rs style: Remove the for reconstruction traversals. 2017-09-01 13:13:50 +02:00

servo-style

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