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

728062 Коммитов

Автор SHA1 Сообщение Дата
Frederic Wang 42b117ee83 Bug 1667527 - Implement CSS parsing for the math-depth property r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D91500
2020-09-28 10:42:49 +00:00
Christoph Kerschbaumer da6037f4a4 Bug 1667337: Remove unnecessary pref security.csp.enableStrictDynamic and security.csp.experimentalEnabled r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D91403
2020-09-28 10:10:21 +00:00
Sebastian Hengst e391849424 Backed out 4 changesets (bug 1662123, bug 1662122) for build bustage because of missing toolkit/components/glean/api/src/metrics.rs. CLOSED TREE
Backed out changeset 36ef41fa3470 (bug 1662123)
Backed out changeset 69089070fb49 (bug 1662123)
Backed out changeset 86d5740e32a2 (bug 1662122)
Backed out changeset 060270c0220f (bug 1662122)
2020-09-28 13:46:12 +02:00
Sebastian Hengst f649c698e1 Backed out changeset ce43b034a221 (bug 1666827) for failing browser-chrome's browser_preview_navigate.js 2020-09-28 13:44:14 +02:00
Emilio Cobos Álvarez 9b3ad624de Bug 1666827 - Tests. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D91527
2020-09-28 09:43:58 +00:00
Emilio Cobos Álvarez 271cf91350 Bug 1666827 - Mark browsing contexts where we host static documents as "printing". r=smaug
This prevents e.g. navigating the print preview document.

I can try to come up with a test for this, though testing for something
not happening is always a bit more annoying... :)

Depends on D91438

Differential Revision: https://phabricator.services.mozilla.com/D91439
2020-09-27 12:07:19 +00:00
Emilio Cobos Álvarez bed4af1f24 Bug 1666827 - Make nsDocShell::mIsPrintPreview a flag in the top browsing context. r=smaug
This should make it work on fission, plus is simpler than the
alternative of traversing the whole docshell tree and then undo it.

It also is going to make easier the actual fix for this bug.

Differential Revision: https://phabricator.services.mozilla.com/D91438
2020-09-27 12:07:19 +00:00
Jan-Erik Rediger c503da69ce Bug 1662123 - Measure the time it takes to initialize FOG. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D90850
2020-09-28 10:09:28 +00:00
Jan-Erik Rediger 375f13589a Bug 1662123 - Normalize input paths from the metric index file. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D91007
2020-09-28 10:09:15 +00:00
Jan-Erik Rediger 4d6447d396 Bug 1662122 - Implement IPC for timespan metrics. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D90849
2020-09-28 10:09:08 +00:00
Jan-Erik Rediger e2e02e6529 Bug 1662122 - Dispatch timespan metric recording. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D90848
2020-09-28 10:09:00 +00:00
pctopgs f8579e23b4 Bug 1265275 - Removed using namespace mozilla::services; from PresentationSessionInfo.cpp r=smaug
Depends on D87722

Differential Revision: https://phabricator.services.mozilla.com/D87942
2020-09-28 09:32:29 +00:00
Glenn Watson 00ab7476b8 Bug 1667707 - Optimize clip image mask rendering for axis-aligned masks. r=jrmuizel
There is some complexity in rendering clip masks that contain tiled
images, when the transform is complex (getting edge AA correct etc).
To work around this, the existing implementation simply draws the
entire primitive region with each image tile of the clip mask. This
works but is slow on large clip masks.

We can apply a simple optimization when the clip is axis-aligned,
which is the common case for the vast majority of pages. When this
case occurs, calculate a device space sub-rect for each of the
image mask tiles, and only draw to that part of the clip mask.

This can drastically reduce the amount of overdraw on pages that
have tiled clip masks that take up a large portion of the screen.
In the long term, WR should handle the case of complex transform
+ tiled clip masks better too.

Differential Revision: https://phabricator.services.mozilla.com/D91540
2020-09-28 09:15:34 +00:00
Sebastian Hengst 13686b591c Bug 1667512 - expectation update for cross-origin-opener-policy/resource-popup.https.html. r=jgraham DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D91565
2020-09-28 09:04:00 +00:00
Mirko Brodesser 96caedd514 Bug 1665645: add missing `requestFlakyTimeout` call to "editor/libeditor/tests/test_CF_HTML_clipboard.html". r=hsivonen
See <https://bugzilla.mozilla.org/show_bug.cgi?id=1665645#c7> for more
context.

