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

77719 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez b699e8cdc8 Bug 1753995 - Remove nsDOMWindowUtils.screenPixelsPerCSSPixel. r=smaug,dholbert
For all purposes, this is the same as devicePixelRatio. It was meant to
skip the resistFingerprinting check the devicePixelRatio getter does,
but we do that now using CallerType in WebIDL, so if we cared about that
for these tests (which we don't) we could just do
SpecialPowers.wrap(window).devicePixelRatio.

As a follow-up we could move the NoOverride to window for symmetry. But
it's only used by devtools touch simulation so not sure if worth it.

Differential Revision: https://phabricator.services.mozilla.com/D138021
2022-02-07 18:23:36 +00:00
Emilio Cobos Álvarez 70d562520d Bug 1748181 - Provide a pref to make scrollbar-width: thin behave as auto. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D137898
2022-02-07 18:14:31 +00:00
smolnar d8c0c3db3c Merge autoland to mozilla-central. a=merge 2022-02-05 11:13:25 +02:00
Daniel Holbert 13158291b6 Bug 1752893 part 2: Use solid instead of dashed borders in all grid-fragmentation* reftests, and remove fuzzy annotations. r=emilio
Dashed borders don't paint 100% deterministically, as noted in the previous
patch in this series, so let's switch all of these tests to use a solid border
with a distinguishable color, so that we can avoid fuzzy failures in these
tests.

The HTML changes in this patch were performed automatically by this command:
    cd layout/reftests/css-grid
    sed -i "s/2px dashed;/2px solid salmon;/" ./grid-fragmentation-*html

And then I edited the reftest.list file by hand to remove all fuzzy annotations
for these tests, since I'm speculating that these annotations are associated
with the dashed borders.

Differential Revision: https://phabricator.services.mozilla.com/D137915
2022-02-05 01:01:58 +00:00
Daniel Holbert 6eedbc2d4f Bug 1752893 part 1: Use solid instead of dashed borders in reftest grid-fragmentation-015.html, to avoid fuzzy test-failures. r=emilio
Dashed borders don't paint 100% deterministically, as shown in this bug (where
we've just started seeing intermittent failures with a particular dash
rendering a stray pixel under one set of dynamic conditions -- possibly due to
a subtle antialiasing difference or something like that).

For the sake of test reliability, let's just use a solid border here. I've
chosen salmon as the color, since that still stands out reasonably-well against
the other colors in this test. (I don't want to leave it black, since the test
has other solid black borders already.)

Differential Revision: https://phabricator.services.mozilla.com/D137914
2022-02-05 01:01:58 +00:00
Emilio Cobos Álvarez 739ada1351 Bug 1753105 - Deal with negative letter-spacing in SVGTextFrame. r=jfkthame
Otherwise we can end up with a rect with negative width, bad stuff to
follow.

Differential Revision: https://phabricator.services.mozilla.com/D137881
2022-02-04 23:25:22 +00:00
Emilio Cobos Álvarez 546aa68368 Bug 1745860 - Fix assert to deal with terrible <area> hack. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D137753
2022-02-04 22:03:27 +00:00
Jeff Muizelaar 50d7560394 Bug 1753530 - Scale rects directly instead of going through a matrix. r=botond
This adds a round trip from double -> float -> double because
CSSRect is float but it should be ok because most users of gfxRect (RectDouble)
should be using Rect instead anyways.

Differential Revision: https://phabricator.services.mozilla.com/D137811
2022-02-04 21:09:19 +00:00
Emilio Cobos Álvarez 07f4f275f6 Bug 1753408 - Remove ResizeObserver pref. r=webidl,smaug
The front-end relies on it and we've shipped it for a long time, not
worth keeping the pref.

Differential Revision: https://phabricator.services.mozilla.com/D137864
2022-02-04 16:44:22 +00:00
Timothy Nikkel e704102060 Bug 1753372. Don't potentially create a visual viewport offset during scroll frame reflow. r=botond
There's no need to create a visual viewport offset here, only if one already exists do we want to clamp it.

I noticed this while reading code for something else, so I'm not sure if it actually fixes anything.

