Bug 1398379 part 2: Remove GetRootScrollFrameAsScrollableExternal() since it has no more callers. r?mats
MozReview-Commit-ID: 5m6p7sS2jRS
--- a/layout/base/PresShell.cpp
+++ b/layout/base/PresShell.cpp
@@ -2500,22 +2500,16 @@ nsIPresShell::GetRootScrollFrameAsScroll
if (!frame)
return nullptr;
nsIScrollableFrame* scrollableFrame = do_QueryFrame(frame);
NS_ASSERTION(scrollableFrame,
"All scroll frames must implement nsIScrollableFrame");
return scrollableFrame;
}
-nsIScrollableFrame*
-nsIPresShell::GetRootScrollFrameAsScrollableExternal() const
-{
- return GetRootScrollFrameAsScrollable();
-}
-
nsIPageSequenceFrame*
PresShell::GetPageSequenceFrame() const
{
nsIFrame* frame = mFrameConstructor->GetPageSequenceFrame();
return do_QueryFrame(frame);
}
nsCanvasFrame*
--- a/layout/base/nsIPresShell.h
+++ b/layout/base/nsIPresShell.h
@@ -405,22 +405,16 @@ public:
*/
nsIFrame* GetRootScrollFrame() const;
/*
* The same as GetRootScrollFrame, but returns an nsIScrollableFrame
*/
nsIScrollableFrame* GetRootScrollFrameAsScrollable() const;
- /*
- * The same as GetRootScrollFrame, but returns an nsIScrollableFrame.
- * Can be called by code not linked into gklayout.
- */
- virtual nsIScrollableFrame* GetRootScrollFrameAsScrollableExternal() const;
-
/**
* Get the current focused content or DOM selection that should be the
* target for scrolling.
*/
already_AddRefed<nsIContent> GetContentForScrolling() const;
/**
* Get the DOM selection that should be the target for scrolling, if there