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

798020 Коммитов

Автор SHA1 Сообщение Дата
Morten Stenshorne 92c0606aed Bug 1771714 [wpt PR 34249] - Pass parent constraint space to child space builder when possible., a=testonly
Automatic update from web-platform-tests
Pass parent constraint space to child space builder when possible.

Prefer using the NGConstraintSpaceBuilder(const NGConstraintSpace&
parent_space...) constructor, when possible. It inherits a flag from the
parent - "ShouldPropagateChildBreakValues". Failing to inherit this
inside the table layout code was actually causing bugs (see test
included).

The real motivation behind this change, though, is that I'm planning on
adding one more flag here for repeated content (repeated table headers /
footers, and also fixed-positioned elements when printing).

The changes here are all about tables and out-of-flow positioning. We
can now get rid of a couple of members from NGOutOfFlowLayoutPart. At
the same time, now that we're using the NGConstraintSpaceBuilder that
takes a constraint space, we can no longer "cheat" about what the
parent's writing mode is. So NGOutOfFlowLayoutPart::GenerateFragment()
needs to convert the size of the child from the writing-mode of the
child to the writing-mode of the container, and pass that as available
size to the constraint space builder.

LayoutNGMixin<Base>::UpdateOutOfFlowBlockLayout() was also passing an
incorrect constraint space to NGOutOfFlowLayoutPart. It should be
created based on the container, NOT the child. Because of this change,
we now need to remove the DCHECK for formatting context root from
NGConstraintSpace::CreateFromLayoutObject(), since we may now end up
here even if the containing block isn't a formatting context root. But
that's okay, as long as we're not going to lay it out. Re-add [1] an
equivalent DCHECK to UpdateInFlowBlockLayout().

[1] Was removed in CL:1473393, in favor of the one in
CreateFromLayoutObject(), which now is gone.

Bug: 1078927
Change-Id: I28783925326df87311c9894b72f898525daa5811
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3673761
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1008987}

--

wpt-commits: 76bd0b1aee55e55bece826094be696f4c1ee54fa
wpt-pr: 34249
2022-06-10 03:32:48 +00:00
Katherine Patenio 3bd407366a Bug 1769147 - open Colorways closet modal from about:addons. r=dao,rpl
Differential Revision: https://phabricator.services.mozilla.com/D147806
2022-06-10 02:31:46 +00:00
Alexis Beingessner 15df98d3c7 Bug 1773576 - add audit for bit-set. r=bholley
Depends on D148853

Differential Revision: https://phabricator.services.mozilla.com/D148854
2022-06-10 02:12:16 +00:00
Alexis Beingessner b03ec06213 Bug 1773576 - add audit for bit-vec. r=bholley
Depends on D148852

Differential Revision: https://phabricator.services.mozilla.com/D148853
2022-06-10 02:12:15 +00:00
Alexis Beingessner 77c760028e Bug 1773576 - add audit for linked-hash-map. r=bholley
Depends on D148851

Differential Revision: https://phabricator.services.mozilla.com/D148852
2022-06-10 02:12:15 +00:00
Alexis Beingessner 5041f6cb0b Bug 1773576 - add audit for thin-vec. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D148851
2022-06-10 02:12:15 +00:00
Bobby Holley 5bdca3b88c Bug 1773592 - Pass --frozen to cargo-vet in CI. r=glandium
This is the new flag to ensure we don't hit the network.

Differential Revision: https://phabricator.services.mozilla.com/D148869
2022-06-10 02:11:07 +00:00
Bobby Holley 2ad61545d2 Bug 1773592 - Bump cargo vet rev. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D148868
2022-06-10 02:11:06 +00:00
Brad Werth d0a86ec792 Bug 1773156 Part 3: Remove old tile cache backdrops from new scenes without a backdrop. r=gw
Since backdrop_surface is not cleared on prepare_for_new_scene, it's possible
that the tile cache might be carrying "old" backdrop info. Existing code
correctly handles this case *as long as* the new scene also has a backdrop.
This change is necessary to make sure that old backdrop info is cleared
even when the new scene does not contain a backdrop.

Differential Revision: https://phabricator.services.mozilla.com/D148848
2022-06-10 00:35:16 +00:00
Brad Werth 9000a5c7ea Bug 1773156 Part 2: Don't destroy tile cache backdrop surfaces during prepare_for_new_scene. r=gw
It's not necessary to clear the tile cache backdrop surface when a new
scene arrives. Doing so has unintended consequences because clearing the
backdrop surface forces the destruction of the associated native surface.
That native surface will very likely just have to be recreated. If the new
scene doesn't have a backdrop, or has a different backdrop, the logic in
take_context is sufficient to destroy the old one.

Depends on D148704

