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

72999 Коммитов

Автор SHA1 Сообщение Дата
Razvan Maries f761608e79 Backed out changeset bca9f7459a16 (bug 1643656) for reftests perma failures. CLOSED TREE 2020-06-09 18:24:48 +03:00
Emilio Cobos Álvarez 6b86e22f72 Bug 1643656 - Remove prefers-color-scheme: no-preference. r=gl,remote-protocol-reviewers,hiro,whimboo
It was removed from the spec. Bug 1643934 updates the WPT tests.

Differential Revision: https://phabricator.services.mozilla.com/D78834
2020-06-09 13:21:54 +00:00
Kartikaya Gupta fe2e3901bb Bug 1644180 - Don't make an async zoom container of a layer that isn't async scrollable. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D78840
2020-06-09 04:35:45 +00:00
Jonathan Kew 90eb219457 Bug 1643126 - When measuring text, don't include letter-spacing on a preformatted newline character. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D78603
2020-06-09 08:52:10 +00:00
Colomban Wendling 120fea1c42 Bug 1628762 - Fix tree column header color to follow theme. r=geckoview-reviewers,snorp
The background color for the tree column headers is drawn using the
system APIs, but the foreground uses custom colors, which didn't follow
theme.  This can lead to unreadable text with specific colors, e.g.
leading to black on black.

Fix this by using system colors for the foreground as well.  It also
adds on-hover styling to match possible background change on hover.

Differential Revision: https://phabricator.services.mozilla.com/D78073
2020-06-03 20:52:55 +00:00
Geoff Brown 04295788b2 Bug 1622436 - Support --enable-fission option in reftest harness and reftest family mach commands; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D78570
2020-06-08 19:20:45 +00:00
longsonr 930e2b7a2b Bug 1462186 - Mark reftest as slightly fuzzy on Windows 7 r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D78667
2020-06-08 16:42:59 +00:00
longsonr c4107df595 Bug 1644048 - wait for onload in reftest r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D78650
2020-06-08 16:45:06 +00:00
longsonr 001136fb24 Bug 1503525 - Increase fuzziness slightly r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D78670
2020-06-08 16:40:50 +00:00
Emilio Cobos Álvarez 5f15c64dda Bug 1642224 - Make sheet loads always have a sensible triggering principal. r=ckerschb
I'm going to need to always have a principal at hand for bug 1599160,
and this helps with that.

This fixes the assumptions in the comment here:

  https://searchfox.org/mozilla-central/rev/5e4d4827aa005d031580d2d17a01bae1af138b2e/layout/style/Loader.cpp#1408-1411

Which are not always true I think.

In particular, we may not always do a non-system load without an
associated DOM node. For link headers, we use the document loader, but
there's no DOM node to get a hand to. In those cases, before this patch
we're currently loading using the system principal, which seems wrong.

Differential Revision: https://phabricator.services.mozilla.com/D77614
2020-06-08 09:11:26 +00:00
Simon Giesecke ebbc7ae838 Bug 1642989 - Use RemoveLastElements instead of RemoveElementsAt where possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78049
2020-06-08 08:50:15 +00:00
Cameron McCormack 2b522290ef Bug 1634393 - Resolve <textPath> href local references against document URL, not base URL. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D78627
2020-06-08 06:06:26 +00:00
Timothy Nikkel a1a2512d01 Bug 1632268. Take into account resolution when position select drop downs and form autocomplete. r=botond
One note about this solution: it includes the apz callback transform for the root scroll frame of the root content document, but no other apz callback transform that might be on an ancestor of the select element.

Differential Revision: https://phabricator.services.mozilla.com/D78026
2020-06-08 05:45:47 +00:00
longsonr 6ded748d68 Bug 1638051 - Stop clamping radialGradients. r=dholbert
We have to remove one of the radialGradient-basic-03-ref.svg tests (id=gradient5)
because it's testing clamping i.e. an fr just inside the radius is the same as
just outside and that's no longer true. Two of the other references are now different
due to the lack of clamping. In order to get the test and reference the same, the reference is created
using canvas since canvas has never had clamping.

Clamping was required by SVG 1.1 but that requirement was explicitly removed in SVG 2
mostly to match canvas, which has never clamped. Any rendering artifacts would likely
have been uncovered by canvas over the years since it has the same code that SVG uses
absent any clamping.

