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

76053 Коммитов

Автор SHA1 Сообщение Дата
Andrew Osmond 248e714e1a Bug 1711579 - Add more fuzz for SW-WR reftest intermittents. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D115294
2021-05-17 22:47:25 +00:00
Nika Layzell a8265c4766 Bug 1711078 - Part 2: Mark immutable fields in principal types as const, r=ckerschb
This is a step towards separating the mutable state on principals from const
state which can be made threadsafe. The remaining mutable fields will either
need to be moved off of nsIPrincipal or made threadsafe to destroy (e.g. using
nsMainThreadPtrHandle) and stored behind a mutex.

Serialization is handled for most types using a separate Deserializer class,
like how it was handled with `nsIURI` mutators. SystemPrincipal wasn't changed
as the `Read` method is a no-op for that class.

Differential Revision: https://phabricator.services.mozilla.com/D115092
2021-05-17 20:50:09 +00:00
Nika Layzell c2a86c631c Bug 1711078 - Part 1: Stop using the component manager to create non-system principals, r=ckerschb
This is necessary to remove the Init methods from principals, allowing
immutable fields to be marked as const and clearly separated from mutable
fields to improve threadsafety.

Differential Revision: https://phabricator.services.mozilla.com/D115091
2021-05-17 20:50:08 +00:00
Alex Lopez 455d9a088b Bug 1696251 - Pass MachCommandBase object as first argument for Mach Commands. r=mhentges,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers
As an intermediate step to allow mach commands as standalone functions, the MachCommandBase
subclass instance that currently corresponds to self has to be made available as a separate
argument (named command_context).

Differential Revision: https://phabricator.services.mozilla.com/D109650
2021-05-17 16:15:58 +00:00
Noemi Erli 3b7364b1c1 Backed out changeset c9197b3a4ba0 (bug 1394579) for causing failures in test_ext_svg_context_fill.js CLOSED TREE 2021-05-14 15:35:16 +03:00
Luca Greco a6c84fa24e Bug 1394579 - Allow SVG context-fill on privileged extensions. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D114957
2021-05-14 11:32:28 +00:00
Iulian Moraru a2a59b7c80 Backed out changeset bdc93c5c667f (bug 1710923) for causing reftest failures on scrollbar-marks-overlay.html. CLOSED TREE 2021-05-14 01:51:04 +03:00
Emily McDonough b0ac9c9982 Bug 1710946 - Minor cleanup in nsPageContentFrame::Reflow r=dholbert
Avoid shadowing of the writing mode variable, make some variables const.

Differential Revision: https://phabricator.services.mozilla.com/D115025
2021-05-13 18:42:22 +00:00
Andrew Osmond a140512abd Bug 1704792 - Part 7. Integrate use of ImageIntRegion with WebRender display lists. r=jrmuizel
This patch hooks up the ImageIntRegion to the blob recording and makes
any necessary adjusts to the display list creation to take advantage of
it.

Differential Revision: https://phabricator.services.mozilla.com/D114986
2021-05-13 16:24:08 +00:00
Andrew Osmond 8c4863cd4e Bug 1704792 - Part 6. Add calculation for ImageIntRegion for SVG images. r=jrmuizel
This patch produces an ImageIntRegion in
ComputeImageContainerDrawingParameters which will allow a future patch
in this series to produce partial blob recordings for SVG images when
used as an atlas or similar.

Differential Revision: https://phabricator.services.mozilla.com/D114985
2021-05-13 16:24:08 +00:00
Andrew Osmond 879f78a8df Bug 1704792 - Part 5. Add plumbing to move/store ImageIntRegion. r=jrmuizel
This patch has no functional change beyond changing prototypes and
adding storage for ImageIntRegion for each ImageContainer.