Differential Revision: https://phabricator.services.mozilla.com/D90838
2020-09-28 08:13:33 +00:00
Christoph Kerschbaumer 359ca7017e Bug 1666419: Assert IsSafeToRunScript. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D91391
2020-09-28 06:29:44 +00:00
Christoph Kerschbaumer f27594d62e Bug 1667333: Remove unecessary prefs for mime type checking r=necko-reviewers,evilpie,valentin
Differential Revision: https://phabricator.services.mozilla.com/D91406
2020-09-28 06:35:10 +00:00
Narcis Beleuzu 7a85c664e8 Backed out changeset dc423cb83ba6 (bug 1667707) for wr failures on clip-path-polygon-013.html . CLOSED TREE 2020-09-28 09:51:51 +03:00
Glenn Watson 6dcd0867ad Bug 1667707 - Optimize clip image mask rendering for axis-aligned masks. r=jrmuizel
There is some complexity in rendering clip masks that contain tiled
images, when the transform is complex (getting edge AA correct etc).
To work around this, the existing implementation simply draws the
entire primitive region with each image tile of the clip mask. This
works but is slow on large clip masks.

We can apply a simple optimization when the clip is axis-aligned,
which is the common case for the vast majority of pages. When this
case occurs, calculate a device space sub-rect for each of the
image mask tiles, and only draw to that part of the clip mask.

This can drastically reduce the amount of overdraw on pages that
have tiled clip masks that take up a large portion of the screen.
In the long term, WR should handle the case of complex transform
+ tiled clip masks better too.

Differential Revision: https://phabricator.services.mozilla.com/D91540
2020-09-28 02:44:33 +00:00
Matt Woodrow 64f117aeed Bug 1667267 - Set MacIOSurfaceImage picture rect in device pixels. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D91541
2020-09-28 02:48:32 +00:00
Kartikaya Gupta f2e93c91f6 Bug 1667656 - Replace AppendToString of nsIntRegion with ostream usage. r=mattwoodrow
As with nsRegion, nsIntRegion has an implicit constructor for IntRect and so
some dangling Stringify(IntRect) sites also get converted here.

Depends on D91525

Differential Revision: https://phabricator.services.mozilla.com/D91526
2020-09-28 01:14:07 +00:00
Kartikaya Gupta bf06857e84 Bug 1667656 - Replace AppendToString of nsRegion with ostream usage. r=mattwoodrow
Apparently a bunch of Stringify(nsRect) sites were getting converted to
Stringify(nsRegion(nsRect)) due to the the nsRegion implicit constructor, so
this updates those too.

Depends on D91524

Differential Revision: https://phabricator.services.mozilla.com/D91525
2020-09-28 01:14:00 +00:00
Kartikaya Gupta f93a3b1df0 Bug 1667656 - Replace AppendToString of nsSize with ostream usage. r=mattwoodrow
Depends on D91523

Differential Revision: https://phabricator.services.mozilla.com/D91524
2020-09-28 01:13:52 +00:00
Kartikaya Gupta edcfb6fa97 Bug 1667656 - Remove unused IntRectAbsoluteTyped AppendToString function. r=mattwoodrow
Depends on D91522

Differential Revision: https://phabricator.services.mozilla.com/D91523
2020-09-28 01:13:44 +00:00
Kartikaya Gupta 4d3d4a6f9a Bug 1667656 - Replace AppendToString of RectAbsoluteTyped with ostream usage. r=mattwoodrow
Depends on D91521

Differential Revision: https://phabricator.services.mozilla.com/D91522
2020-09-28 01:12:15 +00:00
Kartikaya Gupta 1d20654838 Bug 1667656 - Replace AppendToString of IntRectTyped with ostream usage. r=mattwoodrow
Depends on D91520

Differential Revision: https://phabricator.services.mozilla.com/D91521
2020-09-28 01:12:03 +00:00
Kartikaya Gupta 2f904cfd10 Bug 1667656 - Replace AppendToString of RectTyped with ostream usage. r=mattwoodrow
Depends on D91519

Differential Revision: https://phabricator.services.mozilla.com/D91520
2020-09-28 01:11:55 +00:00
Kartikaya Gupta 8dbc8f4ce4 Bug 1667656 - Replace AppendToString of IntPointTyped with ostream usage. r=mattwoodrow
Depends on D91518

Differential Revision: https://phabricator.services.mozilla.com/D91519
2020-09-28 00:44:02 +00:00
Kartikaya Gupta f9cb912d39 Bug 1667656 - Remove unused Point3DTyped AppendToString function. r=mattwoodrow
Depends on D91517