Differential Revision: https://phabricator.services.mozilla.com/D137720
2022-02-04 05:05:32 +00:00
Emily McDonough ec738be96e Bug 1730091 - Do not apply the scaling factor that accounts for nsPageContentFrame scaling to headers/footers r=dholbert
This scaling factor is to account for ComputePagesPerSheetAndPageSizeTransform,
but that is not used when printing headers/footers, which resulted in the
reversed scale clipping the header/footer.

Differential Revision: https://phabricator.services.mozilla.com/D136830
2022-02-04 01:31:31 +00:00
Emilio Cobos Álvarez f06e26a2b8 Bug 1753516 - Honor sync-decoding hint on webrender. r=aosmond
We weren't doing it. I want to see if it helps with some flickering
intermittents with the patch of bug 1718220.

Not sure how to reliably test this.

Differential Revision: https://phabricator.services.mozilla.com/D137794
2022-02-03 22:28:59 +01:00
Sylvestre Ledru caaedeee98 Bug 1753413 - fx doc: Remove whitespaces, trailing lines & windows CR r=andi,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D137741
2022-02-03 18:34:58 +00:00
Emilio Cobos Álvarez 81272b8d66 Bug 1753453 - Remove unused nsImageRenderer::IsAnimatedImage. r=aosmond
Drive-by cleanup.

Depends on D137762

Differential Revision: https://phabricator.services.mozilla.com/D137764
2022-02-03 17:31:41 +00:00
Nicolas Silva 89a8f2b82c Bug 1753442 - Add a pref to ignore will-change:opacity. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D137755
2022-02-03 15:48:33 +00:00
Csoregi Natalia 1fe904efad Backed out changeset 8c4414cc1e61 (bug 1730091) for failures on test_printpreview.xhtml. CLOSED TREE 2022-02-03 04:38:16 +02:00
Emily McDonough a4f5e2f581 Bug 1730091 - Do not apply the scaling factor that accounts for nsPageContentFrame scaling to headers/footers r=dholbert
This scaling factor is to account for ComputePagesPerSheetAndPageSizeTransform,
but that is not used when printing headers/footers, which resulted in the
reversed scale clipping the header/footer.

Differential Revision: https://phabricator.services.mozilla.com/D136830
2022-02-02 23:45:25 +00:00
Jonathan Kew f8aa71dcae Bug 1747272 - Apply current color when rasterizing glyphs from color fonts in Skia using Core Text. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D137567
2022-02-01 21:41:17 +00:00
Joel Maher a261492460 Bug 1750839 - Enable fission browser-chrome for variants. r=mccr8,releng-reviewers,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D136512
2022-02-01 19:30:34 +00:00
Brad Werth 6c21e3952b Bug 1723469 Part 2: Add reftest for opacity flattening of large images. r=aosmond,emilio
Differential Revision: https://phabricator.services.mozilla.com/D137496
2022-02-01 17:29:34 +00:00
Brad Werth b0c4fa2839 Bug 1723469 Part 1: Prevent large background images from using opacity flattening. r=aosmond,emilio
This prevents opacity from being set on large images sent to WebRender.
Instead, opacity will be handled in the parent layer, which is less efficient,
but correct for these large images.

This can be a temporary fix until WR supports opacity on arbitrarily large
images.

Differential Revision: https://phabricator.services.mozilla.com/D137360
2022-02-01 17:29:34 +00:00
Tim Giles 372d9664f0 Bug 1741888 - Fix autofill preview text not behaving as expected. r=sgalich,emilio
Differential Revision: https://phabricator.services.mozilla.com/D132500
2022-01-31 19:06:13 +00:00
Andi-Bogdan Postelnicu 30631a4a9b Bug 1519636 - Reformat recent changes to the Google coding style. r=sylvestre
Updated with clang-format version 13.0.0 (taskcluster-dIIauZE0TkuXy6_23BQhcw)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D137147
2022-01-31 17:00:21 +00:00
Benjamin VanderSloot 1cdef79d53 Bug 1750022 - Make tests in layout/base/tests/ dFPI compatible, r=smaug,anti-tracking-reviewers,timhuang
We are fixing mochitests that fail when network.cookie.cookieBehavior = 5, i.e. when we enable Total Cookie Protection.
This is most often due to the test assuming that an origin will always have access to its storage state when embedded as
a third party.

