gecko-dev/layout/svg
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
..
crashtests
tests Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
AutoReferenceChainGuard.h Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
SVGContextPaint.cpp Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
SVGContextPaint.h Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
SVGFEContainerFrame.cpp Bug 1515936 - Part 2 Move nsSVGStringInfo to mozilla::dom and rename the nsSVGFilters files to SVGFilters r=dholbert 2018-12-21 16:24:17 +00:00
SVGFEImageFrame.cpp Bug 1515936 - Part 2 Move nsSVGStringInfo to mozilla::dom and rename the nsSVGFilters files to SVGFilters r=dholbert 2018-12-21 16:24:17 +00:00
SVGFELeafFrame.cpp Bug 1515936 - Part 2 Move nsSVGStringInfo to mozilla::dom and rename the nsSVGFilters files to SVGFilters r=dholbert 2018-12-21 16:24:17 +00:00
SVGFEUnstyledLeafFrame.cpp Bug 1515936 - Part 2 Move nsSVGStringInfo to mozilla::dom and rename the nsSVGFilters files to SVGFilters r=dholbert 2018-12-21 16:24:17 +00:00
SVGGeometryFrame.cpp Bug 1523069 - Move nsSVGMark to the mozilla namespace. r=jwatt 2019-01-26 13:01:31 +00:00
SVGGeometryFrame.h
SVGImageContext.cpp
SVGImageContext.h Bug 1516921 - export things in the mozilla namespace properly r=jwatt 2018-12-31 11:56:52 +00:00
SVGObserverUtils.cpp Bug 1523069 - Move nsSVGMark to the mozilla namespace. r=jwatt 2019-01-26 13:01:31 +00:00
SVGObserverUtils.h
SVGTextFrame.cpp Bug 1519144 - Apply context scale when inflating mRect of SVG text. r=longsonr 2019-01-16 19:55:24 -07:00
SVGTextFrame.h
SVGViewFrame.cpp
moz.build
nsCSSClipPathInstance.cpp Bug 1518000 - Move nsSVGString and nsSVGViewBox to the mozilla namespace r=jwatt 2019-01-06 17:52:55 +00:00
nsCSSClipPathInstance.h
nsCSSFilterInstance.cpp
nsCSSFilterInstance.h
nsFilterInstance.cpp Bug 1522021. Propagate input size to CreateSimilarDrawTarget for filters. r=mstange 2019-01-27 23:36:04 +00:00
nsFilterInstance.h Bug 1522021. Propagate input size to CreateSimilarDrawTarget for filters. r=mstange 2019-01-27 23:36:04 +00:00
nsISVGSVGFrame.h
nsSVGAFrame.cpp
nsSVGClipPathFrame.cpp Backed out changeset c796403f5a29 since it landed with wrong bug number 2019-01-02 10:44:12 -08:00
nsSVGClipPathFrame.h
nsSVGContainerFrame.cpp Bug 1516076 - Part 3 rename nsSVGAnimatedTransformList to SVGAnimatedTransformList and move it to the mozilla namespace r=dholbert 2018-12-26 23:46:38 +00:00
nsSVGContainerFrame.h
nsSVGDisplayableFrame.h Bug 1511854 - Part 1: Fix some formatting oddities in layout/ after the clang-format. r=TYLin 2018-12-05 18:44:03 +00:00
nsSVGFilterFrame.cpp Backed out changeset c796403f5a29 since it landed with wrong bug number 2019-01-02 10:44:12 -08:00
nsSVGFilterFrame.h
nsSVGFilterInstance.cpp Bug 1515936 - Part 2 Move nsSVGStringInfo to mozilla::dom and rename the nsSVGFilters files to SVGFilters r=dholbert 2018-12-21 16:24:17 +00:00
nsSVGFilterInstance.h Bug 1517938 - Move nsSVGIntegerPair and nsSVGNumberPair to the mozilla namespace r=jwatt 2019-01-06 08:22:55 +00:00
nsSVGFilterPaintCallback.h
nsSVGForeignObjectFrame.cpp Bug 1516076 - Part 3 rename nsSVGAnimatedTransformList to SVGAnimatedTransformList and move it to the mozilla namespace r=dholbert 2018-12-26 23:46:38 +00:00
nsSVGForeignObjectFrame.h
nsSVGGFrame.cpp Bug 1515187 - Part 4 Rename nsSVGElement to SVGElement and put it in the mozilla:dom namespace r=dholbert 2018-12-21 08:58:14 +00:00
nsSVGGFrame.h
nsSVGGenericContainerFrame.cpp
nsSVGGenericContainerFrame.h
nsSVGGradientFrame.cpp Backed out changeset c796403f5a29 since it landed with wrong bug number 2019-01-02 10:44:12 -08:00
nsSVGGradientFrame.h Bug 1516076 - Part 3 rename nsSVGAnimatedTransformList to SVGAnimatedTransformList and move it to the mozilla namespace r=dholbert 2018-12-26 23:46:38 +00:00
nsSVGImageFrame.cpp Bug 1513387: Add braces & newlines to re-wrap some return statements that clang-format unwrapped, in layout/svg. r=heycam 2018-12-12 06:32:44 +00:00
nsSVGImageFrame.h
nsSVGInnerSVGFrame.cpp Bug 1512716 - Re-indent NS_QUERYFRAME macros after clang-format. r=TYLin 2018-12-07 20:00:18 +00:00
nsSVGInnerSVGFrame.h
nsSVGIntegrationUtils.cpp Bug 1520652 - Clip SVG filters to the PrimitiveSubregion when using WebRender. r=mstange 2019-01-19 06:35:16 +00:00
nsSVGIntegrationUtils.h Bug 1520652 - Clip SVG filters to the PrimitiveSubregion when using WebRender. r=mstange 2019-01-19 06:35:16 +00:00
nsSVGMarkerFrame.cpp Bug 1523069 - Move nsSVGMark to the mozilla namespace. r=jwatt 2019-01-26 13:01:31 +00:00
nsSVGMarkerFrame.h Bug 1523069 - Move nsSVGMark to the mozilla namespace. r=jwatt 2019-01-26 13:01:31 +00:00
nsSVGMaskFrame.cpp Backed out changeset c796403f5a29 since it landed with wrong bug number 2019-01-02 10:44:12 -08:00
nsSVGMaskFrame.h
nsSVGOuterSVGFrame.cpp Bug 1518000 - Move nsSVGString and nsSVGViewBox to the mozilla namespace r=jwatt 2019-01-06 17:52:55 +00:00
nsSVGOuterSVGFrame.h Bug 1511854 - Part 1: Fix some formatting oddities in layout/ after the clang-format. r=TYLin 2018-12-05 18:44:03 +00:00
nsSVGPaintServerFrame.h
nsSVGPatternFrame.cpp Bug 1518000 - Move nsSVGString and nsSVGViewBox to the mozilla namespace r=jwatt 2019-01-06 17:52:55 +00:00
nsSVGPatternFrame.h Bug 1518000 - Move nsSVGString and nsSVGViewBox to the mozilla namespace r=jwatt 2019-01-06 17:52:55 +00:00
nsSVGStopFrame.cpp
nsSVGSwitchFrame.cpp Bug 1515187 - Part 4 Rename nsSVGElement to SVGElement and put it in the mozilla:dom namespace r=dholbert 2018-12-21 08:58:14 +00:00
nsSVGSymbolFrame.cpp Bug 1515935 - Add newlines to the end of nsSVGSymbolFrame files r=dholbert 2018-12-21 16:16:50 +00:00
nsSVGSymbolFrame.h Bug 1515935 - Add newlines to the end of nsSVGSymbolFrame files r=dholbert 2018-12-21 16:16:50 +00:00
nsSVGUseFrame.cpp
nsSVGUseFrame.h
nsSVGUtils.cpp Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
nsSVGUtils.h Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
nsSVGViewportFrame.cpp Bug 1515187 - Part 4 Rename nsSVGElement to SVGElement and put it in the mozilla:dom namespace r=dholbert 2018-12-21 08:58:14 +00:00
nsSVGViewportFrame.h
svg.css