Differential Revision: https://phabricator.services.mozilla.com/D148705
2022-06-10 00:35:16 +00:00
Brad Werth 461675e683 Bug 1773156 Part 1: Deallocate native color backdrop surfaces upon tile cache destroy. r=gw
This ensures that the native surfaces for color backdrops are destroyed
when the tile cache itself is destroyed.

Depends on D148678

Differential Revision: https://phabricator.services.mozilla.com/D148704
2022-06-10 00:35:16 +00:00
Emily McDonough 674b8193c6 Bug 1769161 Part 4 - Add test for unwriteable margin scaling with page-size mismatches r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D146603
2022-06-09 23:51:08 +00:00
Emily McDonough 9850473d52 Bug 1769161 Part 3 - Scale unwriteable margins and user-specified margins by the page-size scaling factor r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D148207
2022-06-09 23:51:07 +00:00
Emily McDonough 07eeeab1e8 Bug 1769161 Part 2 - Rename and document margin and sizing calculation for nsPageFrame margins. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D146602
2022-06-09 23:51:07 +00:00
Emily McDonough 7011873dd9 Bug 1769161 Part 1 - Refactor scaling factor due to page-size for nsPageFrame to be in its own function. r=dholbert
This includes two versions of the function, one which takes an already-computed
page size to avoid computing this multiple times for a caller, and the other
which computes this value itself for convenience.

Differential Revision: https://phabricator.services.mozilla.com/D146601
2022-06-09 23:51:07 +00:00
Denis Palmeiro c103ebaa2c Bug 1773304: Exclude all PerfSpewer code and header includes if disabled r=iain
Differential Revision: https://phabricator.services.mozilla.com/D148812
2022-06-09 23:38:55 +00:00
Nick Alexander 018de168bd Bug 1770473 - Encode Unicode as UTF-8 in `TelemetrySend.sendStandalonePing`. r=chutten
The tests in the Pre: part will exercise this functionality once we
cut over to `pingsender2`.

Differential Revision: https://phabricator.services.mozilla.com/D147612
2022-06-09 23:29:04 +00:00
Nick Alexander fb1394eaa8 Bug 1770473 - Pre: Add shutdown ping tests; assert existing `pingsender` Unicode encoding. r=chutten
When enabling `pingsender2`, I witnessed Unicode encoding differences
that were not caught by testing.  In addition, the resultant 500
status codes when submitting shutdown pings were not caught.

Differential Revision: https://phabricator.services.mozilla.com/D147611
2022-06-09 23:29:04 +00:00
Emilio Cobos Álvarez 40b88fe3ed Bug 1773342 - Treat text scale factor as an additional zoom factor, on both GTK and Windows. r=stransky,handyman
GTK already did this, sorta, in a platform-specific way: by hacking in the
scale factor in the CSS screen code. I think this is cleaner, since we have a
centralized place to compute the full zoom in nsPresContext, and that code path
is fairly well tested.

This also would make it trivial to make this text zoom rather than full zoom in
the future, if we wanted (which is probably _technically_ more correct, even
though less pretty less pretty).

This also allows us to remove some hacks where we were undoing the text scale
factor on Linux (since stuff like scrollbars already ignore full zoom).

Depends on D148675

Differential Revision: https://phabricator.services.mozilla.com/D148676
2022-06-09 23:02:11 +00:00
Emilio Cobos Álvarez f7208152a1 Bug 1773342 - Expose Windows' text scale factor to LookAndFeel. r=handyman
Much like we expose overlay scrollbars.

Differential Revision: https://phabricator.services.mozilla.com/D148675
2022-06-09 22:44:28 +00:00
Molnar Sandor 1a418107d1 Merge mozilla-central to autoland. a=merge 2022-06-10 01:04:00 +03:00
Ryan Hunt 86350d5756 Bug 1762658 - wasm: Assert that a module is valid when we're using wasm-smith. r=decoder
wasm-smith should always generate a valid wasm module. We may catch bugs in
our validation algorithm if we check for this while fuzzing. Adding this
uncovered an issue in our handling of export names.

Differential Revision: https://phabricator.services.mozilla.com/D147366
2022-06-09 21:51:53 +00:00
Ryan Hunt 793d9e2b6a Bug 1762658 - wasm: Add CacheableName to support names with null terminator before end. r=yury
A WebAssembly 'name' is a length terminated sequence of UTF-8 characters.
This implies that '\0' can show up in a string before the end, and we
cannot treat them like c-strings. A new CacheableName struct is added
to support this. CacheableChars is still used in unrelated areas and
left as-is.

The test importer is extended to handle escaping unusual unicode
sequences better, and names.wast is now imported.

