Bug 1824877 Part 3 - Change ScrollContainerFrame's type from Scroll to ScrollContainer. r=dholbert

This effectively changes the `IsScrollFrame()` helper to
`IsScrollContainerFrame()`.

Differential Revision: https://phabricator.services.mozilla.com/D210357
This commit is contained in:
Ting-Yu Lin
2024-05-15 17:50:49 +00:00
parent 27bb908f13
commit b4a0842882
17 changed files with 40 additions and 34 deletions

View File

@@ -2479,7 +2479,7 @@ nsIFrame* PresShell::GetRootScrollFrame() const {
return nullptr;
}
nsIFrame* theFrame = rootFrame->PrincipalChildList().FirstChild();
if (!theFrame || !theFrame->IsScrollFrame()) {
if (!theFrame || !theFrame->IsScrollContainerFrame()) {
return nullptr;
}
return theFrame;