Bug 1468582: Remove using namespace statements from layout. r?mats
MozReview-Commit-ID: WF23cUiHFH
--- a/layout/svg/nsSVGImageFrame.h
+++ b/layout/svg/nsSVGImageFrame.h
@@ -21,21 +21,16 @@
#include "SVGContentUtils.h"
#include "SVGGeometryFrame.h"
#include "SVGImageContext.h"
#include "mozilla/dom/SVGImageElement.h"
#include "nsContentUtils.h"
#include "nsIReflowCallback.h"
#include "mozilla/Unused.h"
-using namespace mozilla;
-using namespace mozilla::dom;
-using namespace mozilla::gfx;
-using namespace mozilla::image;
-
class nsSVGImageFrame;
class nsSVGImageListener final : public imgINotificationObserver
{
public:
explicit nsSVGImageListener(nsSVGImageFrame *aFrame);
NS_DECL_ISUPPORTS
--- a/layout/tables/nsTableFrame.h
+++ b/layout/tables/nsTableFrame.h
@@ -29,18 +29,16 @@ namespace mozilla {
class WritingMode;
class LogicalMargin;
struct TableReflowInput;
namespace layers {
class StackingContextHelper;
}
} // namespace mozilla
-using namespace mozilla;
-
struct BCPropertyData;
static inline bool
IS_TABLE_CELL(mozilla::LayoutFrameType frameType)
{
return frameType == mozilla::LayoutFrameType::TableCell ||
frameType == mozilla::LayoutFrameType::BCTableCell;
}
--- a/layout/xul/nsListItemFrame.cpp
+++ b/layout/xul/nsListItemFrame.cpp
@@ -10,16 +10,18 @@
#include "nsCOMPtr.h"
#include "nsNameSpaceManager.h"
#include "nsGkAtoms.h"
#include "nsDisplayList.h"
#include "nsBoxLayout.h"
#include "nsIContent.h"
+using namespace mozilla;
+
nsListItemFrame::nsListItemFrame(ComputedStyle* aStyle,
bool aIsRoot,
nsBoxLayout* aLayoutManager)
: nsGridRowLeafFrame(aStyle, aIsRoot, aLayoutManager, kClassID)
{
}
nsListItemFrame::~nsListItemFrame()
--- a/layout/xul/nsListItemFrame.h
+++ b/layout/xul/nsListItemFrame.h
@@ -2,20 +2,18 @@
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/Attributes.h"
#include "nsGridRowLeafFrame.h"
-using namespace mozilla;
-
nsIFrame* NS_NewListItemFrame(nsIPresShell* aPresShell,
- ComputedStyle* aStyle);
+ mozilla::ComputedStyle* aStyle);
class nsListItemFrame final : public nsGridRowLeafFrame
{
public:
NS_DECL_FRAMEARENA_HELPERS(nsListItemFrame)
friend nsIFrame* NS_NewListItemFrame(nsIPresShell* aPresShell,
ComputedStyle* aStyle);