зеркало из https://github.com/mozilla/gecko-dev.git
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
This commit is contained in:
Родитель
39c56580df
Коммит
163ef31b74
|
@ -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++;
|
||||
|
|
Загрузка…
Ссылка в новой задаче