From 163ef31b7485a69a5f34750e858183d0cdea2104 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Thu, 6 Aug 2020 22:57:24 +0000 Subject: [PATCH] Bug 1657515 - Rename `pageFrame` to `sheetFrame` in PrintPreviewScrollToPage. r=TYLin Since bug 1652278, it's not a page frame. Differential Revision: https://phabricator.services.mozilla.com/D86148 --- layout/base/nsDocumentViewer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp index 019942aecb51..0fcebad0b048 100644 --- a/layout/base/nsDocumentViewer.cpp +++ b/layout/base/nsDocumentViewer.cpp @@ -3280,13 +3280,13 @@ nsDocumentViewer::PrintPreviewScrollToPage(int16_t aType, int32_t aPageNum) { // Now, locate the current page we are on and // and the page of the page number - for (nsIFrame* pageFrame : seqFrame->PrincipalChildList()) { - nsRect pageRect = pageFrame->GetRect(); - if (pageRect.Contains(pageRect.x, currentScrollPosition.y)) { - currentPage = pageFrame; + for (nsIFrame* sheetFrame : seqFrame->PrincipalChildList()) { + nsRect sheetRect = sheetFrame->GetRect(); + if (sheetRect.Contains(sheetRect.x, currentScrollPosition.y)) { + currentPage = sheetFrame; } if (pageNum == aPageNum) { - fndPageFrame = pageFrame; + fndPageFrame = sheetFrame; break; } pageNum++;