Differential Revision: https://phabricator.services.mozilla.com/D114984
2021-05-13 16:24:07 +00:00
Andrew Osmond c82b7d67c2 Bug 1704792 - Part 3. Make display list items request blobs for SVG images. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D111838
2021-05-13 16:24:07 +00:00
Joel Maher bd3999c92b Bug 1710923 - migrate windows 7x32 debug tests to windows 10x32. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D115017
2021-05-13 15:07:48 +00:00
Emilio Cobos Álvarez f06a044edd Bug 1710969 - Use an enum class for nsDOMCSSDeclaration::Operation. r=TYLin
No behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D115038
2021-05-13 01:26:35 +00:00
Emilio Cobos Álvarez 9e80cd9710 Bug 1708384 - Properly hide -moz-context-properties from content. r=dholbert
Depends on D114481

Differential Revision: https://phabricator.services.mozilla.com/D114482
2021-05-12 21:45:18 +00:00
Emilio Cobos Álvarez 41179cf5d6 Bug 1708384 - Properly hide -moz-control-character-visibility from content. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D114481
2021-05-12 21:45:18 +00:00
Emilio Cobos Álvarez 0080b2b390 Bug 1710643 - Fix encoding of the theme change kind so it doesn't crash when getting converted to JS if non-zero.
MANUAL PUSH: Fixes orange in some tests that do restricted theme
changes CLOSED TREE.
2021-05-13 01:53:38 +02:00
Emilio Cobos Álvarez e2075d6bdd Bug 1710643 - Remove support for unused gtk infobar widget and colors. r=stransky
Presumably they were for notifications and now we use native notifications?

Differential Revision: https://phabricator.services.mozilla.com/D114874
2021-05-12 19:13:21 +00:00
Ting-Yu Lin e3c34d34cc Bug 1709491 Part 3 - Fix Subgrid::mMarginBorderPadding when the subgrid is a scroll frame. r=dholbert
When `aGridFrame.mFrame` is a scroll frame, the inner scrolled frame
`subgridFrame` only has padding, but no margin nor border. We should add
margin and border from the outer scroll frame to `mMarginBorderPadding`
so that the grid area of the subgrid is computed correctly.

Differential Revision: https://phabricator.services.mozilla.com/D114546
2021-05-12 06:32:41 +00:00
Ting-Yu Lin 47126fa98d Bug 1709491 Part 2 - Simplify Subgrid::mMarginBorderPadding computation. r=dholbert
SizeComputationInput's logical margin and border&padding getters accept
arbitrary writing mode, so we can operate on `cbWM` directly without
using physical coordinates.

This patch is a preparation of the next part, and it shouldn't change
the behavior.

Differential Revision: https://phabricator.services.mozilla.com/D114545
2021-05-12 06:32:40 +00:00
Ting-Yu Lin 91b3a53395 Bug 1709491 Part 1 - Add SizeComputationInput::ComputedLogicalBorder(), and adapt callers. r=dholbert
The helper is going to be used in a later part.

I don't add the physical version ComputedPhysicalBorder() deliberately
because I don't want to promote the usage of physical coordinate.

Differential Revision: https://phabricator.services.mozilla.com/D114544
2021-05-12 06:32:40 +00:00
Jonathan Kew 6c3cdc729e Bug 1710667 - LetterSpacing and WordSpacing helpers don't need their nsStyleText param to be optional. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D114862
2021-05-11 17:42:29 +00:00
Jonathan Kew d4614f8d3f Bug 454059 - Generate hyperlinks in PDF output for HTML link elements. r=mstange,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D114208
2021-05-11 17:00:30 +00:00
Jonathan Kew 63f05b6d5a Bug 454059 - Add a new PaintForPrinting display list builder mode, and only create a Linkifier when printing. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D114474
2021-05-11 17:00:30 +00:00
Jonathan Kew 11144bf7be Bug 454059 - Add a LINK display-item type. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D114207
2021-05-11 17:00:29 +00:00
Emilio Cobos Álvarez 4d41ec19c2 Bug 1710324 - Tweak dark background detection so that it works for XUL use cases. r=mstange
Two changes:

 * Make it work across document boundaries, so that it works on e.g., the
   bookmarks sidebar.

 * Don't bail out if there's no scrollable frame, as XUL <tree>s use raw
   <scrollbar> elements without any scrollframe (gnarly). In that case, just
   use the target frame, but make sure to skip over themed elements (like the
   scrollbars themselves) so that we can find the right background.

