зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1516025 part 1: Add "using namespace mozilla::dom" to some SVG C++ files that currently depend on unification to provide that using statement. r=longsonr
These are to support of usages of "SVGElement" in these files, so they problably only started needing this namespace as of bug 1515187. In any case, they're currently relying on picking up this "using" statement from other files in unified builds, so let's just make the usage explicit by giving them their own "using" statement. Also, I'm fixing up the #include for SVGElement.h in these files to use the full mozilla/dom include path (and to make these files include their own .h file first). Differential Revision: https://phabricator.services.mozilla.com/D15231 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
1f6e956e50
Коммит
4ccbf680fa
|
@ -4,7 +4,6 @@
|
|||
* 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 "SVGElement.h"
|
||||
#include "DOMSVGPathSegList.h"
|
||||
#include "DOMSVGPathSeg.h"
|
||||
#include "nsError.h"
|
||||
|
@ -12,8 +11,11 @@
|
|||
#include "nsCOMPtr.h"
|
||||
#include "nsSVGAttrTearoffTable.h"
|
||||
#include "SVGPathSegUtils.h"
|
||||
#include "mozilla/dom/SVGElement.h"
|
||||
#include "mozilla/dom/SVGPathSegListBinding.h"
|
||||
|
||||
using namespace mozilla::dom;
|
||||
|
||||
// See the comment in this file's header.
|
||||
|
||||
namespace mozilla {
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
* 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 "SVGElement.h"
|
||||
#include "DOMSVGPointList.h"
|
||||
#include "DOMSVGPoint.h"
|
||||
#include "nsError.h"
|
||||
|
@ -12,9 +11,12 @@
|
|||
#include "nsCOMPtr.h"
|
||||
#include "nsSVGAttrTearoffTable.h"
|
||||
#include "nsContentUtils.h"
|
||||
#include "mozilla/dom/SVGElement.h"
|
||||
#include "mozilla/dom/SVGPointListBinding.h"
|
||||
#include <algorithm>
|
||||
|
||||
using namespace mozilla::dom;
|
||||
|
||||
// See the comment in this file's header.
|
||||
|
||||
// local helper functions
|
||||
|
|
|
@ -7,12 +7,14 @@
|
|||
#include "SVGAnimatedNumberList.h"
|
||||
|
||||
#include "DOMSVGAnimatedNumberList.h"
|
||||
#include "mozilla/dom/SVGElement.h"
|
||||
#include "mozilla/Move.h"
|
||||
#include "SVGElement.h"
|
||||
#include "nsSVGAttrTearoffTable.h"
|
||||
#include "nsSMILValue.h"
|
||||
#include "SVGNumberListSMILType.h"
|
||||
|
||||
using namespace mozilla::dom;
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
nsresult SVGAnimatedNumberList::SetBaseValueString(const nsAString &aValue) {
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
#include "nsSMILValue.h"
|
||||
#include "SVGPathSegListSMILType.h"
|
||||
|
||||
using namespace mozilla::dom;
|
||||
|
||||
// See the comments in this file's header!
|
||||
|
||||
namespace mozilla {
|
||||
|
|
|
@ -7,12 +7,14 @@
|
|||
#include "SVGAnimatedPointList.h"
|
||||
|
||||
#include "DOMSVGPointList.h"
|
||||
#include "mozilla/dom/SVGElement.h"
|
||||
#include "mozilla/Move.h"
|
||||
#include "SVGElement.h"
|
||||
#include "nsSVGAttrTearoffTable.h"
|
||||
#include "nsSMILValue.h"
|
||||
#include "SVGPointListSMILType.h"
|
||||
|
||||
using namespace mozilla::dom;
|
||||
|
||||
// See the comments in this file's header!
|
||||
|
||||
namespace mozilla {
|
||||
|
|
|
@ -4,19 +4,19 @@
|
|||
* 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/ArrayUtils.h"
|
||||
|
||||
#include "SVGLength.h"
|
||||
#include "SVGElement.h"
|
||||
|
||||
#include "mozilla/ArrayUtils.h"
|
||||
#include "mozilla/dom/SVGElement.h"
|
||||
#include "mozilla/dom/SVGSVGElement.h"
|
||||
#include "nsTextFormatter.h"
|
||||
#include "SVGContentUtils.h"
|
||||
#include <limits>
|
||||
#include <algorithm>
|
||||
|
||||
namespace mozilla {
|
||||
using namespace mozilla::dom;
|
||||
|
||||
using namespace mozilla;
|
||||
namespace mozilla {
|
||||
|
||||
// Declare some helpers defined below:
|
||||
static void GetUnitString(nsAString& unit, uint16_t unitType);
|
||||
|
|
Загрузка…
Ссылка в новой задаче