aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/inline.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2015-10-09 17:08:35 -0700
committerMartin Robinson <mrobinson@igalia.com>2015-10-20 07:29:06 -0700
commitac5525aeeb3df60a99b503fa75f919c93c50b43b (patch)
tree99f867cb70aeb0c549ade092dbd6624efe879dcd /components/layout/inline.rs
parent90dd3cdc095d7bf54435f0fcb8a6fe134b00fc24 (diff)
downloadservo-ac5525aeeb3df60a99b503fa75f919c93c50b43b.tar.gz
servo-ac5525aeeb3df60a99b503fa75f919c93c50b43b.zip
Integrate iframes into the display list
Instead of always promoting iframes to StackingContexts, integrate them into the display list. This prevents stacking bugs when non-stacking-context elements should be drawn on top of iframes. To accomplish this, we add another step to ordering layer creation, where LayeredItems in the DisplayList are added to layers described by the LayerInfo structures collected at the end of the DisplayList. Unlayered items that follow these layered items are added to synthesized layers. Another result of this change is that iframe layers can be positioned directly at the location of the iframe fragment, eliminating the need for the SubpageLayerInfo struct entirely. Iframes are the first type of content treated this way, but this change opens up the possibility to properly order canvas and all other layered content that does not create a stacking context. Fixes #7566. Fixes #7796.
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r--components/layout/inline.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs
index 73c9fc32489..dff344283b2 100644
--- a/components/layout/inline.rs
+++ b/components/layout/inline.rs
@@ -1504,7 +1504,7 @@ impl Flow for InlineFlow {
for fragment_index in line.range.each_index() {
let fragment = &mut self.fragments.fragments[fragment_index.to_usize()];
- if fragment.needs_layer() && !fragment.is_positioned() {
+ if fragment.needs_layered_stacking_context() && !fragment.is_positioned() {
layers_needed_for_descendants = true
}