servo/components/style
bors-servo 9b01a4cc97 Auto merge of #12382 - stshine:anonymous-block, r=SimonSapin
layout: Clear non-inherited properties on anonymous block

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

This is one of my pull requests that imlement basic flexible box layout.
This pull request adds a `modify_style_for_anonymous_flow()` function to use initial values for non-inherited properties and parent values for inherited properties as the flow style. It also set border and outline to zero and set the display property from the parameter. This function may also be reused to modify style of anonymous table object in the future.
Part of code comes from `cascade_anonymous()` from @SimonSapin .

---
<!-- 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 flexbox is not implemented yet.

<!-- 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/12382)
<!-- Reviewable:end -->
2016-07-11 16:19:52 -07:00
..
properties Auto merge of #12382 - stshine:anonymous-block, r=SimonSapin 2016-07-11 16:19:52 -07:00
animation.rs Fix a build warning in animation.rs. 2016-07-08 16:44:50 +02:00
attr.rs Move util::str to style 2016-07-05 10:43:54 +02:00
bezier.rs Move util::bezier to style 2016-02-14 19:45:24 +01:00
build.rs Detect python2.7.exe on windows 2016-07-08 18:50:59 +10:00
cache.rs Move util::cache to style. 2016-07-08 16:44:47 +02:00
Cargo.toml Upgrade rust-selectors. 2016-07-05 18:03:40 -07:00
context.rs style: Remove the Mutex from new_animations_sender by moving it to the local StyleContext. 2016-07-01 13:48:06 -07:00
custom_properties.rs Add some documentation to the style crate. 2016-06-27 17:33:14 +02:00
data.rs Add some documentation to the style crate. 2016-06-27 17:33:14 +02:00
dom.rs Remove get_attr from TElement. \o/ 2016-07-05 18:03:41 -07:00
element_state.rs Add some documentation to the style crate. 2016-06-27 17:33:14 +02:00
error_reporting.rs Add some documentation to the style crate. 2016-06-27 17:33:14 +02:00
font_face.rs Add some documentation to the style crate. 2016-06-27 17:33:14 +02:00
keyframes.rs style: Fix timing-function overriding from the keyframe declaration list. 2016-07-07 16:05:28 -07:00
lib.rs Move arc_ptr_eq to style. 2016-07-11 12:13:12 +02:00
logical_geometry.rs Make the style crate almost build on stable Rust. 2016-06-22 15:44:13 +02:00
matching.rs Move arc_ptr_eq to style. 2016-07-11 12:13:12 +02:00
media_queries.rs Move some unit type definitions to style_traits. 2016-07-11 12:14:27 +02:00
parallel.rs Move util::workqueue to style 2016-07-04 21:56:09 +02:00
parser.rs Add some documentation to the style crate. 2016-06-27 17:33:14 +02:00
README.md docs: Add style overview. 2016-05-04 00:34:03 +02:00
refcell.rs Add commit hash to be reverted in FIXME comment. 2016-06-23 16:14:33 +02:00
restyle_hints.rs Upgrade rust-selectors. 2016-07-05 18:03:40 -07:00
selector_impl.rs Upgrade rust-selectors. 2016-07-05 18:03:40 -07:00
selector_matching.rs Upgrade rust-selectors. 2016-07-05 18:03:40 -07:00
sequential.rs Remove lifetimes from T{Node,Element,Document}. 2016-03-14 14:31:57 -07:00
servo.rs style: Remove the Mutex from new_animations_sender by moving it to the local StyleContext. 2016-07-01 13:48:06 -07:00
sink.rs Move util::vec::ForgetfulSink to style::sink and simplify it 2016-07-04 16:48:14 +02:00
str.rs Move util::str to style 2016-07-05 10:43:54 +02:00
stylesheets.rs Make geckolib possible to build on stable Rust 2016-07-05 15:37:16 +02:00
tid.rs Move util::tid to style 2016-07-05 10:36:38 +02:00
traversal.rs Move util::tid to style 2016-07-05 10:36:38 +02:00
values.rs style: remove is_servo(), as_servo() and as_servo_mut() 2016-07-01 14:22:53 -07:00
viewport.rs Move some unit type definitions to style_traits. 2016-07-11 12:14:27 +02:00
workqueue.rs Move util::workqueue to style 2016-07-04 21:56:09 +02:00

servo-style

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