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

74596 Коммитов

Автор SHA1 Сообщение Дата
Peter Van der Beken ea7daa934e Bug 1677483 - Reenable some tests that are now succeeding with Fission. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D97267
2020-11-17 10:25:51 +00:00
Mihai Alexandru Michis c0d25b01b2 Backed out 24 changesets (bug 1666566, bug 1675409) for causing hazard failures in profiler/core/platform.cpp
CLOSED TREE

Backed out changeset 4d8af8533fd4 (bug 1666566)
Backed out changeset f031a3a8a20f (bug 1675409)
Backed out changeset 2b7e1a031921 (bug 1675409)
Backed out changeset bda5a24b2d0a (bug 1675409)
Backed out changeset 4282e2284314 (bug 1675409)
Backed out changeset 0637f1b26e9f (bug 1675409)
Backed out changeset 67ae04c8f607 (bug 1675409)
Backed out changeset 6c7b3f3618ef (bug 1675409)
Backed out changeset 2f325c22d169 (bug 1675409)
Backed out changeset 1e48ff70ad8f (bug 1675409)
Backed out changeset 1dfc32d6871d (bug 1675409)
Backed out changeset 4f1f218a777b (bug 1675409)
Backed out changeset e6ac8722b38e (bug 1675409)
Backed out changeset cf132e15fb57 (bug 1675409)
Backed out changeset a126e6b00ba9 (bug 1675409)
Backed out changeset fbc7fbb04f33 (bug 1675409)
Backed out changeset 554c69681474 (bug 1675409)
Backed out changeset 44d0521c701f (bug 1675409)
Backed out changeset 04653dfe4720 (bug 1675409)
Backed out changeset 41ca2c043a00 (bug 1675409)
Backed out changeset 264ae4c805d4 (bug 1675409)
Backed out changeset 5f3bbdac0d52 (bug 1675409)
Backed out changeset 11311c11a6e8 (bug 1675409)
Backed out changeset 0355fbc44baf (bug 1675409)
2020-11-17 19:31:28 +02:00
Mihai Alexandru Michis d06ca5f7d1 Backed out changeset e4b67fc1f101 (bug 1677483) for causing multiple mochitest plain failures.
CLOSED TREE
2020-11-17 19:29:26 +02:00
Peter Van der Beken 1bdf9fa7e0 Bug 1677689 - Make layout/base/tests/test_bug851485.html more reliable so it works with Fission too. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D97271
2020-11-17 12:13:05 +00:00
Peter Van der Beken 75190a1035 Bug 1677483 - Reenable some tests that are now succeeding with Fission. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D97267
2020-11-17 10:25:51 +00:00
Gerald Squelart e89990aa2c Bug 1675409 - Migrated TracingMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96053
2020-11-17 11:39:42 +00:00
Gerald Squelart 667f0705c6 Bug 1675409 - Migrated StyleMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96037
2020-11-17 11:30:31 +00:00
Ting-Yu Lin bccb437849 Bug 1676585 Part 2 - Use LogicalRect to compute joining boxes' border area. r=mats
The original code doesn't work for "writing-mode:vertical-rl" because
its block flow direction is the opposite of "writing-mode:vertical-lr."

Differential Revision: https://phabricator.services.mozilla.com/D96786
2020-11-17 05:36:42 +00:00
Ting-Yu Lin 7e3b64c3f2 Bug 1676585 Part 1 - Simplify vertical-wm-001.html by using logical properties. r=mats
This patch shouldn't change the rendering of the test at all.

