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

22380 Коммитов

Автор SHA1 Сообщение Дата
Noemi Erli 2bba3cec69 Backed out changeset 2ab6bb03dcc1 (bug 1576768) for causing failures in test_double_submit.html CLOSED TREE 2021-10-18 02:05:57 +03:00
Evgenia Kotovich 3e3dff109c Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-17 14:59:14 +00:00
Mats Palmgren 8e97583da7 Bug 1712413 - Make finding CSS counter scopes on ancestors faster. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D128537
2021-10-15 23:58:42 +00:00
Cristian Tuns 5201dfa117 Backed out changeset fc201411942f (bug 1712413) for causing hybrid build bustages on nsCounterManager.cpp CLOSED TREE 2021-10-15 17:33:45 -04:00
Mats Palmgren 98a0ad35ad Bug 1712413 - Make finding CSS counter scopes on ancestors faster. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D128537
2021-10-15 21:08:01 +00:00
Emilio Cobos Álvarez fb8e2b5796 Bug 1736038 - Simplify some color-scheme handling in core. r=mstange
Remove the follow-firefox-theme pref as now that's default everywhere,
and document better the behavior of the color-scheme property by
reworking and commenting the logic on it a bit.

Differential Revision: https://phabricator.services.mozilla.com/D128610
2021-10-15 16:53:08 +00:00
Alexandru Michis dac6815201 Backed out changeset 7c08aa027893 (bug 1576768) for causing multiple failures.
CLOSED TREE
2021-10-15 16:52:43 +03:00
Evgenia Kotovich a8b32926fa Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-15 12:58:11 +00:00
Emilio Cobos Álvarez 210f6001ae Bug 1590247 - Fix some pre-existing dynamic restyling issues with scrollbar-width. r=dholbert
This was pre-existing but caught by some scrollbar-width tests. A
test-case that reproduces on current nightly:

  data:text/html,<html style="overflow: scroll; scrollbar-color: red red; scrollbar-width: thin">

Toggling the `scrollbar-width` declaration in devtools doesn't change
the effective scrollbar width. Ensure we correctly reflow the scrollbars
in this case.

Differential Revision: https://phabricator.services.mozilla.com/D128515
2021-10-14 21:19:14 +00:00
Emilio Cobos Álvarez 7db332dc3d Bug 1590247 - Don't reframe scrollable frames if we already have all needed anonymous content. r=dholbert
This prevents jank when switching from overflow: auto -> hidden or such.

Differential Revision: https://phabricator.services.mozilla.com/D128367
2021-10-14 21:19:14 +00:00
Emilio Cobos Álvarez b9028a3983 Bug 1590247 - Factor out ScrollbarChange handling. r=dholbert
No behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D128370
2021-10-14 21:19:13 +00:00
Butkovits Atila 13f18064b3 Backed out 2 changesets (bug 1590247) for causing failures at scrollbar-width-paint-001.html. CLOSED TREE
Backed out changeset 9b1d970ca9c2 (bug 1590247)
Backed out changeset 57193e853f39 (bug 1590247)
2021-10-14 23:02:38 +03:00
Emilio Cobos Álvarez 45a7260acb Bug 1590247 - Don't reframe scrollable frames if we already have all needed anonymous content. r=dholbert
This prevents jank when switching from overflow: auto -> hidden or such.

Differential Revision: https://phabricator.services.mozilla.com/D128367
2021-10-14 15:42:06 +00:00
Emilio Cobos Álvarez c5d2807570 Bug 1590247 - Factor out ScrollbarChange handling. r=dholbert
No behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D128370
2021-10-14 15:42:06 +00:00
Hiroyuki Ikezoe f73bb3f591 Bug 1730998 - Remove apz peek messages stuff. r=botond
This stuff is now a no-op because the RequestContentRepaint message has a
higher priority than vsync.

Depends on D127033

Differential Revision: https://phabricator.services.mozilla.com/D127593
2021-10-14 09:43:03 +00:00
Hiroyuki Ikezoe 346c0300a6 Bug 1730998 - Bail out if the pres context was destroyed in an early runner. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D127030
2021-10-14 09:43:02 +00:00
Timothy Nikkel 377995ccb8 Bug 1725569. Send visualViewport resize events for iframes. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D127941
2021-10-13 03:01:34 +00:00
Emilio Cobos Álvarez b2699f72ee Bug 1670480 - Ensure look-and-feel-changed listeners can rely on LookAndFeel values returning updated styles. r=jwatt
We have JS listeners that are expected to run once the LookAndFeel
caches have been cleared and such, so split the look-and-feel-changed
notification into an internal and external notification.

