diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-07-11 16:19:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-11 16:19:52 -0700 |
commit | 9b01a4cc97af29b81f92a403992d0498d4290f4f (patch) | |
tree | 30f502e167ee2634ea847c657e6c54446bcc8fe5 /components/script/task_source | |
parent | 184b1ba91b5e73d4bbeacc9093f31f4c8570c0f4 (diff) | |
parent | d40e6c573822ca86ebc60a04ef12cac2cfed7d81 (diff) | |
download | servo-9b01a4cc97af29b81f92a403992d0498d4290f4f.tar.gz servo-9b01a4cc97af29b81f92a403992d0498d4290f4f.zip |
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 -->
Diffstat (limited to 'components/script/task_source')
0 files changed, 0 insertions, 0 deletions