Differential Revision: https://phabricator.services.mozilla.com/D96785
2020-11-17 05:35:33 +00:00
Kartikaya Gupta 58f3191c3d Bug 1674382 - Further restrict where we record APZ_ZOOM_ACTIVITY. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D96894
2020-11-16 22:38:46 +00:00
Csoregi Natalia 9eab74eb27 Backed out 2 changesets (bug 1645433) for reftest failures. CLOSED TREE
Backed out changeset 34c5981b4667 (bug 1645433)
Backed out changeset 7e28049666b7 (bug 1645433)
2020-11-17 02:53:42 +02:00
Botond Ballo 34cf1d1b68 Bug 1645433 - Avoid using INT32_MAX as the z-index of inactive scrollframe items. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D97063
2020-11-16 21:18:41 +00:00
Markus Stange 4a49a6612c Bug 1676434 - Replace obsolete -moz-mac-yosemite-theme media query with a new -moz-mac-big-sur-theme media query. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D97089
2020-11-16 20:43:35 +00:00
Jonathan Kew 522773107e Bug 1664094 - Make OGHAM SPACE MARK trimmable, and fix relevant WPT test/metadata. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D97169
2020-11-16 16:57:38 +00:00
Nika Layzell 42028efc71 Bug 1671983 - Part 4: Stop awaiting BrowserTestUtils.loadURI, r=annyG,remote-protocol-reviewers,extension-reviewers,preferences-reviewers,whimboo,zombie
This method only is async in order to allow callers to wait for a process switch
triggered by the call to `loadURI` to be finished before resolving. With
DocumentChannel, we should never trigger a process switch eagerly like this
again, so we don't need any of the async behaviour here anymore.

This part is largely mechanical changes to tests, removing the `await` calls on
`loadURI`, and a follow-up part will remove the actual async logic from
`BrowserTestUtils.loadURI`.

Differential Revision: https://phabricator.services.mozilla.com/D94641
2020-11-12 18:01:03 +00:00
Nicolas Silva a8f628b1a7 Bug 1645318 - Adjust reftest references. r=jnicol
Depends on D97132

Differential Revision: https://phabricator.services.mozilla.com/D97133
2020-11-16 10:55:34 +00:00
Nicolas Silva e3c6dd3c03 Bug 1619715 - Adjust reftest references. r=jnicol
Differential Revision: https://phabricator.services.mozilla.com/D97132
2020-11-16 10:56:02 +00:00
longsonr f1fb147667 Bug 1677187 - ignore x values for vertical and y values for horizontal text in textPaths r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D97086
2020-11-16 10:54:56 +00:00
Kartikaya Gupta 9116b2fd7d Bug 1662019 - Encapsulate the ScrollGeneration::New calls a bit more. r=tnikkel
Instead of the scrollframe manually calling ScrollGeneration::New this has the
ScrollPositionUpdate do it automatically. Just makes things a little more
encapsulated.

Note that this patch does contain a small functional change, which is that if
ScrollFrameHelper::ScrollToImpl is called with ScrollOrigin::apz, it will not
increment mScrollGeneration whereas it used to before. As far as I can tell
this should be a harmless change.

Depends on D97036

Differential Revision: https://phabricator.services.mozilla.com/D97037
2020-11-13 22:58:13 +00:00
Kartikaya Gupta bebe87ee86 Bug 1662019 - Replace the uint32_t scroll generation with ScrollGeneration. r=tnikkel
Depends on D97035

Differential Revision: https://phabricator.services.mozilla.com/D97036
2020-11-13 22:58:06 +00:00
Kartikaya Gupta 30cf7e7d4a Bug 1662019 - Create a dedicated struct for the scroll generation. r=tnikkel
Note in particular the struct keeps its own static (per-process) counter value,
and uses a uint64_t.

Depends on D97034

Differential Revision: https://phabricator.services.mozilla.com/D97035
2020-11-13 22:57:53 +00:00
Kartikaya Gupta af977cd0ec Bug 1231177 - Allow scroll position to advance when spamming multiple scrollframes in an interleaved manner. r=botond
In the case where there are two scrollframes that get scrolled in an
interleaved manner, the scroll generation counter continually advances
and blocks APZ from updating the main-thread scroll position. This
fixes that by removing the scroll generation counter check from the
relevant condition. The clause is entirely redundant when there is only
a single scrollframe and only causes problems when there are multiple
scrollframes.