Differential Revision: https://phabricator.services.mozilla.com/D128097
2021-10-12 09:22:49 +00:00
Emilio Cobos Álvarez 37660aa996 Bug 1730503 - Make anonymous scrollbar caching work on mac by default, and unify scrollbars.css across platforms. r=mstange,desktop-theme-reviewers,dao
We make it work on macOS by setting pointer-events: none + opacity: 0 rather
than visibility: hidden, and tweaking the caching setup to be Android-like.

Now that the scrollbars sheet is the same across platforms, move it to where
the rest of the UA sheets are. This way we guarantee that the RDM vs. Android
difference is less (just the ifdef at the top of the sheet).

Depends on D128084

Differential Revision: https://phabricator.services.mozilla.com/D128085
2021-10-12 09:21:18 +00:00
Emilio Cobos Álvarez 4f8856c545 Bug 1730503 - Make RDM force Android-style scrollbars better. r=mstange,devtools-backward-compat-reviewers,nchevobbe
There are a few bits that still don't work with this patch but will with the
following patches.

Differential Revision: https://phabricator.services.mozilla.com/D128083
2021-10-12 09:21:17 +00:00
Masayuki Nakano 1836c00470 Bug 1729170 - Make all methods of `nsTextFragment` take `uint32_t` for the offset and length of text r=smaug
`nsTextFragment` is a storage of data node and DOM offset is `uint32_t`, but
some methods of `nsTextFragment` takes `int32_t` for the offset/length in
its text.  Therefore, callers need to cast from `uint32_t` to `int32_t` if
the offset value is offset in a DOM node.  Therefore, all methods of it should
take `uint32_t` values as offset/length in its text.

Differential Revision: https://phabricator.services.mozilla.com/D127923
2021-10-12 05:05:12 +00:00
Masayuki Nakano 25a3c48305 Bug 1732845 - Add `nsINode::IsInDesignMode()` to check whether the node is directly in design mode r=smaug
There are a lot of check of `Document`'s editable state **with** comments. This
means that it's unclear for developers that only `Document` node is editable in
design mode.

Additionally, there are some points which use composed document rather than
uncomposed document even though the raw API uses uncomposed document. Comparing
with the other browsers, checking uncomposed document is compatible behavior,
i.e., nodes in shadow trees are not editable unless `contenteditable`.

Therefore, `nsINode` should have a method to check whether it's in design mode
or not.

Note that it may be called with a node in UA widget.  Therefore, this patch
adds new checks if it's in UA widget subtree or native anonymous subtree,
checking whether it's in design mode with its host.

Differential Revision: https://phabricator.services.mozilla.com/D126764
2021-10-12 03:14:43 +00:00
Emilio Cobos Álvarez f5e738b479 Bug 560067 - Minor clean-up in the refresh driver image animation code. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D122116
2021-10-11 10:25:47 +00:00
Emilio Cobos Álvarez 7bc118e08e Bug 1732829 - Propagate popup position / size change after widget moves, not before. r=hiro
Bug 1696718 landed a fix to propagate the position change from layout.
However that's not correct, because the widget isn't resized until
nsView::ProcessPendingUpdatesForView is resized (and even that in some
platforms it might be async).

So the right place to propagate the position change is in
nsXULPopupManager (which we call into from the view system which listens
itself to the widget).

Let's try to enable the test for that bug everywhere with this fixed.

