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

778287 Коммитов

Автор SHA1 Сообщение Дата
Andreas Pehrson cf7d6cca2b Bug 1742804 - Re-land changeset fa867b130b44. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D132501
2021-12-01 12:59:44 +00:00
Gijs Kruitbosch e36840652c Bug 1705211, r=nika,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D131856
2021-12-01 12:36:07 +00:00
Butkovits Atila 4c80e74136 Bug 1722607 - disable browser_ext_tabs_discard_reversed.js on Mac_64 for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D131998
2021-12-01 12:32:21 +00:00
Dave Townsend 0737004db3 Bug 1741588: Allow retrieving page data in the background. r=Standard8
Some of the specifics of this aren't worked out yet, so this is currently unused and expect changes to the specific load behaviour in the future.

Differential Revision: https://phabricator.services.mozilla.com/D131333
2021-12-01 12:28:31 +00:00
Sandor Molnar eb4192a2b9 Backed out changeset b17c1312fa2e (bug 1739615) for causing mochitest failures in browser_startup_syncIPC. CLOSED TREE 2021-12-01 14:42:33 +02:00
Sandor Molnar 2566b0c71c Backed out changeset 66f4a3acc86b (bug 1738937) for causing xpc failures in test_quicksuggest_merino. CLOSED TREE 2021-12-01 13:46:34 +02:00
moz-wptsync-bot 52159f3b1b Bug 1743705 - [wpt-sync] Update web-platform-tests to ad307133ca28af249afeab2700bdae78419c2a11, a=testonly
MANUAL PUSH: wpt sync bot

wpt-head: ad307133ca28af249afeab2700bdae78419c2a11
wpt-type: landing
2021-12-01 11:18:37 +00:00
moz-wptsync-bot b4c59882f6 Bug 1743406 [wpt PR 31776] - Update wpt metadata, a=testonly
wpt-pr: 31776
wpt-type: metadata
2021-12-01 11:18:36 +00:00
Oriol Brufau ac2c6da6eb Bug 1743406 [wpt PR 31776] - Test that if a focused element becomes expressly inert, it stops being focused, a=testonly
Automatic update from web-platform-tests
Test that if a focused element becomes expressly inert, it stops being focused

https://html.spec.whatwg.org/multipage/interaction.html#focus-fixup-rule

Blink passes the test now, used to fail before https://crrev.com/941651
since enabling inertness was not enough, also needed a style recalc.

Firefox and WebKit fail the test since they don't seem to implement
the focus fixup at all, e.g. removing tabindex attr doesn't work either.

--

wpt-commits: ad307133ca28af249afeab2700bdae78419c2a11
wpt-pr: 31776
2021-12-01 11:18:36 +00:00
moz-wptsync-bot 5d95e17bec Bug 1742815 [wpt PR 31731] - Update wpt metadata, a=testonly
wpt-pr: 31731
wpt-type: metadata
2021-12-01 11:18:35 +00:00
Arthur Hemery 7b4147ecd4 Bug 1742815 [wpt PR 31731] - [Fixit] Make sandbox + COOP break the opener., a=testonly
Automatic update from web-platform-tests
[Fixit] Make sandbox + COOP break the opener.

Sandbox flags and COOP cannot currently live on the same page. This was
decided when first implementing COOP. If COOP and sandboxing flags are
present on the same top level window, we return an error page instead,
and COOP has no effect.

Exploits have been discovered recently about abusing an opened window
and history to be able to guess the cross-origin url using the history
API. See:
https://bugs.chromium.org/p/chromium/issues/detail?id=1208614

Error pages were left out from the fix, because it would be inelegant
to insert error pages into history after a successful reload. That means
error pages can potentially be used to guess a cross-origin URL.

If in general this is acceptable, in our case its worse for two reasons:
- COOP is used to protect pages that are usually more valuable or hold
  important data.
- It is possible to reach an error page after response without relying
  on timing, etc.

Therefore we'd like to sever the opener when we fail after receiving a
response, if the target page did set COOP. Basically we'd like to change
the spec to enforce COOP even when we fail because of COOP+sandbox.