Differential Revision: https://phabricator.services.mozilla.com/D97034
2020-11-14 00:16:14 +00:00
Olli Pettay df360bf8cf Bug 1676852 - Investigate if RefreshDriver run on idle queue should update mLastFireTime sooner, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D96948
2020-11-13 22:07:53 +00:00
Emilio Cobos Álvarez d0ee8fb0e8 Bug 1673524 - When passing a null abspos containing block, also make fixed pos respect it. r=TYLin
Otherwise fixed-pos elements still escape the container chain, which is
what the null-abspos container hack (currently used by mathml) is
supposed to prevent.

Differential Revision: https://phabricator.services.mozilla.com/D96779
2020-11-13 13:16:40 +00:00
Emilio Cobos Álvarez 643b53b90c Bug 1676543 - Remove some invalid assertions. r=heycam
We might clear this flag in PostRebuildAllStyleData before actually
flushing style, so if the timing is wrong you can hit this assertion.

This doesn't impact correctness in any way that I can see.

Differential Revision: https://phabricator.services.mozilla.com/D96685
2020-11-13 05:36:37 +00:00
Bogdan Tara 4f38c16276 Backed out changeset 71d9d66a6a7f (bug 1673524) for mathml failures CLOSED TREE 2020-11-13 06:04:24 +02:00
Emilio Cobos Álvarez 9f60eec335 Bug 1673524 - When passing a null abspos containing block, also make fixed pos respect it. r=TYLin
Otherwise fixed-pos elements still escape the container chain, which is
what the null-abspos container hack (currently used by mathml) is
supposed to prevent.

Differential Revision: https://phabricator.services.mozilla.com/D96779
2020-11-12 22:41:04 +00:00
Nicolas Silva e49c8d70ea Bug 1673387 - Adjust reftest references. r=jnicol
Changing the size or number of layers of textures unfortunately usually leads to small sampling differences which requires fixing in the refetest references.

Differential Revision: https://phabricator.services.mozilla.com/D95680
2020-11-12 22:26:32 +00:00
Hiroyuki Ikezoe fc509369c5 Bug 1676062 - Use a dummy URL data in Servo_ParseEasing and drop Document* and URLExtraData* arguments from relevant functions. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D96791
2020-11-12 20:34:01 +00:00
Ting-Yu Lin 258d115092 Bug 1676565 Part 4 - Add flex item fragmentation reftests for "writing-mode: vertical-rl". r=emilio
First, copy the "vertical-lr" reftests added in Part 3, then running the
following command to convert to `writing-mode: vertical-rl` for all the
reftests.

```
rg -l "vertical-lr" flexbox-*vertical-rl*  | xargs sed -i "s/vertical-lr/vertical-rl/g"
```

reftest.list are modified manually.

Differential Revision: https://phabricator.services.mozilla.com/D96742
2020-11-12 12:09:30 +00:00
Ting-Yu Lin f5a02d2780 Bug 1676565 Part 3 - Add flex item fragmentation reftests for "writing-mode: vertical-lr". r=emilio
First, copy the original reftests, then running the following command to
add `writing-mode: vertical-lr` to all the reftests, and modify `<link>`
tag.

```
function rename () {
    rg -l "$1" flexbox-*vertical-lr* | xargs sed -i "s/$1/$2/g"
}

rename "<style>" "<style>\n  html \{\n    writing-mode: vertical-lr;\n  \}"
rename "single-column" "single-column-vertical-lr"
rename "multi-column" "multi-column-vertical-lr"
rename "single-row" "single-row-vertical-lr"
rename "multi-row" "multi-row-vertical-lr"
```

reftest.list are modified manually.

Differential Revision: https://phabricator.services.mozilla.com/D96741
2020-11-12 12:08:27 +00:00
Ting-Yu Lin 623a5f2ad2 Bug 1676565 Part 2 - Convert flex item fragmentation reftests to use logical properties. r=emilio
Part 3 is going to duplicate all the fragmentation reftests, and add
"writing-mode: vertical-lr" to them. If any of the physical property is
missed the conversion, we'll know when running the them.

