diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-09-18 04:18:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-18 04:18:17 -0500 |
commit | 1da581f49b039d5eda5fa618fc41905d444c4885 (patch) | |
tree | 53a105e8e96e270ac4cd2da8dda89db029be9929 /components/layout/table.rs | |
parent | 672eb18b64ca47f2dd2de72724319d76885dba9c (diff) | |
parent | 7429b7dcd9ef3a2b21013bd394fc369c654efbd4 (diff) | |
download | servo-1da581f49b039d5eda5fa618fc41905d444c4885.tar.gz servo-1da581f49b039d5eda5fa618fc41905d444c4885.zip |
Auto merge of #18506 - mrobinson:position-sticky-table, r=emilio
Fix issues with the combination of position:sticky and tables
<!-- 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 #18441 (github issue number if applicable).
<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- 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/18506)
<!-- Reviewable:end -->
Diffstat (limited to 'components/layout/table.rs')
-rw-r--r-- | components/layout/table.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout/table.rs b/components/layout/table.rs index 76708ddf649..a0c7c69ce85 100644 --- a/components/layout/table.rs +++ b/components/layout/table.rs @@ -11,7 +11,7 @@ use block::{BlockFlow, CandidateBSizeIterator, ISizeAndMarginsComputer}; use block::{ISizeConstraintInput, ISizeConstraintSolution}; use context::LayoutContext; use display_list_builder::{BlockFlowDisplayListBuilding, BorderPaintingMode}; -use display_list_builder::{DisplayListBuildState, EstablishContainingBlock}; +use display_list_builder::{DisplayListBuildState, StackingContextCollectionFlags}; use display_list_builder::StackingContextCollectionState; use euclid::Point2D; use flow; @@ -500,7 +500,8 @@ impl Flow for TableFlow { } fn collect_stacking_contexts(&mut self, state: &mut StackingContextCollectionState) { - self.block_flow.collect_stacking_contexts_for_block(state, EstablishContainingBlock::Yes); + self.block_flow.collect_stacking_contexts_for_block(state, + StackingContextCollectionFlags::empty()); } fn repair_style(&mut self, new_style: &::ServoArc<ComputedValues>) { |