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

78083 Коммитов

Автор SHA1 Сообщение Дата
Daniel Holbert c3ca004372 Bug 1759396 part 2: Use fallible allocation when inserting into PresShell::mAllocatedPointers, to avert OOMs in builds with diagnostic assertions. r=emilio
If allocation fails, we'll now just discard the entire contents of
mAllocatedPointers and stop using it going forward.

See the documentation alongside the mAllocatedPointers declaration (in this
patch) for more details.

Differential Revision: https://phabricator.services.mozilla.com/D143416
2022-04-12 23:57:07 +00:00
Daniel Holbert abcfa0df24 Bug 1759396 part 1: Manage PresShell::mAllocatedPointers using a UniquePtr rather than as a direct member-variable. r=emilio
This patch doesn't change behavior.  As of this patch, this variable gets
instantiated immediately (in the PresShell constructor) and is never null, so
no logic/beheavior has changed.

This lays the groundwork for the next patch, which will add one case where this
variable does get nulled out (and add logic to handle that).

Differential Revision: https://phabricator.services.mozilla.com/D143411
2022-04-12 23:57:06 +00:00
Emilio Cobos Álvarez 85598ec315 Bug 1764224 - Don't assert primary frame on printing docs. r=dholbert
ReplicateFixedFrames can create extra frames, but we don't particularly
care about this.

Differential Revision: https://phabricator.services.mozilla.com/D143471
2022-04-12 21:25:05 +00:00
Emilio Cobos Álvarez f4fc8c9d66 Bug 1764142 - Set visibility: visible on modal dialogs. r=sefeng
As per resolution: https://github.com/w3c/csswg-drafts/issues/6939#issuecomment-1016679588

Differential Revision: https://phabricator.services.mozilla.com/D143392
2022-04-12 13:57:53 +00:00
Emilio Cobos Álvarez 1ddcb0aa7f Bug 1656363 - Update test_media_queries to reflect the spec.
MANUAL PUSH: Orange fix CLOSED TREE
2022-04-12 12:40:49 +02:00
Emilio Cobos Álvarez 39d7652297 Bug 1656363 - Implement prefers-contrast: custom and let prefers-contrast ride the trains. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D143198
2022-04-12 09:07:18 +00:00
Olli Pettay b9a8518c6b Bug 1764212, track reflow callbacks in videoframe, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D143452
2022-04-12 09:07:16 +00:00
Hiroyuki Ikezoe 64b87a50a6 Bug 1610815 - Implement new {small,large,dynamic} viewport units. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D143252
2022-04-12 04:06:38 +00:00
Hiroyuki Ikezoe 48dcc8e143 Bug 1734261 - Use NSCoordSaturatingAdd only for nsSize. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D143020
2022-04-11 23:11:36 +00:00
Olli Pettay 0c3873f4c7 Bug 1763451, when refresh rate is very high, don't let it affect idle processing in the parent process too much, r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D143357
2022-04-11 20:54:30 +00:00
Molnar Sandor 75a5ae5043 Backed out 2 changesets (bug 1686654) for causing mochitest and reftest failures. CLOSED TREE
Backed out changeset 9af11a2b5add (bug 1686654)
Backed out changeset 60d43ba90696 (bug 1686654)
2022-04-11 22:55:59 +03:00
Nicolas Silva 6f721e0bc6 Bug 1686654 - Adjust reftest expectations. r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D141846
2022-04-11 18:14:58 +00:00
Martin Robinson 444626c92d Bug 1763647 - content-visibility: hidden and content-visibility: auto should enable containment r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D143304
2022-04-08 18:32:47 +00:00
Makoto Kato 28844e8f80 Bug 1639087 - Add dragcaret event by accessible caret. r=TYLin,smaug
To support magnifying glass on GeckoView, I would like to add `dragcaret`
event and, clientX and clientX in CaretStateChangedEvent chrome event.

Actually, accessible caret fires `presscaret` and `releasecaret` when
accessbile caret is pressed or released. But when dragging this caret, no
chrome event is fired. Since magnifying glass listens to moving this caret,
I would like `dargcaret` for GeckoView.

Also, Users' dragging point is necessary to set better position of magnifying
glass windows. So I also want client point of dragging point on `presscaret`
and `dragcaret` event.

This event and properties are on layout.accessiblecaret.magnifier.enabled=true,
So this can be only for GeckoView.