This patch is generated by running the following script under
`layout/reftests/flexbox/pagination`.

```
#!/usr/bin/env bash

function rename() {
    rg -l "$1" flexbox-single-* flexbox-multi* | xargs sed -i "s/$1/$2/g"
}

rename "margin-top" "margin-block-start"
rename "margin-bottom" "margin-block-end"
rename "border-width: 10px 0" "border-block-width: 10px"
rename "border: solid white" "border: 0 solid white"
rename "border-width: 15px 0" "border-block-width: 15px"
rename "padding: 5px 0" "padding-block: 5px"
rename "padding: 15px 0" "padding-block: 15px"
rename "top:" "inset-block-start:"
rename "left:" "inset-inline-start:"

# Rename properties containing 'width' or 'Height' to something else temporarily.
rename "border-width" "border-XXX"
rename "border-block-width" "border-block-XXX"
rename "column-width" "column-XXX"
rename "offsetHeight" "offsetYYY"

rename "width" "inline-size"
rename "height" "block-size"
rename "Height" "Block-size"

# Switch them back.
rename "XXX" "width"
rename "YYY" "Height"
```

Differential Revision: https://phabricator.services.mozilla.com/D96740
2020-11-12 12:06:42 +00:00
Ting-Yu Lin b88ba04641 Bug 1676565 Part 1 - Remove flexbox-multicol-vert-empty-2.html. r=emilio
This reftest is not in reftest.list nor does it have a reference file.
Let's remove it.

Differential Revision: https://phabricator.services.mozilla.com/D96739
2020-11-12 11:47:37 +00:00
Ting-Yu Lin f7a0717a5d Bug 1676778 - Remove StyleFrame() in nsComputedDOMStyle.cpp. r=emilio
`StyleFrame()` is equivalent to `nsLayoutUtils::GetStyleFrame()`.

Differential Revision: https://phabricator.services.mozilla.com/D96799
2020-11-12 11:12:37 +00:00
lonocvb 0e9a6edc05 Bug 1517385 - Use "visibility: hidden" to keep the frame of AccessibleCaret alive. r=TYLin
Depends on D96506

Differential Revision: https://phabricator.services.mozilla.com/D94072
2020-11-12 18:36:40 +00:00
Bogdan Tara dfec2d3b2c Backed out changeset 5ff33e73771f (bug 1675883) for browser_editcontrols_update.js failures CLOSED TREE 2020-11-12 21:14:01 +02:00
Kagami Sascha Rosylight 21c2a81d5e Bug 1675883 - Use SetStartAndEndInLimiter() in SetSelectionInternal() r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D96503
2020-11-12 14:28:39 +00:00
Butkovits Atila bc8d4ed13b Backed out 2 changesets (bug 1673387) for bustage on gradient_cache_hardstop_clip.yaml. CLOSED TREE
Backed out changeset a315ba98577f (bug 1673387)
Backed out changeset 591c4143921f (bug 1673387)
2020-11-12 15:31:08 +02:00
Nicolas Silva a75b23d02b Bug 1673387 - Adjust reftest references. r=jnicol
Changing the size or number of layers of textures unfortunately usually leads to small sampling differences which requires fixing in the refetest references.

Differential Revision: https://phabricator.services.mozilla.com/D95680
2020-11-12 12:28:28 +00:00
lonocvb 591d8456eb Bug 1517385 - Add the pref to control the transition-duration. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D96506
2020-11-12 07:31:02 +00:00
Emilio Cobos Álvarez f37aa79ebc Bug 1676188 - Send position/size updates to remote print documents at paint time. r=mattwoodrow
As there's no incremental reflow for non-print documents, we can't rely
on FinishReflow getting called.

Not ultra-pretty, better ideas welcome.