Differential Revision: https://phabricator.services.mozilla.com/D91518
2020-09-28 00:37:25 +00:00
Kartikaya Gupta 0578ebae47 Bug 1667656 - Use ostream operator instead of AppendToString for PointTyped. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D91517
2020-09-28 00:36:32 +00:00
Masayuki Nakano a9cd962def Bug 1658702 - part 22: Get rid of wrong `MOZ_ASSERT`s in `WSRunScanner::GetRangeExtendToContainInvisibleWhiteSpacesAtRangeBoundaries()` r=m_kato
If deleting/replacing range selects a text node, it may shrink the range
to start and end of the text node.  So, the result may not be wider than
the original range.

This behavior is compatible with Blink.

Depends on D90639

Differential Revision: https://phabricator.services.mozilla.com/D90640
2020-09-27 06:02:38 +00:00
Masayuki Nakano d3fe79f0e9 Bug 1658702 - part 21 Initialize target ranges for all edit actions which runs `DeleteSelectionAsSubAction()` r=m_kato
A lot of edit actions calls `DeleteSelectionAsSubAction()` if selection is
not collapsed.  In such case, `getTargetRanges()` should return same result
as when the selection range is simply deleted.

This patch creates 2 methods to consider whether `EditAction` causes
running `DeleteSelectionAsSubAction()` with collapsed selection or
non-collapsed selection.

And makes `DeleteSelectionAsAction()` stop initializing the target ranges
itself.  Instead, makes `AutoEditActionDataSetter` do it immediately before
dispatching `beforeinput` event unless it's been already initialized manually.
* https://searchfox.org/mozilla-central/rev/30e70f2fe80c97bfbfcd975e68538cefd7f58b2a/editor/libeditor/TextEditor.cpp#492
* https://searchfox.org/mozilla-central/rev/30e70f2fe80c97bfbfcd975e68538cefd7f58b2a/editor/libeditor/TextEditor.cpp#731
* https://searchfox.org/mozilla-central/rev/30e70f2fe80c97bfbfcd975e68538cefd7f58b2a/editor/libeditor/TextEditorDataTransfer.cpp#503

The correctness of the new utility methods are tested with new `MOZ_ASSERT`
in `DeleteSelectionAsSubAction()`.

Additionally, this reorganizes `input-events-get-target-ranges-*.html`.
* Moving common code into `input-events-get-target-ranges.js`
* Moving non-collapsed selection cases into `input-events-get-target-ranges-non-collapsed-selection.html`
* Adding "typing a" case into the new test for testing this patch's behavior

Depends on D90542

Differential Revision: https://phabricator.services.mozilla.com/D90639
2020-09-27 04:49:41 +00:00
Jeff Muizelaar 8d848ca717 Bug 1667691 - qcms: Make lutType safe. r=aosmond
Instead of using a common buffer for all lookup tables
we just use individual Vecs for each.

Differential Revision: https://phabricator.services.mozilla.com/D91534
2020-09-28 00:34:15 +00:00
Jeff Muizelaar ac8e8a021c Bug 1667689 - Make set_rgb_colorants safe. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D91533
2020-09-27 22:56:03 +00:00
Jeff Muizelaar a6bc0ef436 Bug 1667689 - Make build_RGB_to_XYZ_transfer_matrix safe. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D91532
2020-09-27 22:55:56 +00:00
Jeff Muizelaar 8f56d5e521 Bug 1667689 - Make curve_from_table safe. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D91531
2020-09-27 22:54:37 +00:00
Jeff Muizelaar 23b9ed74a2 Bug 1667687 - qcms: Make read_nested safe. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D91530
2020-09-27 22:53:13 +00:00
Jeff Muizelaar 8daf0bd825 Bug 1667686 - Use ptr::write_unaligned to properly handle unaligned accesses. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D91529
2020-09-27 22:52:55 +00:00
Glenn Watson 4e804dac52 Bug 1623792 - Pt 12 - Embed prim visibility info inside instance. r=nical
Previously, there was typically a large difference between the
number of primitives in the display list and the number of prims
that were considered visible. However, the Gecko display port
ensures that this is not the case. Additionally, the size of
the instance structure was previously sensitive to performance,
as they were copied during picture cache slice creation, but this
is no longer the case.

As part of the work to retain more state between frames and scenes,
keep the prim visibility information embedded inside the instance
rather than creating and storing it per frame in the prim scratch
buffer.

This shows up as a performance win in talos, and simplifies some
of the code that interacts with this. Follow up patches will
remove the existence of some of these fields, which are doing
duplicate / redundant work.