In this case I had to request storage access to allow an embedded iframe to use a BroadcastChannel to communicate with top-level pages of the same origin.
This was only a problem in the XOrigin case where the test html file is loaded in an embedded iframe and then can't communicate with the top-level window it created.

Differential Revision: https://phabricator.services.mozilla.com/D136608
2022-01-31 14:23:40 +00:00
Jonathan Kew f22da7a73f Bug 1752649 - Use GetInFlowParent when retrieving language to be used for quote marks from the element's context. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D137384
2022-01-31 11:55:43 +00:00
Hiroyuki Ikezoe 860a49babe Bug 1571758 - Inform apz scroll generation to WebRender's ScrollFrame from the main-thread. r=botond
Also inform a flat representing whether the frame's document has scroll-linked
effect or not.

Differential Revision: https://phabricator.services.mozilla.com/D133442
2022-01-31 09:40:35 +00:00
Hiroyuki Ikezoe 562a98e9cc Bug 1571758 - Introduce scroll generation in APZC and SampledAPZCState and inform it to the scrollable frame on the main-thread via RepaintRequest. r=botond
The reason why the global ScrollGeneration::sCounter doesn't work for the APZ
case is the APZ sampler thread is per our top level browser window, so if
there are multiple browser windows at the same time, the sCounter will be muted
from different sampler threads.

Differential Revision: https://phabricator.services.mozilla.com/D133439
2022-01-31 09:40:33 +00:00
Hiroyuki Ikezoe 8aa8a32f2a Bug 1571758 - Split out ScrollGeneration into a new header. r=botond
We are going to use it in various places, APZC, SampledAPZState etc.

Differential Revision: https://phabricator.services.mozilla.com/D133437
2022-01-31 09:40:33 +00:00
Timothy Nikkel 433caa9ce3 Bug 1752720. Remove unused nsIScrollableFrame::IsScrollingActiveNotMinimalDisplayPort. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D137387
2022-01-30 03:47:27 +00:00
Paul Zuehlcke 9a5b3ef765 Bug 1749377 - Set color scheme on window widget to fix PBM dark theme issues on macOS. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D136933
2022-01-29 14:24:58 +00:00
Daniel Holbert 93a7663777 Bug 1740304: Apply the print fragmentation-fallback "additional offset" in one case where it was being missed. r=miko
We call MaybeApplyAdditionalOffset a few lines up when setting *aOffset, but it
looks like we missed this particular codepath.  This was causing content to
render properly during print-preview (which takes the upper codepath) but not
during actual printing (which takes the lower codepath, the one where I'm
adding the new call).

Differential Revision: https://phabricator.services.mozilla.com/D137199
2022-01-29 00:50:17 +00:00
Csoregi Natalia 217eaa9e99 Backed out changeset b56be60b0629 (bug 1741888) for reftest failures on autofill. CLOSED TREE 2022-01-28 20:35:39 +02:00
Emilio Cobos Álvarez 4eea923e01 Bug 1746794 - Make more nsLayoutUtils functions SVG-text aware. r=layout-reviewers,jfkthame
This makes TransformPoint and TransformRect deal with SVG text
correctly. We need TransformPoint support so that GeometryUtils works as
expected, since we need to transform the points individually so that
stuff like transforms report the expected result (a rect doesn't cut it
for those).

Differential Revision: https://phabricator.services.mozilla.com/D135152
2022-01-28 16:50:14 +00:00
Miko Mynttinen 2175f47f8f Bug 1751965 - Remove destroyed display items from reused display items list r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D137235
2022-01-28 16:30:55 +00:00
Jonathan Watt dff729bc6d Bug 1704178. Remove platform print.tab_modal.enabled=false code. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D136736
2022-01-28 15:52:51 +00:00
Tim Giles 07478ce136 Bug 1741888 - Fix autofill preview text not behaving as expected. r=sgalich,emilio
Differential Revision: https://phabricator.services.mozilla.com/D132500
2022-01-28 14:58:52 +00:00
Jonathan Kew c87637269a Bug 1751940 - Language-depeendent quote marks generated with quotes:auto should be based on the lang of the parent. r=layout-reviewers,emilio
This implements the first resolution from https://github.com/w3c/csswg-drafts/issues/5478,
and makes simple cases of quoting a foreign-language snippet work as desired.

