longsonr
5b9df67d2e
Bug 1652395 - Replace 'typedef' by 'using' in SVG and SMIL code r=dholbert
...
Also removes some mozilla:: where its no longer needed
Note that this patch was created by running
sed -e -i '.bak' 's/typedef ([a-zA-Z0-9:]+) ([a-zA-Z0-9:]+)/using \2 = \1/'
and then fixing up a few cases that didn't work.
Differential Revision: https://phabricator.services.mozilla.com/D83294
2020-07-15 10:37:55 +00:00
longsonr
02829222d5
Bug 1652253 - Update SVG include guards r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D83248
2020-07-14 23:40:05 +00:00
longsonr
7c427e698a
Bug 1652430 - Fix some clang warnings in SVG r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D83299
2020-07-13 15:20:36 +00:00
longsonr
c2fc063be0
Bug 1652254 - Remove svg from some moz.build local includes r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D83247
2020-07-12 16:38:26 +00:00
longsonr
875f5e88ac
Bug 1259861 - Move everything else into the mozilla namespace in layout/svg r=dholbert
...
Also: adjust include paths to be consistent for usages of various SVG headers,
and remove unused SVG includes (mostly for "utils" classes),
and drop stray "ns" from already-renamed SVG classes in various code comments.
Differential Revision: https://phabricator.services.mozilla.com/D83140
2020-07-11 02:20:20 +00:00
longsonr
cc4f307539
Bug 1651404 - Move nsSVGDisplayableFrame and nsISVGSVGFrame to the mozilla namespace r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D82945
2020-07-09 18:34:54 +00:00
longsonr
6f5803e27f
Bug 1651289 - Move remaining SVG concrete frame classes to the mozilla namespace r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D82650
2020-07-09 01:33:33 +00:00
longsonr
058049a793
Bug 1649739 - Move SVG paint server and clipPath classes to the mozilla namespace r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D81858
2020-07-07 13:49:30 +00:00
Simon Giesecke
cd8b8939b9
Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
longsonr
c6379dd48c
Bug 1649177 - Move SVG filter classes to the mozilla namespace r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D81555
2020-06-30 18:11:50 +00:00
Emilio Cobos Álvarez
76e1706ca7
Bug 1494356 - Remove SVG style attribute reparsing code. r=longsonr
...
Now that XBL and xml:base are gone, and that <svg:use> is sane (using
shadow trees instead of NAC), we can just remove this, and fix this bug.
Differential Revision: https://phabricator.services.mozilla.com/D81553
2020-06-29 20:16:11 +00:00
longsonr
71614873fb
Bug 1648737 - Move SVGAFrame SVGGFrame SVGGenericContainerFrame SVGInnerSVGFrame SVGMarkerFrame SVGMaskFrame SVGSymbolFrame SVGViewportFrame to the mozilla namespace r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D81310
2020-06-27 05:39:42 +00:00
Mihai Alexandru Michis
20dfc519d1
Backed out changeset 1b8b8756acad (bug 1648737) for causing bustages in SVGMaskFrame.h
...
CLOSED TREE
2020-06-27 02:24:41 +03:00
longsonr
3b9835e5b8
Bug 1648737 - Move SVGAFrame SVGGFrame SVGGenericContainerFrame SVGInnerSVGFrame SVGMarkerFrame SVGMaskFrame SVGSymbolFrame SVGViewportFrame to the mozilla namespace r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D81310
2020-06-26 19:27:08 +00:00
longsonr
ea442838d3
Bug 1648463 - Move SVGForeignObjectFrame SVGImageFrame and SVGUseFrame to mozilla namespace r=dholbert,jgilbert
...
stop exposing SVGImageListener as only SVGImageFrame uses it.
Differential Revision: https://phabricator.services.mozilla.com/D81087
2020-06-25 20:42:49 +00:00
longsonr
bcf51974c1
Bug 1565997 - CanvasPattern.setTransform should take a DOMMatrix2DInit r=emilio,lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D80058
2020-06-24 21:19:12 +00:00
longsonr
0a29054e26
Bug 1647101 - Move SVGTextFrame SVGViewFrame SVGFEContainerFrame SVGFEImageFrame SVGFELeafFrame SVGFEUnstyledLeafFrame into the mozilla namespace r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D80383
2020-06-23 22:59:34 +00:00
Jean-Yves Avenard
e8732fef3a
Bug 1632099 - P2. Remove work around issue fixed in P1. r=froydnj
...
Depends on D80385
Differential Revision: https://phabricator.services.mozilla.com/D80386
2020-06-22 23:15:59 +00:00
Emilio Cobos Álvarez
b9b9e38dd9
Bug 1646224 - Use mozilla::Length rather than nscoord to store font sizes. r=heycam,jfkthame
...
This avoids arbitrary precision loss when computing REM units and so on,
which is particularly important if we ever change the base of our app
units (but useful regardless).
Differential Revision: https://phabricator.services.mozilla.com/D79928
2020-06-22 09:45:40 +00:00
longsonr
6b4aba0696
Bug 1555948 - SVGSVGElement::BindToTree should use composed doc to get the animation controller r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D80390
2020-06-21 20:53:18 +00:00
Cosmin Sabou
65d75a47f3
Backed out changeset 299e19193e11 (bug 1646224) for causing font related failures. CLOSED TREE
2020-06-18 18:26:51 +03:00
Emilio Cobos Álvarez
090e3d2409
Bug 1646224 - Use mozilla::Length rather than nscoord to store font sizes. r=heycam,jfkthame
...
This avoids arbitrary precision loss when computing REM units and so on,
which is particularly important if we ever change the base of our app
units (but useful regardless).
Differential Revision: https://phabricator.services.mozilla.com/D79928
2020-06-18 13:55:03 +00:00
longsonr
30697d85fe
Bug 1645753 - Add color as a mapped attribute for gradient stops r=heycam
...
Differential Revision: https://phabricator.services.mozilla.com/D79665
2020-06-18 00:34:23 +00:00
longsonr
33432612ba
Bug 1560275 - Flush layout in SVGGeometryElement::IsPointInStroke r=dholbert
...
SVGGeometryElement::IsPointInStroke calls SVGContentUtils::GetCTM and that can call
nsSVGUtils::GetTransformMatrixInUserSpace which needs layout to be up to date
Differential Revision: https://phabricator.services.mozilla.com/D79752
2020-06-15 23:49:09 +00:00
longsonr
b1dbdf1b3a
Bug 1645747 - Change SVGPoint.matrixTransform to take a DOMMatrix2DInit parameter rather than SVGMatrix r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D79681
2020-06-15 16:40:50 +00:00
longsonr
3de35fd000
Bug 1642234 - Convert various SVG methods to take a DOMMatrix2DInit r=emilio
...
See https://github.com/w3c/svgwg/issues/326
Differential Revision: https://phabricator.services.mozilla.com/D77618
2020-06-14 07:26:27 +00:00
longsonr
abfdb3c37c
Bug 1560275 - Flush before trying to read style in SVGGeometryElement::IsPointInStroke r=dholbert,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D78721
2020-06-08 21:58:40 +00:00
Cameron McCormack
2b522290ef
Bug 1634393 - Resolve <textPath> href local references against document URL, not base URL. r=longsonr
...
Differential Revision: https://phabricator.services.mozilla.com/D78627
2020-06-08 06:06:26 +00:00
longsonr
63247c908f
Bug 1642430 - Improve SVGTests implementation r=dholbert
...
This is should not be a functional change, just making the methods in SVGTests easier to use/understand.
There's a little dead code removal since we can go through the same code path for empty intl.accept_languages as we do when it has a value, and we'd almost always expect it to have a value.
Differential Revision: https://phabricator.services.mozilla.com/D77694
2020-06-03 15:34:21 +00:00
Emilio Cobos Álvarez
54fd961a29
Bug 1641245 - Make string comparators not virtual. r=froydnj,necko-reviewers,geckoview-reviewers,jgilbert,agi,valentin
...
There's no use case for stateful comparators, so they can be just plain
function pointers.
This is used in some hot places like CSS selector matching.
Differential Revision: https://phabricator.services.mozilla.com/D77084
2020-05-27 18:11:12 +00:00
longsonr
ef003847e5
Bug 1640280 - Extend autofocus to SVGGraphicsElement r=emilio
...
Note we're still limited to markup only because of bug 662496
so we don't pass the web platform tests for this feature.
Chrome has implemented support per
https://www.chromestatus.com/feature/5654905853313024
In SVG only SVGGraphicsElements are focusable.
Differential Revision: https://phabricator.services.mozilla.com/D76546
2020-05-27 07:59:07 +00:00
Dorel Luca
a94d31585c
Backed out changeset 1334652d0ec4 (bug 1640280) for build bustage in workspace/obj-build/dist/include/mozilla/dom/Document.h. CLOSED TREE
2020-05-25 01:31:54 +03:00
longsonr
cdcace5073
Bug 1640280 - Extend autofocus to SVGGraphicsElement r=emilio
...
Note we're still limited to markup only because of bug 662496
so we don't pass the web platform tests for this feature.
Chrome has implemented support per
https://www.chromestatus.com/feature/5654905853313024
In SVG only SVGGraphicsElements are focusable.
Differential Revision: https://phabricator.services.mozilla.com/D76546
2020-05-24 21:04:14 +00:00
Emilio Cobos Álvarez
c3b7227771
Bug 1639392 - Merge nsIStyleSheetLinkingElement and nsStyleLinkElement, and call it LinkStyle. r=jwatt
...
Which is the spec term. nsIStyleSheetLinkingElement is even more
confusing since it may not be an element at all (see: processing
instructions).
Differential Revision: https://phabricator.services.mozilla.com/D76071
2020-05-21 03:07:16 +00:00
Emilio Cobos Álvarez
761e9dfe4c
Bug 1635094 - Cleanup the ReferrerInfo code. r=ckerschb
...
The cast in InitWithNode is wrong. AsElement() asserts instead of
checking the flag, so we always pass an element (and if we didn't we'd
have type confusion problems). I audited the callers and we're fine.
Anyhow, always require an element, and add two convenience constructors
for C++ code.
Differential Revision: https://phabricator.services.mozilla.com/D73636
2020-05-04 18:50:20 +00:00
Cosmin Sabou
71a40eae48
Backed out 2 changesets (bug 1635094) for build bustages on nsMacShellService.cpp. CLOSED TREE
...
Backed out changeset 0a2b0c6ea19a (bug 1635094)
Backed out changeset ead4f26f76ee (bug 1635094)
2020-05-04 20:04:06 +03:00
Emilio Cobos Álvarez
6dde680742
Bug 1635094 - Cleanup the ReferrerInfo code. r=ckerschb
...
The cast in InitWithNode is wrong. AsElement() asserts instead of
checking the flag, so we always pass an element (and if we didn't we'd
have type confusion problems). I audited the callers and we're fine.
Anyhow, always require an element, and add two convenience constructors
for C++ code.
Differential Revision: https://phabricator.services.mozilla.com/D73636
2020-05-04 16:26:51 +00:00
Sylvestre Ledru
34acbb653a
Bug 1619165 - Reformat recent changes to the Google coding style r=andi
...
First reformat with clang-format 10
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D68802
2020-04-25 09:40:08 +00:00
Simon Giesecke
c0341c3791
Bug 1628715 - Part 10: Activate nodiscard attributes on AppendElement(s). r=xpcom-reviewers,nika,peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D70834
2020-04-24 14:34:15 +00:00
Simon Giesecke
191a830575
Bug 1628715 - Part 7: Add MOZ_NONNULL_RETURN to infallible nsTArray::AppendElements. r=xpcom-reviewers,necko-reviewers,nika,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D70831
2020-04-24 13:31:14 +00:00
Alexander Surkov
ef0384e257
Bug 1632207 - Intermittent bustage failure: member access into incomplete type 'mozilla::dom::DOMSVGLength' r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D72013
2020-04-22 17:26:16 +00:00
Robert Longson
46d24ea87e
Bug 1581691 - make transform-origin a mapped CSS attribute r=heycam,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D63016
2020-04-18 05:10:29 +00:00
Cosmin Sabou
52b7bc2fa6
Backed out changeset 136b9329a6f7 (bug 1581691) for failures on svg/styling/presentation-attributes-relevant.html.
2020-04-18 06:15:10 +03:00
Robert Longson
650b69563f
Bug 1581691 - make transform-origin a mapped CSS attribute r=heycam,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D63016
2020-04-18 01:32:40 +00:00
Emilio Cobos Álvarez
f37620df43
Bug 612118 - Make .getBBox() on a non-rendered element not throw. r=heycam
...
Differential Revision: https://phabricator.services.mozilla.com/D71228
2020-04-17 00:28:52 +00:00
Cameron McCormack
60ff2bc9ec
Bug 1513603 - Remove SVG tearoff objects from the table when they are unlinked. r=longsonr
...
The only three types that can hit the PreservedWrapper() assertion
currently, and which this patch avoids, are DOMSVGPathSegList,
DOMSVGPointList, and DOMSVGStringList.
This is because these are the only types that are implemented as proxies
(due to having e.g. indexed getters on them, and thus have the offending
DOMProxyHandler::GetExpandoObject() call in their bindings) and which we
store in tearoff tables.
Differential Revision: https://phabricator.services.mozilla.com/D70314
--HG--
extra : moz-landing-system : lando
2020-04-09 12:50:28 +00:00
Edgar Chen
6a2699f75b
Bug 1128054 - Part 3: Invalid tabindex attribute should not make an element focusable; r=smaug
...
See https://html.spec.whatwg.org/#attr-tabindex .
Depends on D68209
Differential Revision: https://phabricator.services.mozilla.com/D68210
--HG--
extra : moz-landing-system : lando
2020-04-04 20:03:09 +00:00
Sylvestre Ledru
0aa6f03cf3
Bug 1519636 - Reformat recent changes to the Google coding style r=jgilbert
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D67574
--HG--
extra : moz-landing-system : lando
2020-04-05 13:34:58 +00:00
Sean Feng
20800c5a3c
Bug 1377999 - Make SVG nodes to adapt the DOMArena changes r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D57701
--HG--
extra : moz-landing-system : lando
2020-03-17 14:53:16 +00:00
Kartikaya Gupta
e0866e73e4
Bug 1622445 - Don't cache the SVGGeometryElement's Path with OMTP rendering. r=longsonr
...
Differential Revision: https://phabricator.services.mozilla.com/D66955
--HG--
extra : moz-landing-system : lando
2020-03-16 15:15:40 +00:00