Differential Revision: https://phabricator.services.mozilla.com/D96790
2020-11-12 03:31:07 +00:00
Jed Davis 96f7c5cf5c Bug 1657401 - Change LookAndFeel IPC to use IPDL structs. r=spohl
Aside from automating boilerplate, this will allow reusing some of these
structs for full LookAndFeel remoting in bug 1470983.

Differential Revision: https://phabricator.services.mozilla.com/D94531
2020-11-11 23:26:51 +00:00
Lee Salzman 238f5569e7 Bug 1670328 - reduce stack size for SwComposite threads. r=mattwoodrow
There appears to be a substantial overhead for trying to wake cold threads
from a thread pool (especially with rayon), so for now let's leave the existing
thread spawning in place, but reduce the stack size for individual threads.
Since these threads only call into SWGL's composite routines and do little else,
there isn't much harm in having a small stack size.

Differential Revision: https://phabricator.services.mozilla.com/D96748
2020-11-11 20:24:38 +00:00
Cameron McCormack 82fdd2ebea Bug 1676057 - Disable scrollbar buttons when non-native theme is in use on Linux. r=emilio,spohl
Whether scrollbar buttons are shown is currently determined by
LookAndFeel values, and these are exposed through system metric media
features.  LookAndFeel values are process-wide, but which theme is in
use is document-specific.  (It can be the platform's native theme or the
native basic theme, depending on Document::ShouldAvoidNativeTheme.)  So
if nsNativeBasicTheme on Linux needs to not support scrollbar buttons,
we can't do this by forcing the LookAndFeel values to be false.

So instead, we skip creating the native anonymous content for the
scrollbar buttons when the non-native theme is in use on Linux.  There's
no need to support dynamic changes, since whether the non-native theme
is in use for a given document never changes.

Differential Revision: https://phabricator.services.mozilla.com/D96345
2020-11-10 02:41:46 +00:00
Kris Maglione cfebcd3fd2 Bug 1669961: Return null from `.contentWindow` when inner window is inactive. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93853
2020-11-10 20:35:04 +00:00
Sunita Sen c2d86c3479 Bug 1669027 - SVGUseFrame.cpp: namespace alias decl 'SVGT' is unused r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D96581
2020-11-10 17:56:44 +00:00
Steven MacLeod 971103bdd5 Bug 1606061 - move TouchEventsOverride to BrowsingContext. r=farre,devtools-backward-compat-reviewers
This change removes docshell's `mTouchEventsOverride` and replaces it
with a new `BrowsingContext` field `TouchEventsOverrideInternal`.
All uses of the old field have been replaced and an override should
now work under fission when there are cross-origin descendent frames.

Differential Revision: https://phabricator.services.mozilla.com/D96414
2020-11-10 15:57:30 +00:00
Matt Woodrow 02b6bea865 Bug 1674154 - Don't create RenderExternalTextureHost when using SWGL. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D96337
2020-11-09 21:35:50 +00:00
Ting-Yu Lin e8798a3e43 Bug 1675852 Part 3 - Use fallback 300px width and 150px height in ComputeSizeWithIntrinsicDimensions(). r=emilio
Per spec https://drafts.csswg.org/css-sizing-3/#intrinsic-contribution,
for the replaced elements with no intrinsic size and no preferred aspect
ratio, the fallback size is '300px' for the width and '150px' for the
height, regardless of the writing-mode value.

Without this patch, Firefox fails the last two subtests when the svg
image has the vertical writing-mode with no intrinsic size and no aspect
ratio. Both Chrome and Safari render all the subtests as 300x150.

This patch fixed the last two subtests.

Differential Revision: https://phabricator.services.mozilla.com/D96259
2020-11-09 19:11:05 +00:00
Ting-Yu Lin 1ab07e787f Bug 1675852 Part 2 - Define extra fallback intrinsic sizes in app units. r=emilio
CSSPixel::ToAppUnits() requires computation at runtime. Since most of
the layout computations require `nscoord`, this patch defines extra
intrinsic sizes in app units.

Differential Revision: https://phabricator.services.mozilla.com/D96258
2020-11-09 20:31:57 +00:00