Граф коммитов

1175 Коммитов

Автор SHA1 Сообщение Дата
somdatta 98b05fd89a Bug 1586014- Factor out RecompileScriptEventListeners r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D129974
2021-11-04 18:24:58 +00:00
Evgenia Kotovich 0d0980ee0d Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-18 09:26:33 +00:00
Noemi Erli 2bba3cec69 Backed out changeset 2ab6bb03dcc1 (bug 1576768) for causing failures in test_double_submit.html CLOSED TREE 2021-10-18 02:05:57 +03:00
Evgenia Kotovich 3e3dff109c Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-17 14:59:14 +00:00
Alexandru Michis dac6815201 Backed out changeset 7c08aa027893 (bug 1576768) for causing multiple failures.
CLOSED TREE
2021-10-15 16:52:43 +03:00
Evgenia Kotovich a8b32926fa Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-15 12:58:11 +00:00
Masayuki Nakano 25a3c48305 Bug 1732845 - Add `nsINode::IsInDesignMode()` to check whether the node is directly in design mode r=smaug
There are a lot of check of `Document`'s editable state **with** comments. This
means that it's unclear for developers that only `Document` node is editable in
design mode.

Additionally, there are some points which use composed document rather than
uncomposed document even though the raw API uses uncomposed document. Comparing
with the other browsers, checking uncomposed document is compatible behavior,
i.e., nodes in shadow trees are not editable unless `contenteditable`.

Therefore, `nsINode` should have a method to check whether it's in design mode
or not.

Note that it may be called with a node in UA widget.  Therefore, this patch
adds new checks if it's in UA widget subtree or native anonymous subtree,
checking whether it's in design mode with its host.

Differential Revision: https://phabricator.services.mozilla.com/D126764
2021-10-12 03:14:43 +00:00
Emilio Cobos Álvarez 597b7bc37d Bug 1729330 - Add a simple CSSLayerRule implementation. r=smaug
The specifics of how this is going to work are still getting spec'd /
discussed in https://github.com/w3c/csswg-drafts/issues/6576, but this
allows DevTools to work fine and the feature to be complete enough for
Nightly experimentation (with the other in-flight patches).

Otherwise devtools crashes when trying to inspect pages that use them.

Differential Revision: https://phabricator.services.mozilla.com/D124656
2021-09-08 11:18:32 +00:00
Andrew Osmond ac49f09199 Bug 1728113 - Remove DrawTargetCapture and related code. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D123953
2021-08-30 16:35:50 +00:00
Daniel Holbert fda78b55e2 Bug 1723249: Gracefully handle null SVG image-frame when resolving geometry properties. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D122791
2021-08-17 18:12:19 +00:00
Nicolas Silva 9cfa0db31b Bug 1722316 - Add UseCounter telemetry for various svg filters. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D120850
2021-08-10 14:14:37 +00:00
Brindusan Cristian bead970f1f Backed out changeset b100ed804d46 (bug 1722316) for causing cpp unified-bustages in SVGFEMorphologyElement.cpp.
CLOSED TREE
2021-08-09 17:09:57 +03:00
Nicolas Silva c50c34223a Bug 1722316 - Add UseCounter telemetry for various svg filters. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D120850
2021-08-09 12:18:12 +00:00
Emilio Cobos Álvarez 2d0a072174 Bug 1723921 - Cleanup nsComputedDOMStyle and related APIs. r=layout-reviewers,jfkthame
This will make implementing the new behavior behind a pref
really straight-forward, and is generally nicer.

Depends on D121858

Differential Revision: https://phabricator.services.mozilla.com/D121705
2021-08-07 09:47:15 +00:00
Boris Chiou ab6b587bfe Bug 1340422 - Part 10: Use style for GetDistancesFromOriginToEndsOfVisibleSegments(). r=emilio
When using a mpath elememt which linked to a external path element, we use
GetDistancesFromOriginToEndsOfVisibleSegments() to do a quick check if we
really need to build the path (note: see
SVGMotionSMILAnimationFunction::RebuildPathAndVerticesFromMpathElem),
so we have to get the d property value from style in this function.

Differential Revision: https://phabricator.services.mozilla.com/D116920
2021-06-09 21:17:25 +00:00
Boris Chiou 32d231dac6 Bug 1340422 - Part 8: Optimize attribute mapping by not parsing svg path string again. r=emilio
Unfortunately, we still have to convert the cpp version into rust version.
However, it's still better than parsing it again.

If we want to use the css parser to parse d attribute, we may need an
extra API to get the whole input as &str from Parser.
(expect_string() doesn't work because the SVG attribute value is not a quoted
string.) It seems Parser::slice() cannot get the whole input because we don't
know the end index of the whole input string. We should fix this in Bug 1714238.

Differential Revision: https://phabricator.services.mozilla.com/D115571
2021-06-09 21:17:24 +00:00
Boris Chiou 5918c183ff Bug 1340422 - Part 7: Notify style system when SMIL animation changes d attribute. r=emilio
So we update d property in the style system as well. This makes sure we
have the correct computed style and the correct rendering result.