The logic to check the canvas frame background etcetera was simpler in
FindNonTransparentBackgroundFrame. The only caller other than the
scrollbar darkening code is nsTextFrame, which should find a non-canvas frame
before anyways, but it doesn't hurt there.

Differential Revision: https://phabricator.services.mozilla.com/D114697
2021-05-11 13:57:18 +00:00
Emilio Cobos Álvarez 7459740759 Bug 1709746 - Factor out some sRGBColor interpolation code. r=aosmond
I didn't end up needing this for bug 1709719, but I wrote it and might
be worth landing.

Differential Revision: https://phabricator.services.mozilla.com/D114429
2021-05-11 13:24:24 +00:00
Csoregi Natalia e000635504 Backed out 3 changesets (bug 1710324) for causing mass failures and crashes. CLOSED TREE
Backed out changeset 7328372519f1 (bug 1710324)
Backed out changeset aa852464d828 (bug 1710324)
Backed out changeset 238a4cfcdc86 (bug 1710324)
2021-05-11 03:27:51 +03:00
Emilio Cobos Álvarez 01419dd4c8 Bug 1709622 - Apply EXIF resolution to SurfaceFromElement. r=tnikkel,jrmuizel,jgilbert
And make sure we return the surface of the right size for canvas, which
makes that assumption in a bunch of places.

Depends on D114686

Differential Revision: https://phabricator.services.mozilla.com/D114687
2021-05-10 23:39:05 +00:00
Emilio Cobos Álvarez 6d91a5484a Bug 1709622 - Remove no-op FLAG_WANT_DATA_SURFACE. r=tnikkel,jgilbert
Depends on D114685

Differential Revision: https://phabricator.services.mozilla.com/D114686
2021-05-10 23:39:04 +00:00
Emilio Cobos Álvarez d420cf322f Bug 1710324 - Tweak dark background detection so that it works for XUL use cases. r=mstange
Two changes:

 * Make it work across document boundaries, so that it works on e.g., the
   bookmarks sidebar.

 * Don't bail out if there's no scrollable frame, as XUL <tree>s use raw
   <scrollbar> elements without any scrollframe (gnarly). In that case, just
   use the target frame, but make sure to skip over themed elements (like the
   scrollbars themselves) so that we can find the right background.

The logic to check the canvas frame background etcetera was simpler in
FindNonTransparentBackgroundFrame. The only caller other than the
scrollbar darkening code is nsTextFrame, which should find a non-canvas frame
before anyways, but it doesn't hurt there.

Differential Revision: https://phabricator.services.mozilla.com/D114697
2021-05-10 23:33:33 +00:00
Glenn Watson b9eaec8657 Bug 1709983 - Pt 4 - Remove DefineClip use from nsFieldSetFrame r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D114568
2021-05-10 20:10:13 +00:00
Butkovits Atila 10fe73e589 Bug 1678089 - disable test_bug851485.html on Linux_fission for frequent failures. r=intermittent-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D114720
2021-05-10 16:23:01 +00:00
Butkovits Atila dd9a7e66a8 Bug 1638909 - disable transform-animation-on-path.html on Android, Mac_webrender and Windows for frequent failures. r=ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D114719
2021-05-10 16:22:01 +00:00
Miko Mynttinen a1d3ef4a17 Bug 1709452 - Do not store display list building rect in frames with continuations r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D114290
2021-05-10 14:37:49 +00:00
Emilio Cobos Álvarez 6fc419fb56 Bug 1707170 - Fix unused variable in opt builds.
MANUAL PUSH: Trivial fixup CLOSED TREE
2021-05-10 15:45:43 +02:00
Emilio Cobos Álvarez c8aa59aaae Bug 1707170 - Will-change should only create stacking contexts / containing blocks / etc if the property it'd change would apply. r=miko
As per https://drafts.csswg.org/css-will-change/#will-change.

> If any non-initial value of a property would cause the element to
> generate a containing block for absolutely positioned elements,
> specifying that property in will-change must cause the element to
> generate a containing block for absolutely positioned elements.

