Bug 1304598 Part 5 - Move ViewportFrame to mozilla namespace. r=dholbert

MozReview-Commit-ID: CbQAesikfoO

--HG--
extra : rebase_source : 02d3b811561e0be9128a84daa74dae26b3791317
This commit is contained in:
Ting-Yu Lin 2016-11-30 11:14:28 +08:00
parent 3a0b73989e
commit bdd68c6c0c
3 changed files with 8 additions and 3 deletions

View File

@ -23,6 +23,9 @@ class nsIURI;
class nsIPresShell;
class nsIChannel;
class nsTableColFrame;
namespace mozilla {
class ViewportFrame;
} // namespace mozilla
// These are all the block specific frame bits, they are copied from
// the prev-in-flow to a newly created next-in-flow, except for the
@ -81,8 +84,7 @@ NS_NewSubDocumentFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
nsIFrame*
NS_NewHTMLFramesetFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
class ViewportFrame;
ViewportFrame*
mozilla::ViewportFrame*
NS_NewViewportFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
class nsCanvasFrame;
nsCanvasFrame*

View File

@ -11,7 +11,7 @@ class nsPageFrame;
class nsSharedPageData;
// Page frame class used by the simple page sequence frame
class nsPageContentFrame : public ViewportFrame {
class nsPageContentFrame : public mozilla::ViewportFrame {
public:
NS_DECL_FRAMEARENA_HELPERS

View File

@ -16,6 +16,8 @@
class nsPresContext;
namespace mozilla {
/**
* ViewportFrame is the parent of a single child - the doc root frame or a scroll frame
* containing the doc root frame. ViewportFrame stores this child in its primary child
@ -104,5 +106,6 @@ protected:
nsPoint AdjustReflowInputForScrollbars(ReflowInput* aReflowInput) const;
};
} // namespace mozilla
#endif // nsViewportFrame_h___