Bug 1321166 - Wrap DetailsFrame's definition and implementation in mozilla namespace. r=dholbert

MozReview-Commit-ID: 24cUKrWKRe

--HG--
extra : rebase_source : f9c1c0bc99bf77a1312fc408e4bc5c352efe0f37
This commit is contained in:
Ting-Yu Lin 2016-12-01 13:18:03 +08:00
parent f812426c42
commit a22cb5f094
2 changed files with 8 additions and 0 deletions

View File

@ -28,6 +28,8 @@ NS_NewDetailsFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
return new (aPresShell) DetailsFrame(aContext);
}
namespace mozilla {
DetailsFrame::DetailsFrame(nsStyleContext* aContext)
: nsBlockFrame(aContext)
{
@ -129,3 +131,5 @@ DetailsFrame::AppendAnonymousContentTo(nsTArray<nsIContent*>& aElements,
aElements.AppendElement(mDefaultSummary);
}
}
} // namespace mozilla

View File

@ -13,6 +13,8 @@
class nsContainerFrame;
class nsStyleContext;
namespace mozilla {
// DetailsFrame is generated by HTMLDetailsElement. See
// nsCSSFrameConstructor::ConstructDetailsFrame for the structure of a
// DetailsFrame.
@ -59,4 +61,6 @@ private:
nsCOMPtr<nsIContent> mDefaultSummary;
};
} // namespace mozilla
#endif // DetailsFrame_h