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

4218 Коммитов

Автор SHA1 Сообщение Дата
Jens Stutte 30b28c264e Bug 1839051 - Remove include nsQuickSort.h from some more files. r=emilio
Depends on D182724

Differential Revision: https://phabricator.services.mozilla.com/D182731
2023-12-11 06:53:28 +00:00
Robert Longson 2b71f9d87e Bug 1868479 - Fix backdrop-filter with SVG filters r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D195671
2023-12-07 14:35:13 +00:00
Robert Longson fe6c97d4ee Bug 1836831 - don't try to resolve ray with StrokeBox when non-scaling-stroke is in effect r=boris
Differential Revision: https://phabricator.services.mozilla.com/D195552
2023-12-06 09:19:01 +00:00
Robert Longson c0d1f6fce2 Bug 1868049 - Use nsIMutationObserver's native callback optimisation mechanism r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D195375
2023-12-04 20:57:57 +00:00
Iulian Moraru 95f4da1719 Backed out 8 changesets (bug 1839051) for causing assertion failures on NotificationController.cpp. CLOSED TREE
Backed out changeset 94a4c163e417 (bug 1839051)
Backed out changeset 5204b97e40bc (bug 1839051)
Backed out changeset 8443a22a399d (bug 1839051)
Backed out changeset 2ab1e27d5945 (bug 1839051)
Backed out changeset 20a850a4fd7e (bug 1839051)
Backed out changeset 658568fe9662 (bug 1839051)
Backed out changeset 82525b11a7c3 (bug 1839051)
Backed out changeset 720e6863c41a (bug 1839051)
2023-12-04 22:34:25 +02:00
Jens Stutte 11a85fe724 Bug 1839051 - Remove include nsQuickSort.h from some more files. r=emilio
Depends on D182724

Differential Revision: https://phabricator.services.mozilla.com/D182731
2023-12-04 18:33:42 +00:00
Tom Schuster 1ef25aa7a3 Bug 1806964 - Restrict SVG <use> to prevent usage of data: URLs. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D193414
2023-12-01 13:54:30 +00:00
Cristian Tuns ab4397b6b1 Backed out changeset 3f0a7131d0fd (bug 1806964) for causing bug 1866911 (and duplicates) CLOSED TREE 2023-11-29 03:50:20 -05:00
Emilio Cobos Álvarez 5730ee0ca5 Bug 1364813 - Remove IsFrameOfType, use non-virtual checks. r=jwatt
Extend the per-frame-class bit we have to devirtualize IsLeaf to also
devirtualize IsFrameOfType. That is, move this data to FrameClasses.py.

This was done by going through all the frame classes, trying to preserve
behavior.

The only quirky thing is that I had to add two more trivial frame
classes, `nsAudioFrame` for audio elements, and
`nsFloatingFirstLetterFrame`. That's because these frame classes were
returning different answers at runtime, but they do this only on
conditions that trigger frame reconstruction (floating, and being an
audio element, respectively).

Differential Revision: https://phabricator.services.mozilla.com/D194703
2023-11-26 22:17:28 +00:00
Robert Longson c1b18f62e8 Bug 832033 - add crashtest r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D194706
2023-11-26 19:49:06 +00:00
Tom Schuster 67970b0d08 Bug 1806964 - Restrict SVG <use> to prevent usage of data: URLs. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D193414
2023-11-24 15:04:14 +00:00
Robert Longson b24a3ddc8f Bug 1866384 - remove unused or obsolete code r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D194582
2023-11-24 14:53:36 +00:00
Robert Longson 1b18e7f21f Bug 1864039 - clip-path path reference box is incorrect with stroke r=boris
Differential Revision: https://phabricator.services.mozilla.com/D193643
2023-11-15 19:27:43 +00:00
Robert Longson 62354e82f7 Bug 1861736 part 1 - preserve renderingobserverset across node adoptions r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192405
2023-11-09 16:35:45 +00:00
Robert Longson 433bcba24e Bug 1863206 - Remove virtual keyword from overrides and stop prefixing variables that don't need prefixing r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192807
2023-11-05 18:04:53 +00:00
Robert Longson 87a1d9c8eb Bug 1862411 - simplify array access by using range based loops and LastElement r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192465
2023-11-03 16:22:23 +00:00
Robert Longson f4ff77a8a4 Bug 1861736 - don't invalidate when SVGRenderingObserverSet is destroyed r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192406
2023-11-03 16:16:32 +00:00
Sean Feng 539e32202b Bug 1722322 - Implement LargestContentfulPaint r=emilio
Spec: https://w3c.github.io/largest-contentful-paint