Differential Revision: https://phabricator.services.mozilla.com/D75706
2020-06-07 10:05:00 +00:00
Kagami Sascha Rosylight e666158472 Bug 1642588 - Make Triple click only select within editing host r=masayuki,emilio
Differential Revision: https://phabricator.services.mozilla.com/D78315
2020-06-06 11:36:36 +00:00
Xidorn Quan 6c2a5f77a7 Bug 1641139 - Reflow absolute frames in ruby container and ruby base container. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D77584
2020-06-06 05:38:12 +00:00
Hiroyuki Ikezoe 6dc530332c Bug 1619169 - Expand the given size with the ratio of the dynamic toolbar max height to the display size in ExpandHeightForDynamicToolbar. r=botond
In some cases the visible area has been already scaled to a certain scale
_visually_ to fit the content to the display, whereas we apply the max height of
the dynamic toolbar to the visible area as it is [1], which means the
resolution of the each value mismatches.  Ideally this mismatch should be fixed
by factoring the resolution differece, but there are some edge cases we can't
simply fix it as I described in bug 1641166.

So, here we take a different approach which is not affected by the content
visible area's resolution value.

[1] https://searchfox.org/mozilla-central/rev/598e50d2c3cd81cd616654f16af811adceb08f9f/layout/base/nsPresContext.cpp#2527
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1641166

Differential Revision: https://phabricator.services.mozilla.com/D78441
2020-06-06 04:45:02 +00:00
Hiroyuki Ikezoe dc8db2c291 Bug 1619169 - Duplicate ExpandHeightForViewportUnits to ExpandHeightForDynamicToolbar. r=botond
And use the duplicated one at the places where we need the expanded size for
interactions with the dynamic toolbar on the compositor. The new function will
be modified in the next commit.

Note that the only one remaining call site of ExpandHeightForViewportUnits is
for window.inner{Width,Height}. For window.inner{Width,Height} we don't yet
return the layout viewport (which might be expanded by the minimum-scale), it's
going to be fixed in bug 1598487 [1], but it's not ready to fix because there
also need fixes in comm-central (see dependencies in the bug).  So for now, we
should keep the current behavior for window.inner{Width,Height}.

Also note that it's not yet clear whether we will eventually replace the last
call site of ExpandHeightForViewportUnits with ExpandHeightForDynamicToolbar
since the value corresponding to the dynamic toolbar might _NOT_ be affected by
the minimum-scale in some cases.  See bug 1641166 for details.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1598487
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1641166

Differential Revision: https://phabricator.services.mozilla.com/D78440
2020-06-06 04:44:54 +00:00
Kartikaya Gupta c4698ef203 Bug 1627708 - Add boolean telemetry histograms for recording if APZ zooming occurred. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D77827
2020-06-06 00:32:12 +00:00
Cameron McCormack 5e27c1bd6b Bug 1642261 - Part 2: Add telemetry for -moz-appearance usage. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D77637
2020-06-05 00:39:50 +00:00
Bogdan Tara 86d1eef7a6 Backed out changeset 6e99a3e6c77b (bug 1642588) for test_bug1642588.html failures CLOSED TREE 2020-06-06 02:45:52 +03:00
Kagami Sascha Rosylight e29858d3ad Bug 1642588 - Make Triple click only select within editing host r=masayuki,emilio
Differential Revision: https://phabricator.services.mozilla.com/D78315
2020-06-05 22:45:30 +00:00
Bogdan Tara 1ba73a9900 Backed out changeset 094a2fc0fc50 (bug 1642588) for test_bug1642588.html failures CLOSED TREE 2020-06-05 21:50:36 +03:00
Emilio Cobos Álvarez 15e3db4260 Bug 1643230 - Clear last_parsed_property_id right after successfully parsing the value. r=jwatt
Rather than waiting until parsing another id (successfully or
unsuccessfully).

If we error before we even get to PropertyId::parse, we'd incorrectly
associate the error with the wrong property, incorrectly omitting it
sometimes.

Differential Revision: https://phabricator.services.mozilla.com/D78260
2020-06-05 18:13:14 +00:00
Kagami Sascha Rosylight d02396bd67 Bug 1642588 - Make Triple click only select within editing host r=masayuki,emilio
Differential Revision: https://phabricator.services.mozilla.com/D78315
2020-06-05 13:41:26 +00:00
Kartikaya Gupta c06eb6ae82 Bug 1643042 - Switch mLastSmoothScrollOrigin to using None as well. r=tnikkel
This uses "None" instead of "NotSpecified" as the value for
mLastSmoothScrollOrigin when there is no smooth scroll in progress.

Depends on D78439

