Commit Graph

71277 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
e0e98fed6c Bug 1609394 - Hide spin buttons from the a11y tree. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D60018

--HG--
extra : moz-landing-system : lando
2020-01-16 13:00:52 +00:00
Jonathan Kew
b29f9278dc Bug 1609184 - Don't try to apply skip-ink to 'sbix' fonts like Apple Color Emoji, to avoid possible Core Text crash. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D60081

--HG--
extra : moz-landing-system : lando
2020-01-16 03:08:55 +00:00
Timothy Nikkel
69780002d0 Bug 1607964. Update reftest expectations with fission.
layout/reftests/bugs/262998-1.html only fails with webrender. I think maybe the initial annotation should have had that.
layout/reftests/bugs/818276-1.html I think is the same situation.

layout/reftests/474472-1.html seems to pass on a no-accel reftest fis run, but fails for me on regular reftest fis run, so I marked it random for now.

Differential Revision: https://phabricator.services.mozilla.com/D60105

--HG--
extra : moz-landing-system : lando
2020-01-16 08:22:32 +00:00
Emily McDonough
278cadcc1e Bug 1341507 - Refactor auto-fit empty track calculations into a separate method r=mats
Differential Revision: https://phabricator.services.mozilla.com/D58026

--HG--
extra : moz-landing-system : lando
2020-01-16 04:27:33 +00:00
nordzilla
fcdb3eb4fc Bug 1608488 - Add the adoptedStyleSheets WebIDL Attribute r=emilio,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D59941

--HG--
extra : moz-landing-system : lando
2020-01-15 22:27:59 +00:00
Ting-Yu Lin
fb0c82e9ab Bug 1609506 Part 5 - Move updating clamp state into UpdateFlexLineAndItemInfo(). r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D60051

--HG--
extra : moz-landing-system : lando
2020-01-15 22:36:51 +00:00
Ting-Yu Lin
11284a4b98 Bug 1609506 Part 4 - Extract the computation of most fields in ComputedFlexLineInfo and ComputedFlexItemInfo into a helper. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D60050

--HG--
extra : moz-landing-system : lando
2020-01-15 22:36:39 +00:00
Ting-Yu Lin
47970f0953 Bug 1609506 Part 3 - Extract the computation of clamp state into a helper method. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D60049

--HG--
extra : moz-landing-system : lando
2020-01-15 22:36:26 +00:00
Ting-Yu Lin
065d9c1432 Bug 1609506 Part 2 - Extract the computation of ComputedFlexContainerInfo's fields into a helper methods. r=bradwerth
The order of CreateFlexLineAndFlexItemInfo() and
ComputedFlexContainerInfo() doesn't matter. I call
CreateFlexLineAndFlexItemInfo because it matches the order of the
members in ComputedFlexContainerInfo.

Some comments "... filled out at the end of this function" should be
updated. However, since I'm in the process of refactoring these
computations, I'll update them in Part 4.

Differential Revision: https://phabricator.services.mozilla.com/D60048

--HG--
extra : moz-landing-system : lando
2020-01-15 22:36:09 +00:00
Ting-Yu Lin
4569ceeed4 Bug 1609506 Part 1 - Extract the creation of ComputedFlexContainerInfo into a helper method. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D60047

--HG--
extra : moz-landing-system : lando
2020-01-15 19:36:30 +00:00
Emilio Cobos Álvarez
43f69ea130 Bug 1430141 - Remove hardcoded <input type=number> width. r=jfkthame
Now that we're subclassing nsTextControlFrame we can use the regular replaced
element intrinsic sizing, rather than just faking it in the UA sheet with a
suspicious width declaration.

Differential Revision: https://phabricator.services.mozilla.com/D59981

--HG--
extra : moz-landing-system : lando
2020-01-15 16:52:37 +00:00
Bogdan Tara
1fa2e3839f Backed out changeset 996f7985ca6b (bug 1430141) for reftests/writing-mode/ua-style-sheet-input-number-1.html failures 2020-01-15 16:16:55 +02:00
Emilio Cobos Álvarez
077183556a Bug 1561900 - Fix scroll state restoration when not coming from the bfcache on the initial frame construction. r=bzbarsky
There is no way this ever properly worked, as we always passed null for
`aFrameState`.

So it'd only work if we reframed the document element or such...  Which is not
amazing.

For simpler test-cases, when we don't construct the scrollframe via
PresShell::Initialize, but via the regular frame constructor updates
(ContentAppended, etc...), those end up working because we go through lazy frame
construction, which ends up in RecreateFramesForContent, which passes
mTempFrameTreeState.

Differential Revision: https://phabricator.services.mozilla.com/D59569