Differential Revision: https://phabricator.services.mozilla.com/D127801
2021-10-10 18:53:07 +00:00
Timothy Nikkel 20dbba5c10 Bug 1733363. Make FrameMetrics::mCumulativeResolution a 1d scale. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D127115
2021-10-09 12:49:40 +00:00
Marian-Vasile Laza 2ceb1f0ca2 Backed out changeset 452b230b7276 (bug 1725569) for causing mochitest failures on test_recursive_frames.html. CLOSED TREE 2021-10-09 12:52:35 +03:00
Timothy Nikkel e930ccd98e Bug 1725569. Send visualViewport resize events for iframes. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D127941
2021-10-09 08:41:56 +00:00
Timothy Nikkel 50411f2919 Bug 1733332. Change nsLayoutUtils::GetTransformToAncestorScale from Is2D to CanDraw2D. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D127073
2021-10-08 06:21:50 +00:00
Emilio Cobos Álvarez 9fbc18ca4c Bug 1733384 - Make inert not modify the computed style. r=sefeng,layout-reviewers,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D127422
2021-10-07 17:00:36 +00:00
Jeff Muizelaar da04cbec60 Bug 1734506 - Remove Layer. r=gfx-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D127753
2021-10-07 15:24:07 +00:00
Butkovits Atila 4d927c1fb4 Backed out 4 changesets (bug 1733384) for causing failures at browser_windowPrompt.js. CLOSED TREE
Backed out changeset fa609fadac26 (bug 1733384)
Backed out changeset dd1936d9fe17 (bug 1733384)
Backed out changeset 1a073e40ab1a (bug 1733384)
Backed out changeset 65708a4c708f (bug 1733384)
2021-10-07 17:52:51 +03:00
Emilio Cobos Álvarez bfdd0fcc77 Bug 1733384 - Make inert not modify the computed style. r=sefeng,layout-reviewers,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D127422
2021-10-07 11:47:34 +00:00
Jens Stutte cbe7d5cb29 Bug 1731564: Use motivated SpinEventLoopUntil inside layout/*. r=emilio
Depends on D127226

Differential Revision: https://phabricator.services.mozilla.com/D127230
2021-10-07 08:06:13 +00:00
Timothy Nikkel 48be720702 Bug 1733742. Remove GetHighResolutionDisplayPort. r=botond
With the old layers backend we had low precision buffer code controlled via the pref layers.low-precision-buffer that was used on android. We would expand the displayport by 4x and then paint it as 1/4 the resolution, and then we would have a critical displayport without the 4x multipler that we would paint at the real resolution. The code to do the painting at the lower resolution was in the layers backend and has since been removed. (This is okay because webrender doesn't rasterize all of the content in the displayport.) So the critical displayport or displayport are no longer treated differently anywhere. Except a few pieces of code that should be fixed/changed/removed. This patch being one of them.

GetHighResolutionDisplayPort would return the displayport without the multipler in all situations (pref on or off).

In DisplayPortUtils we are checking the displayport rect before/after setting new displayport margins to see if it changes to determine if we need to invalidate. Since the critical displayport isn't used for anything, the regular displayport is the correct thing to use here.

In nsGfxScrollFrame we are doing a similar thing, except checking that the displayport doesn't change after a scroll.

In nsDisplayListBuilder::OutOfFlowDisplayData::ComputeVisibleRectForFrame it's also the correct thing, as we want to include the same rect for fixed content as we do for non-fixed content. But this is an significant expansion of the dirty rect of fixed content and the code history has fixes related to drawing too much of fixed content and OOMing so a little more scrutiny is reasonable. However if there was a problem with OOM, since this is the same rect we use for non-fixed content we would have OOM problems with regular content, so this should be fine.

Differential Revision: https://phabricator.services.mozilla.com/D127344
2021-10-07 05:41:19 +00:00
Marian-Vasile Laza 8e53738652 Backed out 2 changesets (bug 1734506, bug 1734502) for causing build bustages. CLOSED TREE
Backed out changeset 542b8b4e17ca (bug 1734506)
Backed out changeset b37746f292da (bug 1734502)
2021-10-07 05:15:58 +03:00
Jeff Muizelaar 3bc95646ff Bug 1734506 - Remove Layer. r=gfx-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D127753
2021-10-07 01:21:16 +00:00
Marian-Vasile Laza 18fb16c542 Backed out 18 changesets (bug 1731564) for causing build bustages on SpinEventLoopUntil. CLOSED TREE
Backed out changeset 0464dbdc8584 (bug 1731564)
Backed out changeset 0d996df13545 (bug 1731564)
Backed out changeset 5630a0e7a109 (bug 1731564)
Backed out changeset 37b41d187cdb (bug 1731564)
Backed out changeset d37700fa60b6 (bug 1731564)
Backed out changeset b0ce7db44b99 (bug 1731564)
Backed out changeset aa5ec3aa1535 (bug 1731564)
Backed out changeset 73b648f1fa70 (bug 1731564)
Backed out changeset bb8fb0f9833e (bug 1731564)
Backed out changeset 0d8905144f5d (bug 1731564)
Backed out changeset 2cfb094a1ec3 (bug 1731564)
Backed out changeset 78d3b0257a6a (bug 1731564)
Backed out changeset e9d32926e93c (bug 1731564)
Backed out changeset 874cab520ce5 (bug 1731564)
Backed out changeset d8071cc32bd9 (bug 1731564)
Backed out changeset 283c5393cbbc (bug 1731564)
Backed out changeset 317bc38e3de5 (bug 1731564)
Backed out changeset 53e3f4862439 (bug 1731564)
2021-10-07 00:09:19 +03:00
Jens Stutte 3cbb575b9e Bug 1731564: Use motivated SpinEventLoopUntil inside layout/*. r=emilio
Depends on D127226

Differential Revision: https://phabricator.services.mozilla.com/D127230
2021-10-06 19:45:14 +00:00
Sandor Molnar c4af240897 Backed out 4 changesets (bug 1730998) for frequent Android gv-junit failures. CLOSED TREE
Backed out changeset 92641110e5c9 (bug 1730998)
Backed out changeset 7e496a4d1b55 (bug 1730998)
Backed out changeset 60d769e12932 (bug 1730998)
Backed out changeset 64a2b879aa79 (bug 1730998)
2021-10-06 16:43:50 +03:00
Hiroyuki Ikezoe 508b513463 Bug 1730998 - Remove apz peek messages stuff. r=botond
This stuff is now a no-op because the RequestContentRepaint message has a
higher priority than vsync.

Differential Revision: https://phabricator.services.mozilla.com/D127593
2021-10-06 01:07:37 +00:00
Hiroyuki Ikezoe d43a34b104 Bug 1730998 - Bail out if the pres context was destroyed in an early runner. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D127030
2021-10-06 01:07:35 +00:00
Morgan Reschenberg 8ec999d32d Bug 1726227: Cache parent-relative accessible bounds, resolution in parent process r=Jamie,eeejay
Differential Revision: https://phabricator.services.mozilla.com/D123399
2021-10-05 20:44:46 +00:00
Emilio Cobos Álvarez 388b2c9a07 Bug 1731165 - Invalidate the right frame from nsCaret::SchedulePaint when we paint the caret from the containing block. r=miko
Not sure how easy it is to come up with a test-case for this, will try
though.

Differential Revision: https://phabricator.services.mozilla.com/D126615
2021-10-05 14:12:57 +00:00
Timothy Nikkel 4fdbd2ef36 Bug 1732600. Make GetDisplayPortFromMarginsData use ancestor process transform to ancestor scale. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D126661
2021-10-05 09:28:58 +00:00
Timothy Nikkel 44555d25b7 Bug 1732600. Make ComputeDisplayportScale use the ancestor process transform to ancestor scale. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D126660
2021-10-05 09:28:57 +00:00
Timothy Nikkel 75fa1adebc Bug 1732600. Use ancestor process transform to ancestor scale in nsLayoutUtils::CalculateBoundingCompositionSize. r=botond
This else should only get hit if we can't get the docshell or content viewer from the prescontext, which should only be unusual setting up or tearing down timeframes, so it doesn't matter too much.

Differential Revision: https://phabricator.services.mozilla.com/D126659
2021-10-05 09:28:57 +00:00
Timothy Nikkel 708b53f06a Bug 1732600. Pass down transform to ancestor scale to child processes. r=botond
In bug 1731929 we added this value, here we give it the value we want for child processes. I think the code comments should explain it.

Differential Revision: https://phabricator.services.mozilla.com/D126629
2021-10-05 09:28:57 +00:00
Timothy Nikkel c27ae1aac3 Bug 1732600. Remove PixelCastJustification::TransformToAncestorScaleIsStoredUntyped. r=botond
It is unused, it accidentally slipped in in bug 1731929 but was never used.

Differential Revision: https://phabricator.services.mozilla.com/D127059
2021-10-05 09:28:56 +00:00
Timothy Nikkel 80c46c77ef Bug 1733740. Simplify some displayport calculation code now that webrender is always on. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D127343
2021-10-05 01:29:57 +00:00
Butkovits Atila 0db4640a28 Backed out 2 changesets (bug 1732154, bug 1726227) for causing build bustages complaining about RemoteAccessible. CLOSED TREE
Backed out changeset 4fd72f9ca327 (bug 1732154)
Backed out changeset 6591f14bbc71 (bug 1726227)
2021-10-05 00:19:09 +03:00