Spec discussion can be found here:
https://github.com/whatwg/html/issues/7345

On the implementation side, this patch adds the WPTs necessary to the
spec change, and the modified behavior.

We add a setter to the swap parameter to be able to only activate that
without breaking the COOP: Unsafe-none for error pages invariant. This
applies to final responses and redirects.

This does not alter the reload behavior, as this only happens for cases
where reloads would not be successful anyway.

Bug: 1256823
Change-Id: Ic79623a2b752608bc46a031d1f567308441d42e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3293412
Commit-Queue: Arthur Hemery <ahemery@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#946387}

--

wpt-commits: 4401bb56f90668983f6c237523a85f8875be9c77
wpt-pr: 31731
2021-12-01 11:18:35 +00:00
Tony Herre ad463e6eab Bug 1743435 [wpt PR 31779] - Drop duplicate and out of order VideoFrames in MSTP, a=testonly
Automatic update from web-platform-tests
Drop duplicate and out of order VideoFrames in MSTP

Drop videoframes which arrive on a track with duplicate or out of order timestamps, to make
it easier for apps to handle frames without worrying about order.

Bug: 1271175
Change-Id: I20a7312a31d8122c77dccde6d5064b27f0637db3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3304220
Commit-Queue: Tony Herre <toprice@chromium.org>
Reviewed-by: Ben Wagner aka dogben <benjaminwagner@google.com>
Reviewed-by: Johannes Kron <kron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#946371}

--

wpt-commits: a50d831a8108b74193d0ac8f731c7d90dd1cb001
wpt-pr: 31779
2021-12-01 11:18:34 +00:00
Arthur Sonzogni 9adefca613 Bug 1743415 [wpt PR 31777] - Anonymous iframe: Test Cookie get/set from within., a=testonly
Automatic update from web-platform-tests
Anonymous iframe: Test Cookie get/set from within.

We previously tested documents in anonymous iframe won't have access to
cookies set outside the frame:
/html/cross-origin-embedder-policy/anonymous-iframe/cookie.tentative.https.window.js

This patch checks they can still define and retrieves Cookies cookies
defined from within.

