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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user