aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/fragment.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/fragment.rs')
-rw-r--r--components/layout/fragment.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs
index 469cb0b6654..c97ad052497 100644
--- a/components/layout/fragment.rs
+++ b/components/layout/fragment.rs
@@ -2102,11 +2102,11 @@ impl Fragment {
}
/// Returns true if this fragment unconditionally layerizes.
- pub fn needs_layer(&self) -> bool {
+ pub fn needs_layered_stacking_context(&self) -> bool {
// Canvas and iframes always layerize, as an special case
// FIXME(pcwalton): Don't unconditionally form stacking contexts for each canvas.
match self.specific {
- SpecificFragmentInfo::Canvas(_) | SpecificFragmentInfo::Iframe(_) => true,
+ SpecificFragmentInfo::Canvas(_) => true,
_ => false,
}
}
@@ -2135,7 +2135,7 @@ impl Fragment {
transform_style::T::auto => {}
}
- if self.needs_layer() {
+ if self.needs_layered_stacking_context() {
return true
}