Bug 1321166 - Wrap DetailsFrame's definition and implementation in mozilla namespace. r=dholbert
authorTing-Yu Lin <tlin@mozilla.com>
Thu, 01 Dec 2016 13:18:03 +0800
changeset 324912 e36b4963793fe08d4c6f7d02a6fe753a72a0c86a
parent 324909 1fa4b27c956ff3d0a471aaf0efa7e03d4162b560
child 324913 8b1670f7a0b4b1103b3d88be98c61d0d7a9ba01d
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersdholbert
bugs1321166
milestone53.0a1
Bug 1321166 - Wrap DetailsFrame's definition and implementation in mozilla namespace. r=dholbert MozReview-Commit-ID: 24cUKrWKRe
layout/generic/DetailsFrame.cpp
layout/generic/DetailsFrame.h
--- a/layout/generic/DetailsFrame.cpp
+++ b/layout/generic/DetailsFrame.cpp
@@ -23,16 +23,18 @@ NS_QUERYFRAME_HEAD(DetailsFrame)
 NS_QUERYFRAME_TAIL_INHERITING(nsBlockFrame)
 
 nsBlockFrame*
 NS_NewDetailsFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
 {
   return new (aPresShell) DetailsFrame(aContext);
 }
 
+namespace mozilla {
+
 DetailsFrame::DetailsFrame(nsStyleContext* aContext)
   : nsBlockFrame(aContext)
 {
 }
 
 DetailsFrame::~DetailsFrame()
 {
 }
@@ -124,8 +126,10 @@ DetailsFrame::CreateAnonymousContent(nsT
 void
 DetailsFrame::AppendAnonymousContentTo(nsTArray<nsIContent*>& aElements,
                                        uint32_t aFilter)
 {
   if (mDefaultSummary) {
     aElements.AppendElement(mDefaultSummary);
   }
 }
+
+} // namespace mozilla
--- a/layout/generic/DetailsFrame.h
+++ b/layout/generic/DetailsFrame.h
@@ -8,16 +8,18 @@
 #define DetailsFrame_h
 
 #include "nsBlockFrame.h"
 #include "nsIAnonymousContentCreator.h"
 
 class nsContainerFrame;
 class nsStyleContext;
 
+namespace mozilla {
+
 // DetailsFrame is generated by HTMLDetailsElement. See
 // nsCSSFrameConstructor::ConstructDetailsFrame for the structure of a
 // DetailsFrame.
 //
 class DetailsFrame final : public nsBlockFrame
                          , public nsIAnonymousContentCreator
 {
 public:
@@ -54,9 +56,11 @@ public:
 
   void AppendAnonymousContentTo(nsTArray<nsIContent*>& aElements,
                                 uint32_t aFilter) override;
 
 private:
   nsCOMPtr<nsIContent> mDefaultSummary;
 };
 
+} // namespace mozilla
+
 #endif // DetailsFrame_h