Still to do: the match-parent value (second resolution in that issue), required for full
support of nested mixed-language quotes if the author wants the conventions of the
outermost language to propagate down to all nested levels.

Differential Revision: https://phabricator.services.mozilla.com/D137178
2022-01-28 09:57:18 +00:00
Butkovits Atila 515353ffd6 Backed out changeset e4a77ca754ff (bug 1751940) for causing build bustages at nsQuoteList.cpp. CLOSED TREE 2022-01-28 01:19:27 +02:00
Jonathan Kew fd6d94936e Bug 1751940 - Language-depeendent quote marks generated with quotes:auto should be based on the lang of the parent. r=layout-reviewers,emilio
This implements the first resolution from https://github.com/w3c/csswg-drafts/issues/5478,
and makes simple cases of quoting a foreign-language snippet work as desired.

Still to do: the match-parent value (second resolution in that issue), required for full
support of nested mixed-language quotes if the author wants the conventions of the
outermost language to propagate down to all nested levels.

Differential Revision: https://phabricator.services.mozilla.com/D137178
2022-01-27 22:12:47 +00:00
Timothy Nikkel 0661a47e1c Bug 1751806. Remove active content tracking from ActiveLayerTracker as it is unused. r=mstange
Depends on D136816

Differential Revision: https://phabricator.services.mozilla.com/D136817
2022-01-26 11:39:13 +00:00
Timothy Nikkel 2933d9ccc7 Bug 1751806. Remove background position and offset tracking from ActiveLayerManager as they are unused. r=mstange
Depends on D136815

Differential Revision: https://phabricator.services.mozilla.com/D136816
2022-01-26 11:39:13 +00:00
Timothy Nikkel d1a54b0a05 Bug 1751806. Remove usage of gfxVars::UseWebRender in ActiveLayerTracker which is always true. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D136815
2022-01-26 11:39:12 +00:00
Nicklas Boman ff6b6326b3 Bug 1725363 - Replace PL_strcasecmp with nsCRT::strcasecmp layout/ r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D129075
2022-01-26 09:57:46 +00:00
Jonathan Kew c52f346619 Bug 1751738 - Check textframe writing mode when generating/drawing a soft-hyphen textrun. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D136910
2022-01-25 23:27:23 +00:00
Emilio Cobos Álvarez dc4988bbd0 Bug 1729805 - Make async OpenMenu simpler/sound. r=NeilDeakin,mstange
There's only one caller of it and it's not sound: The runnable captures a
raw frame pointer etc. Instead, just do a dispatch to the main thread
and call OpenMenu there. This simplifies the following patch.

Differential Revision: https://phabricator.services.mozilla.com/D131082
2022-01-25 21:40:22 +00:00
Sandor Molnar 324f6c49c3 Bug 1642198 - Disable layout/svg/tests/test_filter_crossorigin.html on linux, for frequent failures. r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D136685
2022-01-25 13:08:55 +00:00
Miko Mynttinen 47e3664850 Bug 1751743 - Add missing ifdef r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D136824
2022-01-25 13:08:51 +00:00
Ting-Yu Lin 9a07ff37d5 Bug 1751471 - Add a diagnostic preference to always run flex item's final reflow. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D136764
2022-01-25 06:21:08 +00:00
Timothy Nikkel 24844705a8 Bug 1750850. Remove the code that tracks "active layers" from changes made in scroll handlers. r=mstange
This was added in bug 1201330 but with WR isn't really needed anymore and the code causes the expiration timer to fire until the scroll frame becomes inactive (the most common scroll frames stay active, ie root scroll frames).

Differential Revision: https://phabricator.services.mozilla.com/D136806
2022-01-24 23:39:07 +00:00
Andreas Pehrson 25a2508021 Bug 1344524 - Capture frames from a canvas while its refresh driver is throttled. r=jgilbert
Note that this is only triggered if the application is able to draw to the
canvas while the refresh driver is throttled.

Differential Revision: https://phabricator.services.mozilla.com/D136004
2022-01-24 15:31:15 +00:00