--HG--
extra : moz-landing-system : lando
2020-01-15 13:18:52 +00:00
Bogdan Tara
11eaac8489 Backed out changeset 56421ee87811 (bug 1430141) for libeditor/crashtests/1443664.html crashes 2020-01-15 15:28:25 +02:00
Emilio Cobos Álvarez
321c6744c8 Bug 1430141 - Remove useless declaration in forms.css. r=jfkthame
It is a <div>, it is display: block by default already.

Depends on D59981

Differential Revision: https://phabricator.services.mozilla.com/D59982

--HG--
extra : moz-landing-system : lando
2020-01-15 10:22:53 +00:00
Emilio Cobos Álvarez
3a730bcc67 Bug 1430141 - Remove hardcoded <input type=number> width. r=jfkthame
Now that we're subclassing nsTextControlFrame we can use the regular replaced
element intrinsic sizing, rather than just faking it in the UA sheet with a
suspicious width declaration.

Differential Revision: https://phabricator.services.mozilla.com/D59981

--HG--
extra : moz-landing-system : lando
2020-01-15 10:22:20 +00:00
Edwin Takahashi
fea732e469 Bug 1608582 - remove fuzzy-if annotation for number-selected-ref.html/number-style-inheritance-ref.html a=fix
CLOSED TREE

Differential Revision: https://phabricator.services.mozilla.com/D59987

--HG--
extra : amend_source : 41cf155a809c9fc8f5d8ed4befc5a68d29c7fb34
2020-01-15 11:26:30 +02:00
Edwin Takahashi
1c7bbf914b Bug 1608582 - tighten reftest annotation, part 1 r=jmaher
Changes:

Tighten reftest pixel differences now that reftest has been migrated fully over to ubuntu1804.

Differential Revision: https://phabricator.services.mozilla.com/D59598

--HG--
extra : moz-landing-system : lando
2020-01-11 12:32:27 +00:00
Edwin Takahashi
b5a1fd53fd Bug 1608006 - restrict fails-if annotation of test_bug549170 to non-headless linux1804 only r=gbrown
Changes:

This test is a permafail only on linux1804-64 non-headless mochitest. It runs and passes fine on the headless variant, as shown in https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=284141121&repo=mozilla-central&lineNumber=10861.

Mark this test as an expected failure only on the non-headless mochitest, for linux1804 only.

Differential Revision: https://phabricator.services.mozilla.com/D59920

--HG--
extra : moz-landing-system : lando
2020-01-15 00:37:09 +00:00
nordzilla
5465ed1ec0 Bug 1607268 - Implement replaceSync() Functionality r=emilio,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D58881

--HG--
extra : moz-landing-system : lando
2020-01-14 22:34:40 +00:00
Emilio Cobos Álvarez
fff6c9e1ac Bug 981248 - Rewrite <input type=number> to avoid an anonymous input. r=masayuki,surkov,jwatt,ntim,jfkthame,smaug
Instead, subclass nsTextControlFrame. This simplifies the code and avoids
correctness issues.

I kept the localization functionality though it is not spec compliant. But I
filed a bug to remove it in a followup.

Differential Revision: https://phabricator.services.mozilla.com/D57193

--HG--
extra : moz-landing-system : lando
2020-01-14 19:01:05 +00:00
Emilio Cobos Álvarez
a543b6df2f Bug 844349 - Do not ignore color: transparent in high contrast mode. r=jwatt
PDFJS uses it, for example to allow text selection. It's not great if it shows
on top of the actual PDF :-)

Differential Revision: https://phabricator.services.mozilla.com/D58703

--HG--
extra : moz-landing-system : lando
2020-01-14 20:25:03 +00:00
Mihai Alexandru Michis
0d01c60c37 Backed out 2 changesets (bug 981248) for causing multiple failures.
CLOSED TREE

Backed out changeset 7a96708cc8b7 (bug 981248)
Backed out changeset 1eace7bd28d9 (bug 981248)
2020-01-14 19:28:17 +02:00
Emilio Cobos Álvarez
d7a0a95c68 Bug 1609167 - Don't use NS_IMETHOD for nsITextControlFrame::GetTextEditor. r=smaug
As it seems it causes MinGW 32-bit-only build issues.

Differential Revision: https://phabricator.services.mozilla.com/D59889

--HG--
extra : moz-landing-system : lando
2020-01-14 16:29:50 +00:00
Emilio Cobos Álvarez
da2e4ef888 Bug 981248 - Rewrite <input type=number> to avoid an anonymous input. r=masayuki,surkov,jwatt,ntim,jfkthame,smaug
Instead, subclass nsTextControlFrame. This simplifies the code and avoids
correctness issues.

I kept the localization functionality though it is not spec compliant. But I
filed a bug to remove it in a followup.