Bug: 1238368,1226469
Change-Id: I3352f2879ffa8ebf109d64b3e51de3b783354f4f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3306633
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Dylan Cutler <dylancutler@google.com>
Cr-Commit-Position: refs/heads/main@{#946364}

--

wpt-commits: b66d9d90698133a8246f432c478b230a0c2ff996
wpt-pr: 31777
2021-12-01 11:18:34 +00:00
moz-wptsync-bot b562cc2066 Bug 1740854 [wpt PR 31614] - Update wpt metadata, a=testonly
wpt-pr: 31614
wpt-type: metadata
2021-12-01 11:18:33 +00:00
Pei Zhang 61d5cb858f Bug 1740854 [wpt PR 31614] - Port Indexeddb get-related tests to WPT tests, a=testonly
Automatic update from web-platform-tests
Port Indexeddb get-related tests to WPT tests

Bug: 866164
Change-Id: I5f0ad2307292e4d0e32d25d711b518579f121764
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3277288
Commit-Queue: Pei Zhang <ppz@chromium.org>
Reviewed-by: Victor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/main@{#946355}

--

wpt-commits: 3f103ef2cd46ee0ef2c92e14ef9b7753353514a4
wpt-pr: 31614
2021-12-01 11:18:33 +00:00
Kent Tamura 01f0e09c16 Bug 1743542 [wpt PR 31790] - SVG Text NG: Fix linearGradient on text position change, a=testonly
Automatic update from web-platform-tests
SVG Text NG: Fix linearGradient on text position change

We should invalidate associated resources on bounding box changes.
This CL ports a similar code fragment in LayoutSVGText::UpdateLayout().

Bug: 1274630
Change-Id: Idea555952aba6b00f48b9437d0ae18c3f3f22842
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3308138
Commit-Queue: Koji Ishii <kojii@chromium.org>
Auto-Submit: Kent Tamura <tkent@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#946348}

--

wpt-commits: af25c740112a6453c0224a541e8991d85ad470bf
wpt-pr: 31790
2021-12-01 11:18:32 +00:00
Kent Tamura 62647fab8d Bug 1743531 [wpt PR 31788] - SVG Text NG: Fix a crash by <use> with display:contents and text-decoration, a=testonly
Automatic update from web-platform-tests
SVG Text NG: Fix a crash by <use> with display:contents and text-decoration

crrev.com/925670 was not enough for SVG <use> because it has a different
code path to propagate the <use> style to a referred tree. See
SVGElement::CustomStyleForLayoutObject().

This CL resolve the issue by not calling ApplyTextDecorations() for
display:contents, and revert the C++ part of crrev.com/925670.

Bug: 1252619, 1253243, 1273800
Change-Id: Iddee8ba2f2bb68d601bc0dbc55207267b8cb55cf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3308292
Auto-Submit: Kent Tamura <tkent@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#946301}

--

wpt-commits: 1ebd2941a14bb757e26d1fb6e8d5c6aba88ba3bd
wpt-pr: 31788
2021-12-01 11:18:32 +00:00
Daniel Libby 069685c660 Bug 1742861 [wpt PR 31736] - Move grid-intrinsic-maximums to WPT and remove commented out cases, a=testonly
Automatic update from web-platform-tests
Move grid-intrinsic-maximums to WPT and remove commented out cases

This test was fixed in crrev.com/c/2630626.

R=ikilpatrick@chromium.org

Fixed: 818401
Change-Id: Ib2b2c728ebcd69006cd834449d0683624a05fa93
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3294033
Auto-Submit: Daniel Libby <dlibby@microsoft.com>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Ana Sollano Kim <ansollan@microsoft.com>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#946292}

--

wpt-commits: 1283abac02b1f4d4173b9cfe8af1dfc9a6002aaa
wpt-pr: 31736
2021-12-01 11:18:31 +00:00
Sandor Molnar c0280a84f2 Backed out changeset e37fab919847 (bug 1743150) for causing linux build bustage in layout/style/nsComputedDOMStyle. CLOSED TREE 2021-12-01 13:03:47 +02:00
Andrei Oprea 085009fb70 Bug 1738937 - Switch FeatureManifest to yaml format and auto-generate the JS file r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D130159
2021-12-01 10:09:17 +00:00
Nicolas Chevobbe d5b6cf4e96 Bug 1740914 - [devtools] Check custom user agent is used to get resources. r=ochameau.
Depends on D132192

Differential Revision: https://phabricator.services.mozilla.com/D132363
2021-12-01 09:23:32 +00:00
Valentin Gosu e325c3a903 Bug 1740914 - Default user-agent is used to get resources in iframes on Responsive Design Mode r=nika
Instead of calling `bc->GetUserAgentOverride()` we should have been calling
`bc->Top()->GetUserAgentOverride()` or `bc->GetCustomUserAgent()`.

Differential Revision: https://phabricator.services.mozilla.com/D132192
2021-12-01 09:23:31 +00:00
sotaro d19f650408 Bug 1743743 - Remove TextureReadbackSink and ReadbackManagerD3D11 r=gfx-reviewers,nical
TextureReadbackSink and ReadbackManagerD3D11 are not used.

Differential Revision: https://phabricator.services.mozilla.com/D132542
2021-12-01 09:11:30 +00:00
Makoto Kato 48a953379d Bug 1722928 - Add a check whether child process is still alive. r=eeejay
There is a lot of the following `PSpeechSynthesisRequestParent` signature
crashes in Fenix since `mActor` seems to be null.

- `mozilla::dom::PSpeechSynthesisRequestParent::SendOnEnd`
- `mozilla::dom::PSpeechSynthesisRequestParent::SendOnBoundary`
- `mozilla::dom::PSpeechSynthesisRequestParent::SendOnStart`

So we should add a check whether child process is still alive.

Differential Revision: https://phabricator.services.mozilla.com/D132457
2021-12-01 08:30:02 +00:00
Lee Salzman 327a74e75a Bug 1689978 - Fill out-of-bounds texelFetchPtr with zeroes rather than clamping. r=jrmuizel
Attempting to just clamping the base address returning from texelFetchPtr might be causing
some crashes in the case the texture is actually smaller than the offset area. Instead, switch
out the sampler with a zero buffer to ensure we have something sane to sample without having
to do slow bounds checking on everything.

Differential Revision: https://phabricator.services.mozilla.com/D132508
2021-12-01 08:24:06 +00:00
Sandor Molnar 41e90a1bee Backed out 2 changesets (bug 1580394) for causing dt failures in browser_dbg-paused-overlay-loading. CLOSED TREE
Backed out changeset e692ec7d440f (bug 1580394)
Backed out changeset 0ceda05fc737 (bug 1580394)
2021-12-01 11:20:15 +02:00
nchevobbe 6fe08ad946 Bug 1580394 - [devtools] Don't wait for document to be ready to show PausesDebuggerOverlay. r=ochameau.
We're using the new `force` parameter for `insertAnonymousContent` to force creating a container
for the anonymous content, and we add a new option to the CanvasAnonymousHelper so highlighter
can choose to not wait for the dom to load.
For now we only use it for the paused debugger overlay as the other highlighters might need
an inspector front, which may require the dom to be ready.
We enable the assertions in  browser_dbg-paused-overlay-loading.js to check that the
highlighter is visible.
This required a few changes in the highlighter test actor.
First, it was waiting for an inspector front in its initialize method, which was
waiting indefinitely in our test as the document is paused. As this was only done
to retrieve the inspector actorID, we simply remove it and retrieve the actorID
through the connection and the target form when it's needed (for the eye dropper).
Secondly, the isPausedDebuggerOverlayVisible method was returning true even when
the highlighter wasn't displayed, so we check a few additional attributes.

Depends on D132034

Differential Revision: https://phabricator.services.mozilla.com/D132116
2021-12-01 08:11:23 +00:00
Emilio Cobos Álvarez a198b03c34 Bug 1580394 - Add an InsertAnonymousContent version which tries to update layout synchronously if needed. r=nchevobbe,smaug
Differential Revision: https://phabricator.services.mozilla.com/D132034
2021-12-01 08:11:22 +00:00
Emilio Cobos Álvarez 542b017923 Bug 1743150 - Shorthands in computed style shouldn't be enumerable. r=layout-reviewers,jfkthame
This is as per spec, and causes failures once we enable the pref to expose
shorthands in the computed style. We need to decouple the "enabled-ness" from
the enumerable-ness, which we do by keeping two separate arrays, and leaving
ComputedStyleMap for the enumeration.

Differential Revision: https://phabricator.services.mozilla.com/D132266
2021-12-01 07:20:19 +00:00
Emilio Cobos Álvarez f781e66e67 Bug 1739615 - Force a light toolbar color when using the system theme on non-Linux platforms. r=desktop-theme-reviewers,dao
Not sure what's the best way to test this.

Differential Revision: https://phabricator.services.mozilla.com/D132392
2021-12-01 07:19:27 +00:00
Chris Peterson 0d93eda754 Bug 1738401 - Remove -Wshadow-uncaptured-local warning flag. r=firefox-build-system-reviewers,andi
I enabled -Wshadow-uncaptured-local warnings in bug 1718408 because the flag didn't report any -Wshadow-uncaptured-local warnings. Unfortunately, clang didn't report any warnings due to clang bug https://bugs.llvm.org/show_bug.cgi?id=52325: clang -Wshadow-uncaptured-local (and some other -Wshadow*) flags doesn't actually enable these warnings; they're only enabled by the meta flags -Wshadow and -Wshadow-all.

I see now that there are over 500 -Wshadow-uncaptured-local warnings, too many to realistically fix them all, so we should remove -Wshadow-uncaptured-local.

The -Wshadow-field-in-constructor-modified flag is also affected by the clang bug, but I'd like to keep setting the -Wshadow-field-in-constructor-modified flag in case the clang bug is ever fixed. There are no -Wshadow-field-in-constructor-modified warnings in mozilla-central; I fixed the last one in bug 1738400.

Differential Revision: https://phabricator.services.mozilla.com/D132290
2021-12-01 06:40:05 +00:00
Chris Peterson f6fdbf028a Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium
-Wshadow warnings are not enabled globally, so these -Wno-shadow suppressions have no effect. I had intended to enable -Wshadow globally along with these suppressions in some directories (in bug 1272513), but that was blocked by other issues.

There are too many -Wshadow warnings (now over 2000) to realistically fix them all. We should remove all these unnecessary -Wno-shadow flags cluttering many moz.build files.

Differential Revision: https://phabricator.services.mozilla.com/D132289
2021-12-01 06:40:04 +00:00
Andreea Pavel 8290a5a7d9 Bug 1572299 - disable test_opener.html on win10_2004 and linux64 r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D132304
2021-12-01 06:28:48 +00:00
Andreea Pavel cdee7e12fe Bug 1693975 - disable netmonitor/complicated.js due to frequent failures r=intermittent-reviewers,perftest-reviewers,sparky,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D132250
2021-12-01 06:28:09 +00:00
Mike Hommey a90ac64587 Bug 1743708 - Fix clang-plugin tests to pass with clang-trunk. r=andi
This upstream change[1] changed the error messages when arrays are
involved, so we adjust the expected-errors/expected-notes to account for
that.

1. aee4925507

Differential Revision: https://phabricator.services.mozilla.com/D132533
2021-12-01 06:28:02 +00:00
Sandor Molnar e8e67d3eb4 Backed out 2 changesets (bug 1741190, bug 1644983) for causing browser-chrome failures in browser_xpcom_graph_wait. CLOSED TREE
Backed out changeset ddf74f877a92 (bug 1644983)
Backed out changeset 817dd8236d41 (bug 1741190)
2021-12-01 08:34:10 +02:00
Marian-Vasile Laza 97b5d56c5a Merge mozilla-central to autoland. a=merge CLOSED TREE 2021-12-01 07:06:53 +02:00
Marian-Vasile Laza 1c3f5a29f0 Merge autoland to mozilla-central. a=merge 2021-12-01 07:02:05 +02:00
James Teh 4904fa05f2 Bug 1741792 part 2: Use the cached caret. r=eeejay
This includes support in both TextLeafPoint and HyperTextAccessibleBase.

Differential Revision: https://phabricator.services.mozilla.com/D132098
2021-12-01 04:48:34 +00:00
James Teh 934c9cb61c Bug 1741792 part 1: Cache the caret in the parent process using caret events. r=eeejay
As well as the caret offset, we also need to cache whether the caret is at the end of a line.
Therefore, this information has been added to caret events.

Differential Revision: https://phabricator.services.mozilla.com/D132097
2021-12-01 04:48:33 +00:00
Timothy Gu 8166483436 Bug 1738872 - Add preprocessor support for additional architectures r=ng
cherry-pick libwebrtc: 6215ba804eb500f3e28b39088c73af3c4f4cd10a

- _M_ARM is used by Microsoft [1]
- __riscv and __riscv_xlen are defined by [2]
- __sparc and __sparc__ are documented at [3]
- __MIPSEB__, __PPC__, __PPC64__ are documented at [3] and used in
  Chromium's build/build_config.h [4]
  Note: Chromium assumes that all PowerPC architectures are 64-bit. This
  is in fact not true.

[1]: https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-160
[2]: feca479356 (cc-preprocessor-definitions)
[3]: https://sourceforge.net/p/predef/wiki/Architectures/
[4]: https://source.chromium.org/chromium/chromium/src/+/master:build/build_config.h;drc=e12bf2e5ff1eacb9aca3e9a26bdeebdbdad5965a

Change-Id: I7d0176c38102e5e4cf0fcbe9b06a3520a79b0d71
Bug: webrtc:12312
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/198241
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Timothy Gu <timothygu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#32897}

Differential Revision: https://phabricator.services.mozilla.com/D131228
2021-12-01 01:55:40 +00:00
Narcis Beleuzu 4c87b2e488 Backed out 12 changesets (bug 1721217) for bc failures on browser_TopLevelNavigationDelegate.js
Backed out changeset 5fe3c617d521 (bug 1721217)
Backed out changeset c131e4a6d9d5 (bug 1721217)
Backed out changeset a59210a5b400 (bug 1721217)
Backed out changeset 74362b0c39c0 (bug 1721217)
Backed out changeset c8075b91d660 (bug 1721217)
Backed out changeset 46512deaf0e5 (bug 1721217)
Backed out changeset b38bc569d227 (bug 1721217)
Backed out changeset ee9bd012fda8 (bug 1721217)
Backed out changeset 7aa2726a0982 (bug 1721217)
Backed out changeset 885ced5f4bb4 (bug 1721217)
Backed out changeset 7d3f99ca3f44 (bug 1721217)
Backed out changeset 2f5a0164679a (bug 1721217)
2021-12-01 03:38:10 +02:00
Timothy Nikkel 6b76c9ed4c Bug 1743727. Only output logging if zoom constraints change. r=botond,hiro
Differential Revision: https://phabricator.services.mozilla.com/D132532
2021-12-01 00:56:03 +00:00
Marian-Vasile Laza 74bbbc347e Backed out changeset 9c044551012e (bug 1705211) for causing bc test failures on browser_protocol_ask_dialog_external.js. CLOSED TREE 2021-12-01 03:09:59 +02:00
Olli Pettay a1708052cd Bug 1742168, increase maxStateObjectSize to 16MB and make the pref a StaticPref, r=peterv
Keeping the pref as signed, since the existing code explicitly handles that case, so someone may have -1 as the pref value.

Differential Revision: https://phabricator.services.mozilla.com/D132020
2021-12-01 00:11:41 +00:00
Daisuke Akatsuka 336270f8f3 Bug 1730692: Make dialog be appropriate size when the system font size changes on windows. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D132117
2021-11-30 23:52:53 +00:00
Gijs Kruitbosch 9ec163c376 Bug 1705211, r=nika,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D131856
2021-11-30 23:38:57 +00:00
Ting-Yu Lin 5addb144e4 Bug 1743537 Part 6 - Rename arguments of ScrollFrameHelper::LayoutScrollbars(). r=emilio
Technically, `aContentArea` is not 100% wrong; its the content area of the outer
scroll frame, which contains the content area of the inner scrolled frame, the
padding, and the scrollbars. However, it should really be named
`aInsideBorderArea` as the caller names it. Otherwise, it is easy to cause
confusion with the content area of the inner scrolled frame.

Also, rename `aOldScrollArea` as well so that we use the term "scroll port"
consistently.

Differential Revision: https://phabricator.services.mozilla.com/D132445
2021-11-30 23:25:22 +00:00
Ting-Yu Lin cd368a47f6 Bug 1743537 Part 5 - Rename variables names storing mScrollPort. r=emilio
Make these variables more distinguishable from `oldScrolledAreaBounds` and
`newScrolledAreaBounds`.

Differential Revision: https://phabricator.services.mozilla.com/D132444
2021-11-30 23:25:22 +00:00
Ting-Yu Lin b5de753621 Bug 1743537 Part 4 - Cache scrollbar sizes in ScrollReflowInput. r=layout-reviewers,emilio
Scrollbar's min and pref sizes won't change during reflow, so we can cache them
in ScrollReflowInput to save some repetitive computation in multiple
ReflowScrolledFrame() and TryLayout() calls.

This is also a preparation for Bug 1715112 because we can use the pref sizes to
compute the scrollbar-gutter size in ScrollReflowInput.

Differential Revision: https://phabricator.services.mozilla.com/D132443
2021-11-30 23:25:22 +00:00