Commit e389ea6a authored by Timothy Nikkel's avatar Timothy Nikkel
Browse files

Bug 1728702. Use IsRootContentDocumentCrossProcess in...

Bug 1728702. Use IsRootContentDocumentCrossProcess in ScrollFrameHelper::AppendScrollPartsTo. r=botond

This code clearly only wants to handle the case where there is zooming and the scrollbar sizes have a bound (screen size or maximum window size from OS).

Differential Revision: https://phabricator.services.mozilla.com/D124284
parent 9d236f87
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3395,14 +3395,14 @@ void ScrollFrameHelper::AppendScrollPartsTo(nsDisplayListBuilder* aBuilder,
    // this for the root scrollframe of the root content document, which is
    // zoomable, and where the scrollbar sizes are bounded by the widget.
    const nsRect visible =
        mIsRoot && mOuter->PresContext()->IsRootContentDocument()
        mIsRoot && mOuter->PresContext()->IsRootContentDocumentCrossProcess()
            ? scrollParts[i]->InkOverflowRectRelativeToParent()
            : aBuilder->GetVisibleRect();
    if (visible.IsEmpty()) {
      continue;
    }
    const nsRect dirty =
        mIsRoot && mOuter->PresContext()->IsRootContentDocument()
        mIsRoot && mOuter->PresContext()->IsRootContentDocumentCrossProcess()
            ? scrollParts[i]->InkOverflowRectRelativeToParent()
            : aBuilder->GetDirtyRect();