Differential Revision: https://phabricator.services.mozilla.com/D151079
2023-11-02 20:53:36 +00:00
Sandor Molnar a4163792c6 Backed out 7 changesets (bug 1722322) for causing bp-nu bustages
Backed out changeset 0ebd32e273b8 (bug 1722322)
Backed out changeset 7a75717f127c (bug 1722322)
Backed out changeset c2a6440a83d7 (bug 1722322)
Backed out changeset 9955756855bd (bug 1722322)
Backed out changeset 37fccb407777 (bug 1722322)
Backed out changeset f52b1f28f753 (bug 1722322)
Backed out changeset 0121c8cf5d2f (bug 1722322)
2023-11-02 21:27:24 +02:00
Sean Feng 611093989e Bug 1722322 - Implement LargestContentfulPaint r=emilio
Spec: https://w3c.github.io/largest-contentful-paint

Differential Revision: https://phabricator.services.mozilla.com/D151079
2023-11-02 17:04:47 +00:00
Robert Longson b07eea6fdb Bug 1765202 part 3 - ignore clip-path and mask properties that don't point to clipPath and mask elements r=emilio
This refactors the logic for testing whether something has a clip-path or mask and what to do about it in one place rather than using many overlapping functions.

Differential Revision: https://phabricator.services.mozilla.com/D190767
2023-10-23 20:32:37 +00:00
Robert Longson 38ecc4b5c4 Bug 1765202 part 2 - refactor MaskUsage so that its members are private r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D191513
2023-10-23 20:11:11 +00:00
Robert Longson a7a361f3ce Bug 1765202 part 1 - Have determineMaskUsage return its result r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D190766
2023-10-23 20:11:10 +00:00
Robert Longson 63d5eca233 Bug 1771538 - crashtest r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D191586
2023-10-23 12:54:43 +00:00
Emilio Cobos Álvarez aea252eda2 Bug 1857945 - Don't flush from SVGFilterObserverListForCanvasContext::OnRenderingChange. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D191208
2023-10-18 23:12:05 +00:00
Robert Longson 338e783926 Bug 1859858 - Notify evicted observers before processing rendering changes r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D191342
2023-10-18 20:26:18 +00:00
Sandor Molnar 8937518c8f Backed out changeset e009aa26b6f7 (bug 1539477) for causing xpc crashes @ mozilla::SVGObserverUtils::RemoveRenderingObserver] 2023-10-16 13:50:46 +03:00
Robert Longson 745b52e0d0 Bug 1539477 - stop potentially leaking observers r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D191015
2023-10-16 10:03:53 +00:00
Sylvestre Ledru d0f6c7fc66 Bug 1856795 - Remove redundant member init r=emilio
Done with:
./mach static-analysis check --checks="-*, readability-redundant-member-init" --fix .

https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-member-init.html

Differential Revision: https://phabricator.services.mozilla.com/D190002
2023-10-15 15:29:02 +00:00
Robert Longson 81f368dab9 Bug 1508858 - Fix assertion failure in SVGObserverUtils r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D191018
2023-10-15 06:21:08 +00:00
Cristina Horotan 6a90f5eded Backed out 2 changesets (bug 1856795) for causing build bustage at BasicEvents.h CLOSED TREE
Backed out changeset 1d98b028923a (bug 1856795)
Backed out changeset eae2ac93e17c (bug 1856795)
2023-10-14 21:42:14 +03:00
Sylvestre Ledru cc8a0ee742 Bug 1856795 - Remove redundant member init r=emilio
Done with:
./mach static-analysis check --checks="-*, readability-redundant-member-init" --fix .

https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-member-init.html

Differential Revision: https://phabricator.services.mozilla.com/D190002
2023-10-14 17:34:26 +00:00
Tom Marble 0cb91fe33e Bug 1855300 - convert .ini manifests to .toml: batch 11 remaining **/mochitest.ini r=jmaher,geckoview-reviewers,extension-reviewers,valentin,credential-management-reviewers,cookie-reviewers,sgalich,m_kato,robwu
Differential Revision: https://phabricator.services.mozilla.com/D190515
2023-10-13 02:32:24 +00:00
Boris Chiou 5213031e3e Bug 1852323 - Part 1: Update the mapping of geometry box for clip-path. r=emilio
It seems mask-origin/mask-clip/clip-path use different mapping for
geometry-box. We should specialize each one. In this patch, we focus on
clip-path.

Differential Revision: https://phabricator.services.mozilla.com/D188146
2023-10-10 22:00:32 +00:00
Robert Longson a21d68d939 Bug 1402013 - stop calculating position for SVG elements that aren't governed by the CSS box model r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D190222
2023-10-06 12:04:14 +00:00
Andrew Halberstadt dc8d745e52 Bug 1856358 - Run 'crashtests' on linux2204-64-wayland/opt, r=jmaher,lsalzman
This also skips a handful of tests that were failing.