Differential Revision: https://phabricator.services.mozilla.com/D57193

--HG--
extra : moz-landing-system : lando
2020-01-14 15:05:22 +00:00
Hiroyuki Ikezoe
9b4b41b95c Bug 1606503 - Wait for a frame or a media query change event depending on the corresponding initial system setting. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D58723

--HG--
extra : moz-landing-system : lando
2020-01-14 05:51:18 +00:00
Makoto Kato
7574b8612d Bug 1503656 - Part 1. Always use CssEnvironment from media query's device. r=emilio
Although CssEnvironment is in Device of media query implementation, some code
creates CssEnvironment instance without Device. So I would like always to use it from Device of media query.

Differential Revision: https://phabricator.services.mozilla.com/D52506

--HG--
extra : moz-landing-system : lando
2020-01-08 11:55:28 +00:00
shindli
c03a2cf53a Backed out 3 changesets (bug 1606503) for causing bustages in nsXPLookAndFeel.cpp CLOSED TREE
Backed out changeset 7e9d421335e0 (bug 1606503)
Backed out changeset 371f74475fb9 (bug 1606503)
Backed out changeset 8aada655d8bc (bug 1606503)
2020-01-14 05:07:14 +02:00
Hiroyuki Ikezoe
fa81ed3872 Bug 1606503 - Wait for a frame or a media query change event depending on the corresponding initial system setting. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D58723

--HG--
extra : moz-landing-system : lando
2020-01-14 02:34:45 +00:00
Emily McDonough
12a9d5c07e Bug 1606485 - Check containing parent frames for 'contain:layout/paint' in grid container frames. r=emilio
This prevents grid container frames from being considered subgrid (even when
they have contain:layout/paint) when they are themselves a grid item of a
contain grid.

Differential Revision: https://phabricator.services.mozilla.com/D59790

--HG--
extra : moz-landing-system : lando
2020-01-14 01:06:56 +00:00
Jeff Muizelaar
d344769c93 Bug 1593574. Note that themed backgrounds are snapped. r=mattwoodrow
When drawing themed backgrounds we snap them therefore we can expose
that in GetOpaqueRegion(). This will help WebRender fallback choose
an appropriately sized surface for drawing them.

Differential Revision: https://phabricator.services.mozilla.com/D59813

--HG--
extra : moz-landing-system : lando
2020-01-13 23:15:29 +00:00
Emilio Cobos Álvarez
dcdba4a9bd Bug 1608907 - Remove layout.css.parsing.parallel. r=jwatt
There's no reason to have this pref anymore, as we've shipped with it
successfully for quite a while.

Differential Revision: https://phabricator.services.mozilla.com/D59767

--HG--
extra : moz-landing-system : lando
2020-01-13 22:38:29 +00:00
Eric Rahm
78ee6675cf Bug 1606187 - Part 2b: Update users of nsClassHashtable to handle UniquePtr differences r=KrisWright,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D59042

--HG--
extra : moz-landing-system : lando
2020-01-13 19:18:56 +00:00
Emilio Cobos Álvarez
9846fd9184 Bug 1599206 - Don't serialize implicit tracks for grid-template properties, as they make the computed style not round-trip. r=mats
Do this only on nightly for now since we're about to enter the soft freeze.

(No test updates yet, as try is still running, and I need to figure out how to
import Oriol's changes into WPT, but I wanted to ensure that you were fine with
this)

Differential Revision: https://phabricator.services.mozilla.com/D54595

--HG--
extra : moz-landing-system : lando
2020-01-13 16:52:18 +00:00
Emilio Cobos Álvarez
ba0cc69e47 Bug 1607049 - Pack LengthPercentage better. r=jwatt
So that it takes one pointer instead of two, and doesn't make nsStylePosition's
size blow up.

This is not as ugly as I was fearing, thankfully, though it requires a bit of
boilerplate. I think it's acceptable.

Differential Revision: https://phabricator.services.mozilla.com/D58702

--HG--
extra : moz-landing-system : lando
2020-01-13 13:23:22 +00:00
Emilio Cobos Álvarez
d10341c0bc Bug 1607049 - Split LengthPercentage again. r=boris
This is needed to support min() / max() / clamp(), etc, as those need to be a
tree of values and thus need heap storage.

This unfortunately grows LengthPercentage to be two pointers, which is bad as
it blows up the size of nsStylePosition enough to trigger the size assertions.

This patch comments out the assertion for now, the follow-up patches will
uncomment them.

Differential Revision: https://phabricator.services.mozilla.com/D58700

--HG--
extra : moz-landing-system : lando
2020-01-13 13:21:58 +00:00
Jonathan Kingston
84c462a2d0 Bug 1605814 - Don't capture CSP nonce when loading a child sheet. r=emilio,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D58686

