Bug 945203. Part 5: Remove anonymous namespace. r=mattwoodrow
authorRobert O'Callahan <robert@ocallahan.org>
Tue, 17 Dec 2013 01:04:03 +1300
changeset 161853 0dcfe3e28c2eba0aaf74c58ee2d679dd05bbc403
parent 161852 6e20a8ceebb7dae806f4d81e6b431cfb33f8ddcd
child 161854 3e7a7130adf2028d92296abca4886517566b0089
push idunknown
push userunknown
push dateunknown
reviewersmattwoodrow
bugs945203
milestone29.0a1
Bug 945203. Part 5: Remove anonymous namespace. r=mattwoodrow
layout/base/FrameLayerBuilder.cpp
--- a/layout/base/FrameLayerBuilder.cpp
+++ b/layout/base/FrameLayerBuilder.cpp
@@ -203,18 +203,16 @@ public:
 
 /* static */ void
 FrameLayerBuilder::DestroyDisplayItemDataFor(nsIFrame* aFrame)
 {
   FrameProperties props = aFrame->Properties();
   props.Delete(LayerManagerDataProperty());
 }
 
-namespace {
-
 // a global cache of image containers used for mask layers
 static MaskLayerImageCache* gMaskLayerImageCache = nullptr;
 
 static inline MaskLayerImageCache* GetMaskLayerImageCache()
 {
   if (!gMaskLayerImageCache) {
     gMaskLayerImageCache = new MaskLayerImageCache();
   }
@@ -800,18 +798,16 @@ MaskLayerUserData* GetMaskLayerUserData(
 }
 
 ThebesDisplayItemLayerUserData* GetThebesDisplayItemLayerUserData(Layer* aLayer)
 {
   return static_cast<ThebesDisplayItemLayerUserData*>(
     aLayer->GetUserData(&gThebesDisplayItemLayerUserData));
 }
 
-} // anonymous namespace
-
 /* static */ void
 FrameLayerBuilder::Shutdown()
 {
   if (gMaskLayerImageCache) {
     delete gMaskLayerImageCache;
     gMaskLayerImageCache = nullptr;
   }
 }