Differential Revision: https://phabricator.services.mozilla.com/D78469
2020-06-05 09:41:07 +00:00
Kartikaya Gupta 445d9cf0b8 Bug 1643042 - Introduce an None scroll origin. r=tnikkel
This adds a new scroll origin, None, which is used as the initial value for
mLastScrollOrigin. Unlike Other, this scroll origin can be clobbered by any
other scroll origin, including notably Relative. This means that on a
brand-new scrollframe, if the first scroll call comes in with an origin of
Relative, it will be preserved as a relative scroll instead of getting
converted to a non-relative scroll.

This in turn fixes a latent bug in the code that was exposed by the
test_relative_update.html APZ mochitest when run with apz.allow_zooming=true.

Note also that we should never be passing eNone to functions like ScrollToImpl;
for those scenarios we continue using Unknown if we don't have a more specific
scroll origin to use. In other words, None is a sort of sentinel value to be
used for class fields, and is not to be used for actual scrollto-type calls.

Differential Revision: https://phabricator.services.mozilla.com/D78439
2020-06-05 09:44:10 +00:00
Kartikaya Gupta 7ac36807b1 Bug 1643042 - Turn the scroll origin parameter into a strongly-typed enum. r=tnikkel
This patch is a fairly mechanical conversion. The old `nullptr` gets converted
to ScrollOrigin::NotSpecified, and all the other possible values get corresponding
values in the new ScrollOrigin enum. A few switch statements are introduced to
clean up big if statements, but other than that, additional cleanups will happen
in later patches.

Differential Revision: https://phabricator.services.mozilla.com/D78438
2020-06-05 09:37:51 +00:00
Ting-Yu Lin e3ba3c551e Bug 1643173 Part 2 - Unify GetDisplayFlag helpers for flex and grid items. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D78167
2020-06-05 02:52:58 +00:00
Ting-Yu Lin 1022daa063 Bug 1643173 Part 1 - Convert enum nsIFrame::DISPLAY_CHILD_* to enum class. r=dholbert
The modifications are all straightforward conversion except the one in
nsMathMLContainerFrame, where it is simplified by calling the equivalent
BuildDisplayListForInline() helper.

Differential Revision: https://phabricator.services.mozilla.com/D78166
2020-06-05 02:52:05 +00:00
Glenn Watson 0cc2ef2ac9 Bug 1641751 - Part 3 - Refactor some texture cache code for future eviction changes. r=Bert,kvark
* Maintain a running total of bytes allocated in both standalone and
  shared cache regions. This is used as a threshold to know when to
  force a mid-frame eviction. Previously, as soon as the currently
  allocated set of shared textures were full, we'd force an eviction.
  This means that in typical use cases, we were forcing an eviction
  as soon as the texture cache is > 16 MB, which is inefficient.

* Separate out picture cache eviction from the normal cache eviction
  path. This will be important in the next patch which will change
  the eviction algorithm for all shared / standalone entries.

* Remove Eviction::Eager as a policy option for shared and standalone
  textures. As part of this, switch render task cache entries to use
  Eviction::Auto. This is a better option anyway, there is no real
  benefit to evicting render tasks as soon as possible - they should
  be expired based on usage, just as for normal cache entries.

Differential Revision: https://phabricator.services.mozilla.com/D77983
2020-06-05 00:53:17 +00:00
Botond Ballo 97b30c6183 Bug 1643212 - Use the expanded scroll port to constrain the dirty rect in ScrollFrameHelper::BuildDisplayList(). r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D78220
2020-06-04 22:46:43 +00:00
Hiroyuki Ikezoe 3dafe26062 Bug 1641733 - Trigger print via FrameLoader.print in the parant process instead of in the content process. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D78214
2020-06-04 21:09:30 +00:00
Bob Clary f5e7f65c90 Bug 1642661 - jsbrowsertest should error if --enable-js-shell isn't set, r=gbrown.
Differential Revision: https://phabricator.services.mozilla.com/D78340
2020-06-04 19:01:05 +00:00
Delan Azabani b00311bc4f Bug 1630935 - Refactor FontFamilyName + FontFamilyList + nsMathMLChar. r=emilio
This patch:

* extracts family name matching logic from FontFamilyList::Contains into FontFamilyName::IsNamedFamily
* simplifies the loop around StretchEnumContext::EnumCallback using a range-based loop with a break
* inverts the meaning of StretchEnumContext::EnumCallback’s return value

These changes were first reviewed in D73833, but we’re separating them to help us investigate some test regressions.