--HG--
extra : moz-landing-system : lando
2020-01-13 11:47:25 +00:00
Emilio Cobos Álvarez
aaecc96d81 Bug 1588791 - Make fission iframes honor and deal with the scrolling attribute. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D59630

--HG--
extra : moz-landing-system : lando
2020-01-13 11:30:44 +00:00
Mirko Brodesser
efd738af5b Bug 1608071: part 2) Rename nsContentUtils::GetCommonAncestor and related methods. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59319

--HG--
extra : moz-landing-system : lando
2020-01-13 10:29:44 +00:00
Ciure Andrei
51c540de3d Backed out 2 changesets (bug 1588791) for causing test_bug369370.html and test_transformed_scrolling_repaints_3.html to permafail
Backed out changeset 52e661ff161d (bug 1588791)
Backed out changeset d59e691bda9e (bug 1588791)
2020-01-13 04:49:16 +02:00
Emilio Cobos Álvarez
6e69347f9f Bug 1588791 - Make fission iframes honor and deal with the scrolling attribute. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D59630

--HG--
extra : moz-landing-system : lando
2020-01-12 22:22:29 +00:00
Xidorn Quan
87fdc21f61 Bug 1513275 - Ensure nested ruby level container don't escape from line break suppression. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D58351

--HG--
extra : moz-landing-system : lando
2020-01-10 23:47:28 +00:00
Jonathan Kew
74032fc86f Bug 1605265 - Don't include overflow child list when computing outline rect. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D59582

--HG--
extra : moz-landing-system : lando
2020-01-10 23:44:46 +00:00
Tom Ritter
c38888bbb8 Bug 1607316 - On Android with RFP enabled, lie about the pointer type to be a coarse pointer r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D59021

--HG--
extra : moz-landing-system : lando
2020-01-10 18:57:47 +00:00
Oana Pop Rus
da0f38e5f0 Backed out 3 changesets (bug 1599206) for multiple wpt failures grid-template-columns. on a CLOSED TREE
Backed out changeset 9888d5a5cb13 (bug 1599206)
Backed out changeset ce55ea50cddd (bug 1599206)
Backed out changeset 8bde04eafc7c (bug 1599206)
2020-01-10 17:27:52 +02:00
Emilio Cobos Álvarez
feb0870183 Bug 1599206 - Don't serialize implicit tracks for grid-template properties, as they make the computed style not round-trip. r=mats
Do this only on nightly for now since we're about to enter the soft freeze.

(No test updates yet, as try is still running, and I need to figure out how to
import Oriol's changes into WPT, but I wanted to ensure that you were fine with
this)

Differential Revision: https://phabricator.services.mozilla.com/D54595

--HG--
extra : moz-landing-system : lando
2020-01-10 10:37:29 +00:00
Jamie Nicol
188f4eae4e Bug 1581868 - Make webrender schedule a frame immediately on resume. r=sotaro
On webrender on android, parent-process pages (eg about:support) were not being
rendered immediately after minimising then resuming the app, resulting in a
black screen. The problem was that webrender believed the previous frame was
still valid, and therefore that it did not need to render a new
one. Content-process pages were unnaffected because we clear cached resources
when the app is minimised, so we accidentally rendered a new frame on
resumption.

To fix this we always force a new frame to be rendered immediately on
resumption. This uncovers a race condition which causes us to sometimes render
frames at the wrong size when the window size has changed (for example when
showing or hiding the keyboard), so that is also fixed.

This also fixes a bug affecting fenix, where when opening a page in a new tab
the portion of the screen where the keyboard used to be would remain black until
the page had loaded. This no longer occurs because we force a composite as soon
as the keyboard is hidden.

Additionally, this patch reverts the original attempt at fixing this
bug, as it is not necessary.

Differential Revision: https://phabricator.services.mozilla.com/D59367

--HG--
extra : moz-landing-system : lando
2020-01-10 02:01:30 +00:00
Jonathan Kew
13eb9e858a Bug 1608124 - Skip hidden macOS font families in FontList::FindFamily, except when resolving system fonts. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D59358

--HG--
extra : moz-landing-system : lando
2020-01-10 08:58:47 +00:00
Brindusan Cristian
d4d6f81e0a Backed out changeset 63a67b948290 (bug 1597480) for mochitest failures at test_relative_update.html. CLOSED TREE 2020-01-10 07:11:58 +02:00
Tetsuharu OHZEKI
e95c8dfcf9 Bug 1597480 - Fix uses of nsIDocShellTreeItem in nsPresContext::Init. r=emilio,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D59285

--HG--
extra : moz-landing-system : lando
2020-01-10 01:41:27 +00:00