aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-09-05 15:36:47 -0500
committerGitHub <noreply@github.com>2017-09-05 15:36:47 -0500
commitf1fab036ab16910587c3b0d7813c78b49562f6d9 (patch)
treee059754a4ba82c695e45274b6b9bcea38d8b510e /components/layout/table.rs
parent122e49d516c7c22d8672e40929760b11682df272 (diff)
parentbc455c8a1f5f355323c63e5d1639df2fcaaba5df (diff)
downloadservo-f1fab036ab16910587c3b0d7813c78b49562f6d9.tar.gz
servo-f1fab036ab16910587c3b0d7813c78b49562f6d9.zip
Auto merge of #18212 - mrobinson:position-sticky, r=emilio
Add support for position:sticky This leverages the position:sticky support in WebRender to bring basic support for position:sticky in Servo. There are still some issues with nested sticky flows as well as a few other corner cases. Tests are imported from WPT and can be removed once we update to the latest version. <!-- 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: --> - [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/18212) <!-- Reviewable:end -->
Diffstat (limited to 'components/layout/table.rs')
-rw-r--r--components/layout/table.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout/table.rs b/components/layout/table.rs
index da129747da8..2659b260501 100644
--- a/components/layout/table.rs
+++ b/components/layout/table.rs
@@ -10,7 +10,8 @@ use app_units::Au;
use block::{BlockFlow, CandidateBSizeIterator, ISizeAndMarginsComputer};
use block::{ISizeConstraintInput, ISizeConstraintSolution};
use context::LayoutContext;
-use display_list_builder::{BlockFlowDisplayListBuilding, BorderPaintingMode, DisplayListBuildState};
+use display_list_builder::{BlockFlowDisplayListBuilding, BorderPaintingMode};
+use display_list_builder::{DisplayListBuildState, EstablishContainingBlock};
use euclid::Point2D;
use flow;
use flow::{BaseFlow, EarlyAbsolutePositionInfo, Flow, FlowClass, ImmutableFlowUtils, OpaqueFlow};
@@ -503,7 +504,7 @@ impl Flow for TableFlow {
}
fn collect_stacking_contexts(&mut self, state: &mut DisplayListBuildState) {
- self.block_flow.collect_stacking_contexts(state);
+ self.block_flow.collect_stacking_contexts_for_block(state, EstablishContainingBlock::Yes);
}
fn repair_style(&mut self, new_style: &::ServoArc<ComputedValues>) {