diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-09-15 05:30:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-15 05:30:47 -0500 |
commit | b2df99cb65a585907e59f70081c3b3c15317b11a (patch) | |
tree | b9eed7b94d34b0c48dba3fe55a9a896efe619e2f /components/layout/sequential.rs | |
parent | 70a6b2fa91ed377ce5d0d1696bfb1503be8aa454 (diff) | |
parent | cedc7ebc53af6b31209095535ff8f04492661a86 (diff) | |
download | servo-b2df99cb65a585907e59f70081c3b3c15317b11a.tar.gz servo-b2df99cb65a585907e59f70081c3b3c15317b11a.zip |
Auto merge of #18462 - mrobinson:cleanup-building-state, r=emilio
Do some minor cleanups in display list building
<!-- 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 should not change behavior.
<!-- 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/18462)
<!-- Reviewable:end -->
Diffstat (limited to 'components/layout/sequential.rs')
-rw-r--r-- | components/layout/sequential.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout/sequential.rs b/components/layout/sequential.rs index 6673ecc8e14..86a7d90142f 100644 --- a/components/layout/sequential.rs +++ b/components/layout/sequential.rs @@ -6,7 +6,7 @@ use app_units::Au; use context::LayoutContext; -use display_list_builder::DisplayListBuildState; +use display_list_builder::{DisplayListBuildState, StackingContextCollectionState}; use euclid::{Point2D, Vector2D}; use floats::SpeculatedFloatPlacement; use flow::{self, Flow, ImmutableFlowUtils, IS_ABSOLUTELY_POSITIONED}; @@ -69,9 +69,10 @@ pub fn reflow(root: &mut Flow, layout_context: &LayoutContext, relayout_mode: Re pub fn build_display_list_for_subtree<'a>(flow_root: &mut Flow, layout_context: &'a LayoutContext) -> DisplayListBuildState<'a> { - let mut state = DisplayListBuildState::new(layout_context); + let mut state = StackingContextCollectionState::new(layout_context.id); flow_root.collect_stacking_contexts(&mut state); + let state = DisplayListBuildState::new(layout_context, state); let mut build_display_list = BuildDisplayList { state: state, }; |