Bug 1896516 Part 11 - Remove nsIScrollableFrame usages under layout/, widget/, and toolkit/. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D211498
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "mozilla/Maybe.h"
|
||||
#include "mozilla/PresShell.h"
|
||||
#include "mozilla/ScrollContainerFrame.h"
|
||||
#include "mozilla/StaticPrefs_browser.h"
|
||||
#include "mozilla/StaticPrefs_layout.h"
|
||||
#include "mozilla/ToString.h"
|
||||
@@ -45,7 +46,6 @@
|
||||
#include "nsFloatManager.h"
|
||||
#include "prenv.h"
|
||||
#include "nsError.h"
|
||||
#include "nsIScrollableFrame.h"
|
||||
#include <algorithm>
|
||||
#include "nsLayoutUtils.h"
|
||||
#include "nsDisplayList.h"
|
||||
@@ -1126,11 +1126,10 @@ static LogicalSize CalculateContainingBlockSizeForAbsolutes(
|
||||
|
||||
// For scroll containers, we can just use cbSize (which is the padding-box
|
||||
// size of the scrolled-content frame).
|
||||
if (nsIScrollableFrame* scrollFrame = do_QueryFrame(lastRI->mFrame)) {
|
||||
if (lastRI->mFrame->IsScrollContainerOrSubclass()) {
|
||||
// Assert that we're not missing any frames between the abspos containing
|
||||
// block and the scroll container.
|
||||
// the parent.
|
||||
Unused << scrollFrame;
|
||||
MOZ_ASSERT(lastButOneRI == &aReflowInput);
|
||||
return cbSize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user