Differential Revision: https://phabricator.services.mozilla.com/D115570
2021-06-09 21:17:23 +00:00
Boris Chiou 6c444066ce Bug 1340422 - Part 6: Factor out part of Elliptical arc implementation. r=emilio
Besides, add some conversion from double to float to make clang-tidy happy.

Differential Revision: https://phabricator.services.mozilla.com/D115569
2021-06-09 21:17:23 +00:00
Boris Chiou 81730e1d1a Bug 1340422 - Part 5: Factor out some utility inline functions in SVGPathData.cpp. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D115568
2021-06-09 21:17:23 +00:00
Boris Chiou 74fad503a5 Bug 1340422 - Part 4: Resolve SVG Marker points of path from CSS. r=emilio
We have to calculate markers from style.

Differential Revision: https://phabricator.services.mozilla.com/D115567
2021-06-09 21:17:22 +00:00
Boris Chiou 3159e083e9 Bug 1340422 - Part 3: Resolve SVG path from CSS. r=emilio
Use the style value when building the SVG path and its display items.
Besides, we should also invalid the cache when there are any CSS updates.

Differential Revision: https://phabricator.services.mozilla.com/D115566
2021-06-09 21:17:21 +00:00
Boris Chiou a1d053296d Bug 1340422 - Part 2: Map SVG d attribute to CSS. r=emilio
We parse the attribute and store it into CSS. We have tests already in
wpt, svg/path/property/*, but we cannot pass them for now because we
don't convert the relative commands into absolute commands. Those will
be fixed in Bug 1489392 once the spec issue is resolved.

Differential Revision: https://phabricator.services.mozilla.com/D81238
2021-06-09 21:17:21 +00:00
Dana Keeler 1b9fd10c83 Bug 1701192 - don't allow third-party loads to set HSTS state r=annevk,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D115715
2021-06-02 16:52:19 +00:00
Edgar Chen 1ebbd60592 Bug 1685421 - Part 2: Stop using NS_ERROR_DOM_HIERARCHY_REQUEST_ERR in nsINode; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D113344
2021-06-02 13:43:39 +00:00
Kris Wright 5e37146c9f Bug 1692068 - Disable broken crashtests on tsan. r=necko-reviewers,decoder,dragana
These tests either cause frequent or permanent failures on TSan.

Differential Revision: https://phabricator.services.mozilla.com/D110371
2021-05-25 01:15:49 +00:00
Edgar Chen acf4edd8ea Bug 1710840 - Part 2: Get rid of NS_ERROR_DOM_SVG_WRONG_TYPE_ERR; r=smaug
Depends on D114964

Differential Revision: https://phabricator.services.mozilla.com/D114965
2021-05-12 23:32:38 +00:00
Emilio Cobos Álvarez 62550fa581 Bug 1709577 - Remove CORS_* constants from imgIRequest, use CORSMode instead. r=tnikkel
These don't have the same value, and is a bit confusing.

Differential Revision: https://phabricator.services.mozilla.com/D114352
2021-05-05 15:23:25 +00:00
Alexandru Michis a09b922e62 Merge autoland to mozilla-central. a=merge 2021-04-24 00:50:35 +03:00
Emilio Cobos Álvarez 21d031a737 Bug 1706939 - Copy internal attribute values from SVG elements for printing. r=longsonr
This should ensure that we print SMIL animations, and also that we don't
mess up when the SVG use element propagates the internal values to
<symbol> / <svg>.

Differential Revision: https://phabricator.services.mozilla.com/D113177
2021-04-23 19:39:38 +00:00
Emilio Cobos Álvarez d9e2be55c5 Bug 1706939 - Make the SVG attribute code a bit more generic. r=longsonr
This could still be massively improved... Why the heck are we doing so
many virtual calls to parse an attribute? :(

Differential Revision: https://phabricator.services.mozilla.com/D113205
2021-04-23 19:39:37 +00:00
Emilio Cobos Álvarez 480efa657d Bug 1703592 - Deal with non-finite viewbox / viewports. r=longsonr
In the test-case we end up dividing viewbox/viewport, which is inf/inf,
end up with NaN, and boom.

Differential Revision: https://phabricator.services.mozilla.com/D111325
2021-04-09 13:10:55 +00:00
Emilio Cobos Álvarez 071bf77adf Bug 1703987 - Measure percentage stroke-widths on text/non-text svg content. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D111353
2021-04-09 13:07:07 +00:00
longsonr 6c00541d5c Bug 1700889 - remove xmlspace attribute from SVGStyleElement r=emilio
No longer in SVG 2, was removed from webkit as part of https://bugs.webkit.org/show_bug.cgi?id=29058 and Chrome doesn't support this either.

Differential Revision: https://phabricator.services.mozilla.com/D109702
2021-03-25 17:15:43 +00:00
Jonathan Kew 45d1f12441 Bug 1342741 - Adjust a few testcases that are sensitive to glyph/metrics differences in Menlo. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D107288
2021-03-12 16:13:18 +00:00
Bogdan Tara 446173458c Backed out 3 changesets (bug 1696176, bug 1342741) for test_nsIHTMLEditor_getSelectedElement.html and inert-retargeting-iframe.tentative.html failures CLOSED TREE
Backed out changeset 1154df798888 (bug 1342741)
Backed out changeset 02b69c938fbe (bug 1342741)
Backed out changeset a7ceef946175 (bug 1696176)
2021-03-10 17:06:26 +02:00
Jonathan Kew 5abe82b7b8 Bug 1342741 - Adjust a few testcases that are sensitive to glyph/metrics differences in Menlo. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D107288
2021-03-10 13:48:46 +00:00
Simon Giesecke ad01a10a3b Bug 1634281 - Use nsTHashMap instead of nsDataHashtable. r=xpcom-reviewers,necko-reviewers,jgilbert,nika,valentin
Note that this patch only transforms the use of the nsDataHashtable type alias
to a directly equivalent use of nsTHashMap. It does not change the specification
of the hash key type to make use of the key class deduction that nsTHashMap
allows for in some cases. That can be done in a separate step, but requires more
attention.

Differential Revision: https://phabricator.services.mozilla.com/D106008
2021-03-10 10:47:47 +00:00
Simon Giesecke be7dc83fa6 Bug 1691913 - Mark nsBaseHashtable (and its subclasses') member functions nodiscard where appropriate. r=xpcom-reviewers,necko-reviewers,dragana,nika
Differential Revision: https://phabricator.services.mozilla.com/D105474
2021-02-26 09:22:53 +00:00
Simon Giesecke 9af107a839 Bug 1691913 - Rename nsBaseHashtable::Put to InsertOrUpdate. r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika
This makes the naming more consistent with other functions called
Insert and/or Update. Also, it removes the ambiguity whether
Put expects that an entry already exists or not, in particular because
it differed from nsTHashtable::PutEntry in that regard.

Differential Revision: https://phabricator.services.mozilla.com/D105473
2021-02-26 09:11:46 +00:00
Simon Giesecke 661e25bf09 Bug 1692880 - Make Put accept DataType instead of wrapping UserDataType. r=xpcom-reviewers,necko-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D104850
2021-02-16 15:53:33 +00:00
smolnar 1afbbe67e1 Backed out 5 changesets (bug 1691894) for causing hazard failures in nsXULPrototypeCache. CLOSED TREE
Backed out changeset 22dc870ee609 (bug 1691894)
Backed out changeset 58c31e9d6ae3 (bug 1691894)
Backed out changeset 7483e84149d8 (bug 1691894)
Backed out changeset f977d6cfa973 (bug 1691894)
Backed out changeset db4503476f34 (bug 1691894)
2021-02-15 16:43:23 +02:00
Simon Giesecke 3c29a68440 Bug 1691894 - Make Put accept DataType instead of wrapping UserDataType. r=xpcom-reviewers,necko-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D104850
2021-02-15 10:04:46 +00:00
longsonr f292216c4e Bug 1687195 - Invalid enums should return the initial value, not the unknown value r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D102131
2021-01-18 15:57:55 +00:00
Csoregi Natalia 1091647af5 Backed out changeset ecd3cad19246 (bug 1687195) for reftest failures on /feBlend-1.svg. CLOSED TREE 2021-01-18 14:36:37 +02:00
longsonr 3beb46b1eb Bug 1687195 - Invalid enums should return the initial value, not the unknown value r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D102131
2021-01-18 11:10:56 +00:00
Emilio Cobos Álvarez 5c1a39349e Bug 1551040 - Add const versions of Document casts. r=edgar
Depends on D101516

Differential Revision: https://phabricator.services.mozilla.com/D101517
2021-01-17 14:44:44 +00:00
Dorel Luca dac45cc702 Backed out 3 changesets (bug 1551040) for Browser-chrome failures in browser/base/content/test/static/browser_parsable_css.js
Backed out changeset f48f479bcacd (bug 1551040)
Backed out changeset a6cd4b393999 (bug 1551040)
Backed out changeset 252cbf40efcb (bug 1551040)
2021-01-17 16:38:39 +02:00
longsonr 6feef3dcfc Bug 1687131 - test_pointer-events-5.xhtml is a copy of test_pointer-events-2.xhtml r=emilio
They should be different, test_pointer-events-5.xhtml was intended to test non-existent clip paths as part of bug 975206

Differential Revision: https://phabricator.services.mozilla.com/D102091
2021-01-16 22:55:48 +00:00
Emilio Cobos Álvarez edf7671bfc Bug 1551040 - Add const versions of Document casts. r=edgar
Depends on D101516

Differential Revision: https://phabricator.services.mozilla.com/D101517
2021-01-16 18:58:28 +00:00
Bogdan Tara c88a628881 Backed out 3 changesets (bug 1551040) for stylesheets related bustage CLOSED TREE
Backed out changeset 3822fe3e163d (bug 1551040)
Backed out changeset 032025f28d8f (bug 1551040)
Backed out changeset 1aeb38c2dce3 (bug 1551040)
2021-01-16 20:53:31 +02:00