Differential Revision: https://phabricator.services.mozilla.com/D137965
2022-04-08 05:11:48 +00:00
Emilio Cobos Álvarez 03d33c13bf Bug 1762474 - Make CSSConditionRule.conditionText readonly. r=layout-reviewers,firefox-style-system-reviewers,boris
Differential Revision: https://phabricator.services.mozilla.com/D143193
2022-04-08 04:24:18 +00:00
Emilio Cobos Álvarez 37716ddbc3 Bug 1763644 - Add basic @container rule parsing and boilerplate. r=firefox-style-system-reviewers,layout-reviewers,boris
For now parse a MediaFeatureCondition. That needs being made more
specific, but that is probably worth its own patch.

Differential Revision: https://phabricator.services.mozilla.com/D143192
2022-04-08 04:15:40 +00:00
Butkovits Atila 3e31b63b4f Backed out 2 changesets (bug 1763644, bug 1762474)for causing failures at idlharness.html. CLOSED TREE
Backed out changeset 6c5ac0c99219 (bug 1762474)
Backed out changeset 8b625593255f (bug 1763644)
2022-04-08 07:01:01 +03:00
Emilio Cobos Álvarez f48e5b32de Bug 1762474 - Make CSSConditionRule.conditionText readonly. r=layout-reviewers,firefox-style-system-reviewers,boris
Depends on D143192

Differential Revision: https://phabricator.services.mozilla.com/D143193
2022-04-08 00:01:27 +00:00
Emilio Cobos Álvarez 898b3335be Bug 1763644 - Add basic @container rule parsing and boilerplate. r=firefox-style-system-reviewers,layout-reviewers,boris
For now parse a MediaFeatureCondition. That needs being made more
specific, but that is probably worth its own patch.

Differential Revision: https://phabricator.services.mozilla.com/D143192
2022-04-08 00:01:26 +00:00
Emilio Cobos Álvarez 1d7a0d3629 Bug 1763396 - Use the content pref, as the test is loaded in the content area.
Differential Revision: https://phabricator.services.mozilla.com/D143244
2022-04-07 23:52:41 +00:00
Butkovits Atila c1d171544c Backed out 2 changesets (bug 1763644, bug 1762474) for causing failures at test_interfaces.html. CLOSED TREE
Backed out changeset 6a588f6d08f7 (bug 1762474)
Backed out changeset ff486de30883 (bug 1763644)
2022-04-08 02:26:22 +03:00
Emilio Cobos Álvarez 4f132362b1 Bug 1762474 - Make CSSConditionRule.conditionText readonly. r=layout-reviewers,firefox-style-system-reviewers,boris
Depends on D143192

Differential Revision: https://phabricator.services.mozilla.com/D143193
2022-04-07 22:06:16 +00:00
Emilio Cobos Álvarez fc117ea85d Bug 1763644 - Add basic @container rule parsing and boilerplate. r=firefox-style-system-reviewers,layout-reviewers,boris
For now parse a MediaFeatureCondition. That needs being made more
specific, but that is probably worth its own patch.

Differential Revision: https://phabricator.services.mozilla.com/D143192
2022-04-07 22:06:15 +00:00
Emilio Cobos Álvarez 55392c2e73 Bug 1733232 - Use reflow callbacks to properly track video control / caption sizes. r=dholbert
This ensures not to fire dummy events for measuring reflows for example.

Needs a test, maybe Alwu can help with that?

Differential Revision: https://phabricator.services.mozilla.com/D142897
2022-04-07 21:46:03 +00:00
Daniel Holbert 49f86dbd38 Bug 1763495 part 2: Use 'inset' shorthand in TopLevelImageDocument.css and TopLevelVideoDocument.css. r=emilio
This doesn't change behavior; it just makes the existing CSS a bit more concise.

('inset' is a shorthand that sets top, right, bottom, and left all at once.)

Depends on D143099

Differential Revision: https://phabricator.services.mozilla.com/D143109
2022-04-07 18:39:11 +00:00
Daniel Holbert bb008118d2 Bug 1763495 part 1: Remove some unnecessary styles in TopLevelVideoDocument.css. r=hsivonen,emilio
As indicated in the new code-comment, we do need the html element to be the
full height of the viewport. But:
- we don't need to set width to 100%. The default, 'auto', has the same effect.
- we don't need to set margin/padding to 0; they default to 0 on 'html'.
- we don't need to set anything on the body, since it doesn't render or have
  any children in the box tree. (The video descendant is abspos and hence uses
  the viewport as its containing block, not the body.)