Differential Revision: https://phabricator.services.mozilla.com/D91360
2020-09-27 21:45:25 +00:00
Noemi Erli da15ef2ccb Backed out changeset 3b6512d24775 (bug 1623792) for causing wrench bustages CLOSED TREE 2020-09-28 00:15:17 +03:00
Dale Harvey bca1496fa3 Bug 1666977 - Update expiry for REGION_LOCATION_SERVICES_DIFFERENCE histogram. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D91244
2020-09-24 15:35:44 +00:00
Glenn Watson e654789627 Bug 1623792 - Pt 12 - Embed prim visibility info inside instance. r=nical
Previously, there was typically a large difference between the
number of primitives in the display list and the number of prims
that were considered visible. However, the Gecko display port
ensures that this is not the case. Additionally, the size of
the instance structure was previously sensitive to performance,
as they were copied during picture cache slice creation, but this
is no longer the case.

As part of the work to retain more state between frames and scenes,
keep the prim visibility information embedded inside the instance
rather than creating and storing it per frame in the prim scratch
buffer.

This shows up as a performance win in talos, and simplifies some
of the code that interacts with this. Follow up patches will
remove the existence of some of these fields, which are doing
duplicate / redundant work.

Differential Revision: https://phabricator.services.mozilla.com/D91360
2020-09-25 09:35:04 +00:00
Jeff Muizelaar b5a1244a00 Bug 1667374 - Make curveType more Rust like. r=aosmond
Turns curveType into a enum. The change is mostly mechanical fixing of
the the code to the new structure except that for Parametrics curves
we now store the result of COUNT_TO_LENGTH as the len.
This mostly affects compute_curve_gamma_table_type_parametric where we
use the post COUNT_TO_LENGTH instead of the pre COUNT_TO_LENGTH.

Differential Revision: https://phabricator.services.mozilla.com/D91421
2020-09-27 18:57:50 +00:00
Glenn Watson 5440a231d9 Bug 1667297 - Fix dirty rect region calculation when slice backed by non-texture surface. r=nical
Previously, dirty rect regions would only be created for tiles
with a texture surface. This means that slices where the tile is
handled by a background color only would not include that in the
dirty rect area.

This is required for a follow up optimization that will rely on
this dirty rect region for primitive visibility determination, but
it may also have shown up as a visible bug on platforms that
support partial present.

Differential Revision: https://phabricator.services.mozilla.com/D91384
2020-09-25 09:32:36 +00:00
Jan de Mooij 47d9b0c94d Bug 1667330 - Stop exposing constructor names of JS objects. r=iain
The getConstructorName testing function and UbiNode got the constructor name of a
JS object via the ObjectGroup's TypeNewScript. There's currently no way to get that
information without TI (and it always depended on brittle optimization heuristics)
so this patch removes that code.

Differential Revision: https://phabricator.services.mozilla.com/D91419
2020-09-26 03:00:15 +00:00
Jim Mathies 5a1d3dffad Bug 1667388 - Ship credit card autofill in Fx82 by default. r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D91435
2020-09-25 16:49:44 +00:00
Tooru Fujisawa 3f5e1e0a1d Bug 1667615 - Move module handling from GlobalHelperThreadState::finishModuleParseTask to GlobalHelperThreadState::finishSingleParseTask. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D91512
2020-09-27 12:51:57 +00:00
Butkovits Atila 670e13b51d Backed out changeset 8aecf9b4bdc4 (bug 1656689) for causing high failure rate on test_scroll_space_no_range_overflow_scroll.html. CLOSED TREE 2020-09-27 06:24:01 +03:00
Timothy Nikkel 007832c73e Bug 1656689. Use GetAvailableScrollingDirectionsForUserInputEvents in nsLayoutUtils::GetNearestScrollableFrameForDirection. r=kats
Keyboard arrow key scrolls go through PresShell::ScrollLine/ScrollCharacter. When these look for a scroll frame they eventually end up at nsLayoutUtils::GetNearestScrollableFrameForDirection.

nsLayoutUtils::GetNearestScrollableFrameForDirection does two things wrong when determining if the scroll frame is scrollable by apz: it disallows overflow hidden scrolling, and it uses GetAvailableScrollingDirections which is based on the layout scroll range.

Using GetAvailableScrollingDirectionsForUserInputEvents takes into account both of these factors.

GetNearestScrollableFrameForDirection is used by:
-gfx/layers/apz/src/FocusTarget.cpp
-EventStateManager::DoContentCommandScrollEvent
-PageMove, ScrollPage, ScrollLine, ScrollCharacter, CompleteScroll of PresShell
All of these should want the more apz aware function.

Differential Revision: https://phabricator.services.mozilla.com/D90498
2020-09-25 09:32:29 +00:00
Zibi Braniecki 5bbfa14bf4 Bug 1667307 - Update fluent-rs to 0.13. r=kamidphish
Differential Revision: https://lando.services.mozilla.com/D91390/
2020-09-27 02:04:35 +02:00