Differential Revision: https://phabricator.services.mozilla.com/D147365
2022-06-09 21:51:53 +00:00
Ryan Hunt 4e26b093e6 Bug 1762658 - wasm: Use wast crate directly for wasmTextToBinary. r=yury
This lets us support confusable unicode characters, which are needed
in names.wast.

Differential Revision: https://phabricator.services.mozilla.com/D147363
2022-06-09 21:51:53 +00:00
Molnar Sandor 973000acec Merge autoland to mozilla-central. a=merge 2022-06-10 00:48:04 +03:00
Michael Ratcliffe 622e16558f Bug 1603831 - Fix cookie sorting by date in storage panel r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D58074
2022-06-09 21:41:50 +00:00
Simran Sandhu 4572d52ea2 Bug 1773124 - Make devtools/shared/natural-sort.js easier to read r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D148545
2022-06-09 21:41:49 +00:00
Mark Banner 73fcd6408d Bug 1773452 - Disable ESlint warnings about use of osfile for osfile files. r=barret
Differential Revision: https://phabricator.services.mozilla.com/D148754
2022-06-09 21:05:38 +00:00
Bernard Igiri b0cd658b0c Bug 1765453 - Restoring Update Notification CSS r=Gijs
Restoring CSS for the Update Available notification that was mistakenly removed.

Differential Revision: https://phabricator.services.mozilla.com/D147509
2022-06-09 20:36:49 +00:00
Mike Hommey ce1f4f658c Bug 1773399 - Update async-trait to 0.1.56. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148733
2022-06-09 20:33:50 +00:00
Mike Hommey 28b4e8e0af Bug 1773399 - Update syn to 1.0.96. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148732
2022-06-09 20:33:50 +00:00
Mike Hommey 9b5cc41349 Bug 1773399 - Update proc-macro2 to 1.0.39. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148731
2022-06-09 20:33:49 +00:00
Mike Hommey 7924c95f2d Bug 1773399 - Update uuid to 0.8.2. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148730
2022-06-09 20:33:49 +00:00
Mike Hommey 8d6ba640ac Bug 1773399 - Update tracing to 0.1.35 and tracing-core to 0.1.27. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148729
2022-06-09 20:33:48 +00:00
Mike Hommey 21f74c6178 Bug 1773399 - Update tokio-stream to 0.1.9. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148728
2022-06-09 20:33:48 +00:00
Mike Hommey d7460d2746 Bug 1773399 - Update tokio-macros to 1.8.0. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148727
2022-06-09 20:33:47 +00:00
Mike Hommey ab16cc8b3b Bug 1773399 - Update tokio to 0.1.22. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148726
2022-06-09 20:23:30 +00:00
Mike Hommey a7716455fb Bug 1773399 - Update target-lexicon to 0.12.4. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148725
2022-06-09 20:23:29 +00:00
Mike Hommey b898203bf8 Bug 1773399 - Update sfv to 0.9.2. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148724
2022-06-09 20:23:29 +00:00
Mike Hommey 311f8b84a3 Bug 1773399 - Update serde_with to 1.14.0. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148723
2022-06-09 20:23:28 +00:00
Mike Hommey 5c399b2466 Bug 1773399 - Update serde_json to 1.0.81. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148722
2022-06-09 20:23:27 +00:00
Mike Hommey efdbfffd1f Bug 1773399 - Update serde to 1.0.137. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148721
2022-06-09 20:23:27 +00:00
Mike Hommey 05b7b9f11c Bug 1773399 - Update rust_decimal to 1.24.0. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148720
2022-06-09 20:23:27 +00:00
Molnar Sandor 8c504b904a Backed out 2 changesets (bug 1773156) for causing reftest failures. CLOSED TREE
Backed out changeset bceb7f6acfd6 (bug 1773156)
Backed out changeset 7f26513a5bb6 (bug 1773156)
2022-06-09 23:15:23 +03:00
Mike Hommey 84bb0f814b Bug 1773399 - Update regex to 1.5.6. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148719
2022-06-09 20:05:46 +00:00
Mike Hommey 512aef9eed Bug 1773399 - Update profiling to 1.0.6. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148718
2022-06-09 20:05:46 +00:00
Mike Hommey ba89454470 Bug 1773399 - Update plist to 1.3.1. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148717
2022-06-09 20:05:45 +00:00
Mike Hommey 0b41934917 Bug 1773399 - Update os_str_bytes to 6.1.0. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148716
2022-06-09 20:05:45 +00:00
Mike Hommey 3b67b6dd54 Bug 1773399 - Update once_cell to 1.12.0. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148715
2022-06-09 20:05:44 +00:00
Mike Hommey a1dac0705a Bug 1773399 - Update miniz_oxide to 0.5.3. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148714
2022-06-09 20:05:44 +00:00