Differential Revision: https://phabricator.services.mozilla.com/D189829
2023-10-05 17:54:30 +00:00
Robert Longson 80cdbb4c16 Bug 1494263 part 1 - pass filterFrames around rather than getting them again and again r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D189704
2023-10-04 20:54:13 +00:00
Robert Longson b20238137a Bug 1856362 part 2 - introduce and use IsSVGFilterPrimitiveElement r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D189858
2023-10-03 10:40:46 +00:00
Robert Longson d2dacc2146 Bug 1856362 part 1 - rename SVGFE to SVGFilterPrimitiveelement and SVGFEUnstyledElement to SVGFilterPrimitiveChildElement r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D189857
2023-10-03 10:40:45 +00:00
Emilio Cobos Álvarez 813ca5b3b9 Bug 1855763 - Automatic fixes to avoid using prefixed transforms in tests. r=layout-reviewers,jfkthame
Using the script in comment 5, excluding third-party directories.

Differential Revision: https://phabricator.services.mozilla.com/D189760
2023-10-02 12:36:17 +00:00
Emilio Cobos Álvarez 8b03d49816 Bug 1853323 - Remove browser.underline_anchors. r=settings-reviewers,mconley
This is weirdly placed in the colors dialog, and adds a global selector
to the UA sheet for no great reason.

This sub-setting doesn't really make a lot of sense. We don't let you
force underlines in any way, so any site CSS will override it (unlike
colors, where you can actually override the site).

Just move this to the UA sheet properly.

Differential Revision: https://phabricator.services.mozilla.com/D188326
2023-09-15 15:37:15 +00:00
Tom Marble 9e40a719f2 Bug 1850545 - convert .ini manifests to .toml: batch 3 chrome.ini (bis) r=jmaher,geckoview-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,places-reviewers,profiler-reviewers,m_kato,mak,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D187597
2023-09-13 18:28:32 +00:00
Emilio Cobos Álvarez aefd1ddb30 Bug 1851787 - Plumb a DestroyContext through all functions that can destroy frames. r=dholbert
This prevents anonymous content getting destroyed at weird times
during frame destruction.

Differential Revision: https://phabricator.services.mozilla.com/D187693
2023-09-08 15:11:17 +00:00
Emilio Cobos Álvarez 52d097c513 Bug 1851868 - Refactor nsIFrame::Destroy to pass a single DestroyContext parameter. r=dholbert
This shouldn't change behavior, but it packs the two arguments to
DestroyFrom into a single thing, and makes nsIFrame::Destroy not so easy
to call without a previous context.

This is a prerequisite to pass aDestroyContext to various things that
right now just mint one, which can cause badness, see bug 1851787 and
related bugs.

It's also a bit nicer to add things there if we need to in the future.

Differential Revision: https://phabricator.services.mozilla.com/D187578
2023-09-07 11:46:30 +00:00
Narcis Beleuzu 77ba6cde90 Backed out changeset 55052ae7d067 (bug 1851868) for reftest failure on 1153695.html . CLOSED TREE 2023-09-07 02:42:25 +03:00
Emilio Cobos Álvarez 59766eeba4 Bug 1851868 - Refactor nsIFrame::Destroy to pass a single DestroyContext parameter. r=dholbert
This shouldn't change behavior, but it packs the two arguments to
DestroyFrom into a single thing, and makes nsIFrame::Destroy not so easy
to call without a previous context.

This is a prerequisite to pass aDestroyContext to various things that
right now just mint one, which can cause badness, see bug 1851787 and
related bugs.

It's also a bit nicer to add things there if we need to in the future.

Differential Revision: https://phabricator.services.mozilla.com/D187578
2023-09-06 22:34:35 +00:00
Daisuke Akatsuka 590b41a7b8 Bug 1849791: Enable context paint in SVG of moz-anno protocol r=places-reviewers,dholbert,mak
Differential Revision: https://phabricator.services.mozilla.com/D186644
2023-08-23 21:35:01 +00:00
Robert Longson efc549bbd7 Bug 1642209 - Fix filtering of masked content r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D186528
2023-08-22 17:28:35 +00:00
Robert Longson bdc9ec0b61 Bug 1848851 - Check target element is valid type before notifying r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D186358
2023-08-17 10:06:16 +00:00
Boris Chiou 7bf8670769 Bug 1598158 - Resolve URL to SVG shape elements. r=emilio
Also update offset-path-url-001.html because it seems its ref html is
incorrect per the spec. We are using its `<coord-box>` (i.e. the reference box
of its containing block) as the viewport and user coordinate system, so its
offset-starting-position should be independent from its current position
from CSS reflow. The SVG shape element always provides the offset starting
position.

So I tweak offset-path-url-001.html a little bit to make it passed for all
browsers, and add some other tests to cover the case mentioned above and
other cases.

Differential Revision: https://phabricator.services.mozilla.com/D184431
2023-08-07 22:04:02 +00:00