Differential Revision: https://phabricator.services.mozilla.com/D77067
2020-06-04 13:18:21 +00:00
Emilio Cobos Álvarez 69e9c44fab Bug 1643279 - Fix specificity of select rules in forms.css. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D78252
2020-06-04 12:30:53 +00:00
Kenny Levinsen ceedac76da Bug 1641033 - nsRefreshDriver vsync observer should always post task to main thread. r=jrmuizel
nsRefreshDriver's NotifyVsync method had some slightly convoluted logic: Based on the thread it is called from, it would guess whether it is called from a vsync source, in which case it would schedule itself onto the main thread, or from the self-scheduled task, in which case it would perform work.

This just splits the two: NotifyVsync only takes care of VsyncSource, and schedules a task that calls the tick logic. This also allows Wayland to run the VsyncSource off the main thread.

Differential Revision: https://phabricator.services.mozilla.com/D77044
2020-06-04 10:43:19 +00:00
Timothy Nikkel 3d8f182b50 Bug 1642869. Check if the visual viewport differs from the layout viewport in ScrollFrameHelper::GetPageScrollAmount. r=kats
So we can preserve the scrolling behaviour that takes into account fixed "headers" and "footers".

Differential Revision: https://phabricator.services.mozilla.com/D77985
2020-06-04 02:01:06 +00:00
Mirko Brodesser 76dbaf2f21 Bug 1635709: part 29) Factor finding first and last cell of row or column out. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D77825
2020-06-04 09:04:39 +00:00
Mirko Brodesser ab2db129d7 Bug 1635709: part 28) Declare some function arguments in `nsFrameSelection` `const`. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D77460
2020-06-04 09:03:47 +00:00
Butkovits Atila 0d35cbf7ea Backed out changeset 6bb6a5cdc941 (bug 1641139) for causing failures at abs-in-ruby-base-container.html. CLOSED TREE 2020-06-04 10:50:36 +03:00
Xidorn Quan 7dcbad3c8a Bug 1641139 - Reflow absolute frames in ruby container and ruby base container. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D77584
2020-06-04 06:08:40 +00:00
Ting-Yu Lin 918802699b Bug 1640028 - Add a crashtest. r=dholbert
Fixed by bug 1640275 and bug 1343948.

Differential Revision: https://phabricator.services.mozilla.com/D78161
2020-06-03 22:20:41 +00:00
Dorel Luca 22dc44ab33 Backed out changeset d39b5b23b9e7 (bug 1640028) for Valgrind and Build Bustage. CLOSED TREE 2020-06-04 04:58:54 +03:00
Ting-Yu Lin 7cdca6d6d5 Bug 1640028 - Add a crashtest. r=dholbert
Fixed by bug 1640275 and bug 1343948.

Differential Revision: https://phabricator.services.mozilla.com/D78161
2020-06-03 22:20:41 +00:00
Cameron McCormack 495960fe47 Bug 1642895 - Remove unused nsFontFaceLoader::Init declaration. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D77997
2020-06-03 08:24:09 +00:00
Jonathan Watt cf7589cd57 Bug 1600623. Add telemetry probes for print dialog/preview opens/cancels and print target type. r=bobowen,mbalfanz
The probes collect counts for:

 - print preview open, and exit without print
 - print dialog opened from print preview, and cancelled
 - print dialog opened without print preview, and cancelled
 - silent prints
 - print target
   - PDF file
   - XPS file
   - other (probably print to physical printer, but we can never be sure)

There is some overlap with the existing PRINT_* probes, but I think we should
keep those in place temporarily until we confirm that the new probes produce
numbers that are consistent with the old probes.

This patch only adds 'print target' probes for Windows and macOS.

I use nsDeviceContextSpec*::Init() to collect the 'print target' telemetry
because the way we initialize settings from prefs (and the way macOS works in
particular) make it difficult to reliably determine the target type earlier in
the print process for all possible entry points into the printing code.

Differential Revision: https://phabricator.services.mozilla.com/D78033
2020-06-03 21:21:14 +00:00
Dorel Luca cffc8edb6f Backed out changeset 3d06403ffd5c (bug 1642364) for WPT failures in /semantics/interactive-elements/the-dialog-element/abspos-dialog-layout.html. CLOSED TREE 2020-06-04 00:59:44 +03:00
Keefer Rourke 1b3a17d452 Bug 1608515: Update the SVG IsContainingWindowElementOfType impl for Fission r=barret,dholbert
In nsSVGOuterSVGFrame::IsContainingWindowElementOfType, we now inspect
the embedder by asking the window for its browsing context, instead of
asking it directly for its frame element.

Differential Revision: https://phabricator.services.mozilla.com/D77518
2020-06-03 15:24:54 +00:00
Botond Ballo 93fd46b292 Bug 1611660 - Adjust WR test expectations. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D61333
2020-06-03 19:03:17 +00:00