Bug 1277129 Part 4a - Move ScrollReflowState into mozilla namespace. r=dbaron

MozReview-Commit-ID: C8drnMacxO

--HG--
extra : rebase_source : b0a492d44785c6f2f6afc8aedb8b9cd2dece86b3
This commit is contained in:
Ting-Yu Lin 2016-07-21 18:36:36 +08:00
parent 5246b4bf71
commit 9c26b29bf4
2 changed files with 6 additions and 1 deletions

View File

@ -205,6 +205,8 @@ nsHTMLScrollFrame::GetType() const
All other things being equal, we prefer layouts with fewer scrollbars showing.
*/
namespace mozilla {
struct MOZ_STACK_CLASS ScrollReflowState {
const ReflowInput& mReflowState;
nsBoxLayoutState mBoxState;
@ -234,6 +236,8 @@ struct MOZ_STACK_CLASS ScrollReflowState {
}
};
} // namespace mozilla
// XXXldb Can this go away?
static nsSize ComputeInsideBorderSize(ScrollReflowState* aState,
const nsSize& aDesiredInsideBorderSize)

View File

@ -30,9 +30,9 @@ class nsIContent;
class nsIAtom;
class nsPresState;
class nsIScrollPositionListener;
struct ScrollReflowState;
namespace mozilla {
struct ScrollReflowState;
namespace layers {
class Layer;
} // namespace layers
@ -652,6 +652,7 @@ class nsHTMLScrollFrame : public nsContainerFrame,
public:
typedef mozilla::ScrollFrameHelper ScrollFrameHelper;
typedef mozilla::CSSIntPoint CSSIntPoint;
typedef mozilla::ScrollReflowState ScrollReflowState;
friend nsHTMLScrollFrame* NS_NewHTMLScrollFrame(nsIPresShell* aPresShell,
nsStyleContext* aContext,
bool aIsRoot);