As an extra check that this is reasonable, note that the similar
TopLevelImageDocument.css stylesheet doesn't have any CSS rules that target the
html or body elements.

Differential Revision: https://phabricator.services.mozilla.com/D143099
2022-04-07 18:39:11 +00:00
Martin Robinson 2893cfed87 Bug 1762407 - Do not scroll content with `content-visibility: hidden` ancestors into view r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D142563
2022-04-07 10:38:27 +00:00
Henri Sivonen 9bd876e7c3 Bug 1739691 - Make keyboard shortcuts for media documents work after clicking outside the media element. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D142333
2022-04-07 10:17:06 +00:00
Emilio Cobos Álvarez e88dc3656a Bug 1763396 - Force toolbar-theme to system in a test, to fix it on devedition where dark theme is the default.
Differential Revision: https://phabricator.services.mozilla.com/D143105
2022-04-06 23:37:46 +00:00
Olli Pettay 27c58b74af Bug 1762090, don't block refreshdrivers for too long time on linux, r=mstange
Explicitly detect the case when main thread has been empty, and if so, don't give other tasks
extra time.

Differential Revision: https://phabricator.services.mozilla.com/D142740
2022-04-06 00:40:25 +00:00
Glenn Watson 8c9fe85287 Bug 1762810 - Ensure backdrop root containers get placed inside APZ container r=gfx-reviewers,lsalzman
This change applies the same fix in the code above for mix-blend
containers to backdrop roots. Without this, the backdrop-root is
the viewport, so it includes things like the fixed position background
rects used for checkerboarding.

Differential Revision: https://phabricator.services.mozilla.com/D142772
2022-04-05 23:50:52 +00:00
Tooru Fujisawa 4eb6200458 Bug 1761756 - Check the intersection again after conditioning the rect. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D142310
2022-04-05 22:41:53 +00:00
Boris Chiou 487a100dbb Bug 1737180 - Part 4: Enable OMTA for scroll animations. r=hiro
We fallback to use main-thread animations if the timeline is inactive or we
cannot get scroll offsets or the scroll range from APZC on the compositor
thread.

Differential Revision: https://phabricator.services.mozilla.com/D141168
2022-04-05 18:48:17 +00:00
Emilio Cobos Álvarez 6d72631810 Bug 1763001 - Manually wait for remote browser load in test_color_scheme_browser.xhtml. r=nika
Remote browsers don't block onload otherwise, so we could spawn a task
to the initial about:blank, and getting that replaced by the real load
before the task executed.

Differential Revision: https://phabricator.services.mozilla.com/D142940
2022-04-05 14:55:04 +00:00
Martin Robinson b24fd95192 Bug 1761995 - Skip `content-visibility: hidden` content in display lists r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D142341
2022-04-05 09:10:42 +00:00
Emilio Cobos Álvarez a2e5b66c8d Bug 1760059 - Make incremental search string handling local to a given element. r=dimi
Switching focus seems like a reasonable reason to start the search
again.

Differential Revision: https://phabricator.services.mozilla.com/D142815
2022-04-04 22:10:06 +00:00
Emilio Cobos Álvarez a18fdda05d Bug 1762298 - GCC build bustage and reftest fixes.
MANUAL PUSH: Orange fix CLOSED TREE
2022-04-04 22:14:24 +02:00
Emilio Cobos Álvarez 6553f27967 Bug 1762298 - Inherit used color-scheme from embedder <browser> elements. r=nika,dao,Gijs
This allows popups and sidebars to use the chrome preferred
color-scheme.

This moves the responsibility of setting the content-preferred color
scheme to the appropriate browsers to the front-end (via tabs.css).

We still return the PreferredColorSchemeForContent() when there's no
pres context (e.g., for display:none in-process iframes). We could
potentially move a bunch of the pres-context data to the document
instead, but that should be acceptable IMO as for general web content
there's no behavior change in any case.