But in this case the transform property wouldn't apply to the element so
there's no reason to create a stacking-context.

Differential Revision: https://phabricator.services.mozilla.com/D114121
2021-05-10 13:09:42 +00:00
Andi-Bogdan Postelnicu eab549fd19 Bug 1519636 - Initial reformat of C/C++ code with clang-format version 12.0.0. r=sylvestre
clang-format version 12.0.0 (taskcluster-KEgO7qdgQ8uaewA6NkRnRA)

Differential Revision: https://phabricator.services.mozilla.com/D114211
2021-05-10 07:15:07 +00:00
Andi-Bogdan Postelnicu a1f2f7329d Bug 1519636 - Reformat recent changes to the Google coding style. r=necko-reviewers,valentin,sylvestre
Updated with clang-format version 11.0.1 (taskcluster-GI8pmG3eQ_OSXfjFfr2yFw)

Differential Revision: https://phabricator.services.mozilla.com/D114618
2021-05-10 07:15:06 +00:00
Matt Woodrow a6d0dff2b5 Bug 1707513 - Add 'drawSnapshot' mode to reftest harness, and annotate all current failures. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D114188
2021-05-10 00:28:01 +00:00
Matt Woodrow 728f5a24cf Bug 1708325 - Allow doing an extra refresh driver tick for user input events. r=mstange,bas
Differential Revision: https://phabricator.services.mozilla.com/D113737
2021-05-10 00:00:51 +00:00
Matt Woodrow e76f264866 Bug 1708325 - Change frame throttling code in nsRefreshDriver to explicitly track the pending frames. r=mstange
This makes it easier to understand and will make it easier to not include 'extra' frames (as we're hoping they will coalesce with the original frame on the compositor).

Differential Revision: https://phabricator.services.mozilla.com/D113736
2021-05-10 00:00:50 +00:00
Dorel Luca 9bdd0264e6 Backed out 2 changesets (bug 1708325) for Build bustages in gecko/layout/base/nsRefreshDriver.h. CLOSED TREE
Backed out changeset 3fe338644983 (bug 1708325)
Backed out changeset edf1ac18cc8c (bug 1708325)
2021-05-10 01:52:44 +03:00
Matt Woodrow fd7a809e96 Bug 1708325 - Allow doing an extra refresh driver tick for user input events. r=mstange,bas
Differential Revision: https://phabricator.services.mozilla.com/D113737
2021-05-09 22:35:44 +00:00
Matt Woodrow 8daf5cd7e6 Bug 1708325 - Change frame throttling code in nsRefreshDriver to explicitly track the pending frames. r=mstange
This makes it easier to understand and will make it easier to not include 'extra' frames (as we're hoping they will coalesce with the original frame on the compositor).

Differential Revision: https://phabricator.services.mozilla.com/D113736
2021-05-09 22:35:44 +00:00
Alexandru Michis 4b2cad43d1 Backed out 2 changesets (bug 1707513) for causing reftest failures in partial-prerender-expansion-with-resolution-1.html
Backed out changeset f9bdd1b929f2 (bug 1707513)
Backed out changeset b76d28f3a159 (bug 1707513)
2021-05-08 22:13:23 +03:00
Matt Woodrow a77dc2167d Bug 1707513 - Add 'drawSnapshot' mode to reftest harness, and annotate all current failures. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D114188
2021-05-08 05:52:19 +00:00
Botond Ballo 96095f7835 Bug 1700169 - Add a reftest. r=tnikkel
Depends on D114457

Differential Revision: https://phabricator.services.mozilla.com/D114458
2021-05-07 21:30:59 +00:00
Markus Stange d9b559d1d8 Bug 1705120 - When a menu item in a native menu is activated, hide and close any non-native menus at the right times. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D114441
2021-05-07 17:00:22 +00:00
Markus Stange e40e07a3c6 Bug 1705120 - Factor out another part of this function into a new function called HideOpenMenusBeforeExecutingMenu(). r=harry
Differential Revision: https://phabricator.services.mozilla.com/D114440
2021-05-07 17:00:21 +00:00