aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/display_list/stacking_context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/display_list/stacking_context.rs')
-rw-r--r--components/layout/display_list/stacking_context.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/components/layout/display_list/stacking_context.rs b/components/layout/display_list/stacking_context.rs
index 0c0def9a563..b044b713260 100644
--- a/components/layout/display_list/stacking_context.rs
+++ b/components/layout/display_list/stacking_context.rs
@@ -530,7 +530,7 @@ impl StackingContext {
if effects.filter.0.is_empty() &&
effects.opacity == 1.0 &&
effects.mix_blend_mode == ComputedMixBlendMode::Normal &&
- !style.has_transform_or_perspective(FragmentFlags::empty()) &&
+ !style.has_effective_transform_or_perspective(FragmentFlags::empty()) &&
style.clone_clip_path() == ClipPath::None
{
return false;
@@ -1477,7 +1477,7 @@ impl BoxFragment {
y: overflow.y.into(),
};
- let content_rect = self.scrollable_overflow().to_webrender();
+ let content_rect = self.reachable_scrollable_overflow_region().to_webrender();
let scroll_tree_node_id = display_list.define_scroll_frame(
parent_scroll_node_id,
@@ -1584,7 +1584,10 @@ impl BoxFragment {
&self,
containing_block_rect: &PhysicalRect<Au>,
) -> Option<ReferenceFrameData> {
- if !self.style.has_transform_or_perspective(self.base.flags) {
+ if !self
+ .style
+ .has_effective_transform_or_perspective(self.base.flags)
+ {
return None;
}