Differential Revision: https://phabricator.services.mozilla.com/D142578
2022-04-04 18:22:04 +00:00
Andrew Osmond 3fe3f7ca98 Bug 1753302 - Part 1. Integrate WebGPU with OffscreenCanvas plumbing. r=gfx-reviewers,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D141491
2022-04-04 16:42:02 +00:00
Emilio Cobos Álvarez 524448eb15 Bug 1762873 - Don't incorrectly add scrollbar size to select intrinsic size. r=jfkthame
In bug 1744009[1] I changed some code that looked like:

  * Get the dropdown frame intrinsic size.
  * If there's overlay scrollbars, add the non-overlay scrollbar size.

That code came from bug 869314. I misread the "if there's overlay
scrollbars" bit.

There's no need to explicitly add the scrollbar width to the intrinsic
size anymore. The dropdown frame no longer exists, and the button size
is split out from the scrollbar size nowadays. There's no reason
to artificially add any size to the content frame.

[1]: https://hg.mozilla.org/integration/autoland/rev/78130d73ca75#l24.652

Differential Revision: https://phabricator.services.mozilla.com/D142834
2022-04-04 16:28:28 +00:00
Emilio Cobos Álvarez 8edd7b11cf Bug 1762152 - Remove XULPopupElement.isAnchored. r=Gijs
On Wayland popup flipping and such is not Firefox's responsibility.

Once we've decided the final popup position because the compositor told
us, we move the popup to a fixed position, and internally the popup
becomes unanchored.

Using this boolean to make decisions after the initial popuppositioned
event is wrong, so avoid exposing it to JS.

Differential Revision: https://phabricator.services.mozilla.com/D142679
2022-04-04 13:29:30 +00:00
Edgar Chen c82b0711e1 Bug 1760560 - Remove directory upload API; r=smaug
HTMLInputElement.getFilesAndDirectories is used for testing Directory API, so
still keep it but mark as chrome only.

Differential Revision: https://phabricator.services.mozilla.com/D142444
2022-04-04 09:54:34 +00:00
Molnar Sandor c9954f4f58 Backed out changeset 357e5e22e480 (bug 1761756) for causing reftest failures. 2022-04-02 05:22:45 +03:00
David Shin 1fc2ad0158 Bug 1759621 - Migrate `<th>` `text-align` behaviour from presentation hint to UA CSS. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D142494
2022-04-01 22:57:05 +00:00
Tooru Fujisawa dbdc38994d Bug 1761756 - Check the intersection again after conditioning the rect. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D142310
2022-04-01 21:20:08 +00:00
Molnar Sandor 8c2a7b41fb Backed out changeset caf3fd368a8e (bug 1759621) for causing xpc failures in /test_css-properties-db.js CLOSED TREE 2022-04-02 00:18:00 +03:00
David Shin e75208ec5b Bug 1759621 - Migrate `<th>` `text-align` behaviour from presentation hint to UA CSS. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D142494
2022-04-01 20:24:19 +00:00
Lee Salzman bc333ceb93 Bug 1761404 - Add DrawTarget DrawShadow API call. r=jrmuizel,gfx-reviewers
This implements a new DrawTarget API call, DrawShadow. This can be used to draw
the shadow of a given Path and Pattern. Unlike DrawSurfaceWithShadow, this only
draws the shadow to simplify the resulting implementation. DrawTarget provides
a default implementation that will draw a blurred shadow to a transient surface
before handing it off to DrawSurfaceWithShadow, allowing existing DrawTarget
implementations to function without having to implement the new API at all.

Within DrawTargetWebgl, DrawShadow allows direct caching of the shadow in the
existing PathCache mechanism, unlike DrawSurfaceWithShadow which would usually
be called with different transient surfaces every time, even if the input
patterns actually matched.

CanvasRenderingContext2D is modified to call DrawShadow when only a shadow
needs to be applied without any filter. AdjustedTarget is modified to wrap
the necessary DrawTarget draw calls so they can be dispatched appropriately.

Since a lot of redundant shadow parameters are shared between DrawShadow and
DrawSurfaceWithShadow, and since a lot of consumers of these functions need
to also pass around these parameters, this also bundles these into a new
ShadowOptions structure to make this easier.

Differential Revision: https://phabricator.services.mozilla.com/D142026
2022-04-01 19:03:29 +00:00
Emilio Cobos Álvarez eaf7063698 Bug 1762018 - Reftest. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D142622
2022-04-01 11:19:00 +00:00
Iulian Moraru 097ed2afc5 Backed out changeset 4d65383640b4 (bug 1762018) for causing reftest failures on no-system-colors-color-scheme.html. CLOSED TREE 2022-04-01 11:12:37 +03:00