diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index 0d004e6fe19c..2e9634ec28b2 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -3886,9 +3886,7 @@ Maybe ScrollFrameHelper::ComputeScrollMetadata( mOuter->GetOffsetToCrossDoc(aContainerReferenceFrame); Maybe parentLayerClip; - // For containerful frames, the clip is on the container layer. - if (aClip && - (!gfxPrefs::LayoutUseContainersForRootFrames() || mAddClipRectToLayer)) { + if (aClip && mAddClipRectToLayer) { parentLayerClip = Some(aClip->GetClipRect()); }