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

70386 Коммитов

Автор SHA1 Сообщение Дата
Andrew Osmond ab39496ccc Bug 1574493 - Part 6. Add reftest annotations for newly failing/passing tests. r=jrmuizel,kvark
Differential Revision: https://phabricator.services.mozilla.com/D45539

--HG--
extra : moz-landing-system : lando
2019-09-14 16:16:59 +00:00
Andrew Osmond fce484c34f Bug 1574493 - Part 3. Stop rounding rects/clips during display list building. r=jrmuizel
Rounding in layout pixels is very close to snapping in raster pixels if
there are no transforms involved. This is why it worked most of the time
and fell flat in many edge cases. In future parts of this series, we
will trust scene building and frame building to do the heavy lifting for
snapping purposes.

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

--HG--
extra : moz-landing-system : lando
2019-09-14 16:17:04 +00:00
Andrew Osmond 811b2b59fa Bug 1574493 - Part 1. Split out repeating and non-repeating images in the display list. r=jrmuizel
Repeating/background images may have extra parameters such the stretch
size and tile spacing, that non-repeating images do not require. By
splitting these apart, we can make it easier to infer what we should do
if snapping changes the size of an image primitive, in addition to
reducing the display list size for non-repeating images.

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

--HG--
extra : moz-landing-system : lando
2019-09-14 16:17:00 +00:00
Mats Palmgren ae1542ae49 Bug 1549620 - [css-grid] Take box-sizing:border-box into account when calculating the input sizes for repeat(auto-fill/fit) track count. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D45708

--HG--
extra : moz-landing-system : lando
2019-09-14 00:17:16 +00:00
Emilio Cobos Álvarez 5906f23d74 Bug 1540203 - Tweak scroll anchor selection to allow to select everything but inline-fragmentable, non-text boxes. r=dholbert
Per the discussion in https://github.com/w3c/csswg-drafts/issues/4247.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 22:26:48 +00:00
Daniel Holbert 868c588dcc Bug 1092007 followup: fix typo in code comment. rs=mats via review feedback
DONTBUILD because this is comment-only.

This patch is just addressing a typo in a code comment that was left as a
review nit, which I forgot to address before landing.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 21:53:18 +00:00
Frederic Wang 8957655bf3 Bug 1579602 - Rename nsMathMLElement to dom::MathMLElement. r=bzbarsky
This commit renames nsMathMLElement/nsMathMLElementFactory classes into
MathMLElement/MathMLElementFactory and moves the former into the mozilla::dom
namespace. This is a preliminary step to introduce MathML DOM (bug 1579602).
Code behavior is not changed.

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

--HG--
rename : dom/mathml/nsMathMLElement.cpp => dom/mathml/MathMLElement.cpp
rename : dom/mathml/nsMathMLElement.h => dom/mathml/MathMLElement.h
rename : dom/mathml/nsMathMLElementFactory.cpp => dom/mathml/MathMLElementFactory.cpp
extra : moz-landing-system : lando
2019-09-13 16:27:54 +00:00
Andreea Pavel 7620adca7a Backed out changeset 82faf6a9be50 (bug 1578133) for failure increase in Bug 1352715 2019-09-13 19:51:01 +03:00
Ciure Andrei a4046ec458 Backed out 6 changesets (bug 1574493) for causing nested-sticky-2.html to perma fail CLOSED TREE
Backed out changeset 358746636448 (bug 1574493)
Backed out changeset 34aef5498237 (bug 1574493)
Backed out changeset 1f88e2031c76 (bug 1574493)
Backed out changeset 07c588b5ea10 (bug 1574493)
Backed out changeset 0685e8d3510e (bug 1574493)
Backed out changeset 15d4390220c4 (bug 1574493)
2019-09-13 19:26:50 +03:00
Jonathan Kew 4118072885 Bug 1578154 - Ensure all device contexts flush their nsFontCache when the platform font list is reinitialized. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D45432

--HG--
extra : moz-landing-system : lando
2019-09-13 14:49:36 +00:00
Andrew Osmond 35a0f13ba2 Bug 1574493 - Part 6. Add reftest annotations for newly failing/passing tests. r=jrmuizel,kvark
Differential Revision: https://phabricator.services.mozilla.com/D45539

--HG--
extra : moz-landing-system : lando
2019-09-13 14:03:28 +00:00
Andrew Osmond 25866edb78 Bug 1574493 - Part 3. Stop rounding rects/clips during display list building. r=jrmuizel
Rounding in layout pixels is very close to snapping in raster pixels if
there are no transforms involved. This is why it worked most of the time
and fell flat in many edge cases. In future parts of this series, we
will trust scene building and frame building to do the heavy lifting for
snapping purposes.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 14:03:23 +00:00
Andrew Osmond ef0483f724 Bug 1574493 - Part 1. Split out repeating and non-repeating images in the display list. r=jrmuizel
Repeating/background images may have extra parameters such the stretch
size and tile spacing, that non-repeating images do not require. By
splitting these apart, we can make it easier to infer what we should do
if snapping changes the size of an image primitive, in addition to
reducing the display list size for non-repeating images.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 14:03:13 +00:00
Ciure Andrei 8c3feea58a Backed out 6 changesets (bug 1574493) for causing nested-sticky-1.html to perma fail CLOSED TREE
Backed out changeset fdc25a90b0ef (bug 1574493)
Backed out changeset 0ce3c48c1f79 (bug 1574493)
Backed out changeset 326b9f96614b (bug 1574493)
Backed out changeset b0817c0aee77 (bug 1574493)
Backed out changeset 70d99c264df9 (bug 1574493)
Backed out changeset e5217ab4b668 (bug 1574493)
2019-09-13 16:17:47 +03:00
Mats Palmgren 78bd45b6de Bug 1560397 - [css-grid] If a repeat(auto-fill/fit) track starts outside the clamped grid then treat it as not having a auto-fill/fit at all. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D45782

--HG--
extra : moz-landing-system : lando
2019-09-13 12:41:00 +00:00
Emilio Cobos Álvarez 4fad3bb9aa Bug 1580307 - Avoid justify-items from the cached scrollbar assertions. r=heycam
justify-items' initial value is `legacy` and the computed value depends on the
parent's value.

We don't use flex / grid in the scrollbars, so just avoid asserting about this
property.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 12:18:19 +00:00
Andrew Osmond 4d96fe56c4 Bug 1574493 - Part 6. Add reftest annotations for newly failing/passing tests. r=jrmuizel,kvark
Differential Revision: https://phabricator.services.mozilla.com/D45539

--HG--
extra : moz-landing-system : lando
2019-09-13 10:48:37 +00:00
Andrew Osmond b2d4e121cb Bug 1574493 - Part 3. Stop rounding rects/clips during display list building. r=jrmuizel
Rounding in layout pixels is very close to snapping in raster pixels if
there are no transforms involved. This is why it worked most of the time
and fell flat in many edge cases. In future parts of this series, we
will trust scene building and frame building to do the heavy lifting for
snapping purposes.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 10:48:31 +00:00
Andrew Osmond 25917edfc6 Bug 1574493 - Part 1. Split out repeating and non-repeating images in the display list. r=jrmuizel
Repeating/background images may have extra parameters such the stretch
size and tile spacing, that non-repeating images do not require. By
splitting these apart, we can make it easier to infer what we should do
if snapping changes the size of an image primitive, in addition to
reducing the display list size for non-repeating images.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 10:48:22 +00:00
Mats Palmgren e6e6a5947c Bug 1579671 - Remove assertion that fails for subgrid. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D45235

--HG--
extra : moz-landing-system : lando
2019-09-13 02:47:43 +00:00
Glenn Watson 2a6388af48 Bug 1581021 - Update expectations for clipped-mixblendmode-containing-unclipped-stuff.html r=nical
Differential Revision: https://phabricator.services.mozilla.com/D45795

--HG--
extra : moz-landing-system : lando
2019-09-13 07:14:28 +00:00
Andreea Pavel 730793a2ef Backed out 5 changesets (bug 1570081) for assertion failure at WebRenderCommandBuilder.cpp on a CLOSED TREE
Backed out changeset 8d4baf4d063a (bug 1570081)
Backed out changeset 14a4451b2781 (bug 1570081)
Backed out changeset ba19640abf33 (bug 1570081)
Backed out changeset 214c815015a8 (bug 1570081)
Backed out changeset 548e4395ee1a (bug 1570081)
2019-09-13 11:24:59 +03:00
Nicolas Silva af26140db1 Bug 1570081 - Update reftests. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D41389

--HG--
extra : moz-landing-system : lando
2019-09-12 15:55:47 +00:00
Emilio Cobos Álvarez 8e44d6c57b Bug 1577258 - Streamline the shrink-wrapping resize reflow code. r=botond
Now that this code path is on its own, we can write more straight-forward code.



Depends on D43799

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

--HG--
extra : moz-landing-system : lando
2019-09-12 21:27:06 +00:00
James Teh 0d216e928b Bug 1488828: For collapsed select controls in the content process, set the number of rows to the maximum instead of 1. r=dholbert
The number of rows for the select dropdown can't be calculated in the content process because the dropdown has to be rendered in the parent process.
Therefore, we previously set the number of rows to 1 in this case.
That meant that the page up and page down keys only moved one item at a time for a collapsed select control, making them effectively useless.
Instead, set the number of rows to the maximum in this case.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 03:59:51 +00:00
Emilio Cobos Álvarez f94e56699a Bug 1577258 - Add a simpler resize reflow function for when we're not shrink-wrapping. r=bzbarsky
This is much easier than the existing ResizeReflowIgnoreOverride function, and
this will allow me to avoid flushing if needed (we already kinda do that
already with the "suppressResizeReflow" thing), which in turn allows me to
consolidate a bunch of the logic for resizes.

The function should be much easier to follow:

 * Set the new viewport (async, doesn't do any work).
 * Invalidate layout as needed due to the viewport change (that is, resize hint
   for the root frame, and invalidate isizes if needed). Also async and doesn't
   do any reflowing itself.
 * Flush layout / do the reflowing all at once. I think we can stop doing this
   much more often now, but that's follow-up work.



Depends on D43798

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

--HG--
extra : moz-landing-system : lando
2019-09-13 00:21:04 +00:00
Glenn Watson b20828d80a Bug 1580696 - Update tier2 expectations for 605138-1.html. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D45737

--HG--
extra : moz-landing-system : lando
2019-09-12 21:02:05 +00:00
Glenn Watson 8bd19d2c03 Bug 1580698 - Update tier2 expectations for mask-img.html. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D45736

--HG--
extra : moz-landing-system : lando
2019-09-12 21:01:57 +00:00
Glenn Watson d86c183e22 Bug 1580358 - Update android fuzziness for filter-clipped-rect-01.svg r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D45735

--HG--
extra : moz-landing-system : lando
2019-09-12 21:01:45 +00:00
Brad Werth 6a3833ac40 Bug 1567310 Part 2: Make GeometryUtils::GetBoxQuads suppress whitespace frames when requested. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D45118

--HG--
extra : moz-landing-system : lando
2019-09-12 19:05:32 +00:00
Gurzau Raul fe4bb6d539 Backed out 6 changesets (bug 1574493) for wrench failures at stacking-context-clip.yaml on a CLOSED TREE.
Backed out changeset 8a8736ac4e25 (bug 1574493)
Backed out changeset 4a3294e88823 (bug 1574493)
Backed out changeset 0c26ecdc1ddc (bug 1574493)
Backed out changeset 11257f7b3ad3 (bug 1574493)
Backed out changeset dcedc286ad9d (bug 1574493)
Backed out changeset 87f216e0753d (bug 1574493)
2019-09-12 18:34:07 +03:00
Andrew Osmond ff567c5ddb Bug 1574493 - Part 6. Add reftest annotations for newly failing/passing tests. r=jrmuizel,kvark
Differential Revision: https://phabricator.services.mozilla.com/D45539

--HG--
extra : moz-landing-system : lando
2019-09-12 12:42:52 +00:00
Andrew Osmond 320cbbf828 Bug 1574493 - Part 3. Stop rounding rects/clips during display list building. r=jrmuizel
Rounding in layout pixels is very close to snapping in raster pixels if
there are no transforms involved. This is why it worked most of the time
and fell flat in many edge cases. In future parts of this series, we
will trust scene building and frame building to do the heavy lifting for
snapping purposes.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 12:42:41 +00:00
Andrew Osmond 7cda552aeb Bug 1574493 - Part 1. Split out repeating and non-repeating images in the display list. r=jrmuizel
Repeating/background images may have extra parameters such the stretch
size and tile spacing, that non-repeating images do not require. By
splitting these apart, we can make it easier to infer what we should do
if snapping changes the size of an image primitive, in addition to
reducing the display list size for non-repeating images.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 12:42:37 +00:00
Andrew Halberstadt b6461aa946 Bug 1567642 - [reftest] Fix flake8 under Python 3 lint issues r=gbrown
Depends on D45415

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

--HG--
extra : moz-landing-system : lando
2019-09-10 19:15:30 +00:00
Sylvestre Ledru e79e716c67 Bug 1577236 - clang-10: Fix -Wimplicit-int-float-conversion warnings in /layout/ r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D43784

--HG--
extra : moz-landing-system : lando
2019-09-12 12:32:12 +00:00
Emilio Cobos Álvarez ebe6e6fb2d Bug 1579788 - Downgrade a few assertions in beta / release as to avoid crashing there. r=masayuki
This is the only short-term fix for now until we fix editor or find a
test-case...

This will keep asserting on Nightly, but the correctness issue it'd show in
release (some pseudo-classes not matching) is better than crashing.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 08:46:27 +00:00
Hiroyuki Ikezoe 8c9bd09b43 Bug 1541705 - Introduce nsLayoutUtils::FrameIsMostlyScrolledOutOfViewInCrossProcess. r=botond
This will be used for accessibility stuff.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 08:09:09 +00:00
Hiroyuki Ikezoe 0eeb21e17f Bug 1541705 - Introduce nsLayoutUtils::FrameIsScrolledOutOfViewInCrossProcess and use it for the check whether animating element is scrolled out of view or not. r=botond,boris
Differential Revision: https://phabricator.services.mozilla.com/D44421

--HG--
extra : moz-landing-system : lando
2019-09-12 08:08:57 +00:00
Hiroyuki Ikezoe 5221523b46 Bug 1541705 - Introduce remote document rect. r=botond
The rect will be used for calculating the result of the composition of the
remote display item on the compositor.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 08:08:32 +00:00
Emilio Cobos Álvarez 78a7d864e6 Bug 1577139 - Remove LengthPercentage::was_calc. r=heycam
There should not be any behavior change between specifying a percentage using %
or calc(%) per the resolution of https://github.com/w3c/csswg-drafts/issues/3482.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 08:14:44 +00:00
Ting-Yu Lin c5276e94a3 Bug 1580576 - Remove an assertion to check <details> element's frame type when reframing. r=emilio
If a <details> is a multi-column container, and has a column-span child
inside, aFrame can be ColumnSetWrapper or column-span-wrapper frame (due
to GetInsertionPrevSibling()'s modification). The latter case is handled
by "Situation #5 in WipeContainingBlock(), and can be reproduced by
changing `<article>` tag to `<details>` in
testing/web-platform/tests/css/css-multicol/multicol-span-all-dynamic-add-005.html

In any case, aFrame might end up in a frame generated by the <details>
element. I feel the assertion to check frame types might not be very
useful. Let's remove it.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 21:52:40 +00:00
Florian Rivoal 9ead971a06 Bug 1562057 - Make empty <select> elements the same size as size-contained ones. r=dholbert
Per the css-contain specification, size contained element must be sized as if
they were empty. The code added to handle size containment shortciruits the
(inline) size calculations, and returns 0. However, an empty <select> element
is rendered as if it contained a &nbsp; and some padding gets added to it by
the UA stylesheet (forms.css). This causes reftest that check that
size-contained <select> elements and empty ones look the same.

This commit fixes this by also shortcircuiting the (inline) size calculations
and returning 0 for empty <select> elements.

Replacing the &nbsp; by a zero width space would not have been enough, since
padding would still be added. It would have been possible to add it in the
inline size calculations of size-contained <select> elements as well, but this
padding serves not purpose when the element is empty, so removing it from there
has no downside, and shortcircuitig both cases is simpler (and marginally
faster) than adding the padding in both cases.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 20:37:55 +00:00
shindli ce58db2119 Backed out changeset 9ef1dd77e6b2 (bug 1561546) for causing frequent failures in dom/animation/test/mozilla/test_restyles.html CLOSED TREE 2019-09-11 23:21:46 +03:00
Brian Grinstead 6c154474d5 Bug 1580556 - Remove the xul/grid/examples folder;r=mats
Differential Revision: https://phabricator.services.mozilla.com/D45564

--HG--
extra : moz-landing-system : lando
2019-09-11 18:35:06 +00:00
Adam Gashlin 28fa13a2e5 Bug 1561546 - Update theme when nsXPLookAndFeel prefs change. r=dholbert,jmathies
Also causes removing a pref to take effect immediately, and prevents
losing all color pref overrides when the theme changes.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 18:35:44 +00:00
Mihai Alexandru Michis 95b09298a4 Backed out changeset 7876583b2407 (bug 1577236) for causing failures in calc-rounding-001.html CLOSED TREE 2019-09-11 18:48:22 +03:00
Sylvestre Ledru 3029c376ad Bug 1577236 - clang-10: Fix -Wimplicit-int-float-conversion warnings in /layout/ r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D43784

--HG--
extra : moz-landing-system : lando
2019-09-11 13:50:36 +00:00
Michael Woerister 77f7095cb5 Bug 1577171 - Remove duplicated logic from Stylo's Gecko wrapper. r=emilio
Stylo's Gecko wrapper duplicated some logic from the C++ side so
that the Rust compiler would be able to optimize better. Now that
we have xLTO, this kind of manual inlining should not be neccessary
anymore.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 17:23:20 +00:00
Ting-Yu Lin b50d29b125 Bug 1579953 - Check details element to determine whether to reframe. r=emilio
If the <details> has ::first-letter, insertion.mParentFrame may be
modified by GetInsertionPrevSibling(), and points to nsFirstLetterFrame.

Fortunately, nsFirstLetterFrame's content is the details element. We can
check the content to determine if reframing the <details> is needed.

Also, add a reftest to test that an appended text should apply styles in
details::first-line.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 00:04:26 +00:00
Boris Chiou 4db87c1296 Bug 1574222 - Serialize getComputedStyle on text-decoration properly. r=emilio,dholbert
The wpt will be updated in
https://github.com/web-platform-tests/wpt/pull/18866.

Besides, there are some other test cases use text-decoration, so we
have to update them as well. The rule is: if the test case is not related to
old `text-decoration` longhand, we use `text-decoration-line` instead.
If the test case is for testing the change of `text-decoration` from
longhand to shorthand, we should use the correct serialization.

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

--HG--
extra : moz-landing-system : lando
2019-09-10 21:52:26 +00:00
Luca Greco eb5970c2fc Bug 1543639 - Fix svg-glyph-extents reftest timeouts when running on Fennec with webcompat extension installed. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D45028

--HG--
extra : moz-landing-system : lando
2019-09-08 23:21:47 +00:00
Bob Owen 94dc85db8f Bug 1577515: Add fuzz to some Canvas 2D reftests when remote canvas enabled. r=jrmuizel
This is required due to different backends being used for SVG images and canvas.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 06:51:03 +00:00
Mats Palmgren 8cc57c8048 Bug 1248227 - Add crashtest. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D45278

--HG--
extra : moz-landing-system : lando
2019-09-10 03:36:29 +00:00
Brian Grinstead dffa39b257 Bug 1561326 - Support CSS min/max width/height for top level windows with root HTML element. r=emilio
Helps support migrating from XUL DOM to an HTML DOM structure. I attempted
to remove the early return when the root element is not a XUL element, but
it appears setting the transparency on a non XUL root is still broken
(test widget/tests/test_mouse_scroll.xul started failing on windows).

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

--HG--
extra : moz-landing-system : lando
2019-09-09 16:14:51 +00:00
Ting-Yu Lin f7a04c3339 Bug 1523582 Part 5 - Update test expectations. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D44029

--HG--
extra : moz-landing-system : lando
2019-09-09 17:42:18 +00:00
Ting-Yu Lin 30ef7a225a Bug 1523582 Part 4 - Support comment at the end of line in failures.list, and regenerate reftest.list. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D44028

--HG--
extra : moz-landing-system : lando
2019-09-09 17:42:16 +00:00
Ting-Yu Lin f3999c81a8 Bug 1523582 Part 3 - Adjust GetLogicalSkipSides() to check non-fluid continuations. r=dbaron
Frames split by column-span are linked together by non-fluid
continuations. We want GetLogicalSkipSides() to recognize that. The
documentation in nsIFrame::GetLogicalSkipSides() already
uses *continuation* rather than *in-flow*, so no need to adjust the
wording.

However, after patching GetLogicalSkipSides(), the first column-content
after a column-span split starts to skip the block-start side because it
has a previous continuation. We want the content in the first column to
consider applying its block-start margin. Hence the modification in
BlockReflowInput's constructor. (Note that the first column-content is
always a block-start margin-root, which is fixed in the previous part.)
This is necessary to avoid breaking
testing/web-platform/tests/css/css-multicol/multicol-span-all-margin-bottom-001.xht

In multicol-span-all-children-height-006.html, add "margin-top: 1em;" to
the container to expose the bug if we still check GetPrevInFlow() rather
than GetPrevContinuation() when computing applyBStartMargin in
nsBlockFrame::ReflowBlockFrame().

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

--HG--
extra : moz-landing-system : lando
2019-09-09 17:42:14 +00:00
Ting-Yu Lin b1502de9ca Bug 1523582 Part 2 - Make -moz-column-content a BFC when column-span is enabled. r=dbaron
Based on CSS working group's resolution in
https://github.com/w3c/csswg-drafts/issues/2582#issuecomment-402619872,
column-boxes are BFC.

Add NS_BLOCK_FORMATTING_CONTEXT_STATE_BITS to -moz-column-content, but
only for the new multicol layout.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 17:42:12 +00:00
Ting-Yu Lin fdee18dbbf Bug 1523582 Part 1 - Use NOISY_BLOCK_DIR_MARGINS to control log print in nsBlockReflowContext. r=dbaron
nsBlockDebugFlags.h defines NOISY_BLOCK_DIR_MARGINS, which is used in
nsBlockFrame. Include it in nsBlockReflowContext.cpp so that when
NOISY_BLOCK_DIR_MARGINS is defined, the log is printed in
nsBlockReflowContext.cpp as well.

Remove unused NOISY_MAX_ELEMENT_SIZE and REALLY_NOISY_MAX_ELEMENT_SIZE.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 17:42:10 +00:00
Cameron McCormack 7052f624b5 Bug 1578147 - Align the Rust and C++ representations of WritingMode. r=emilio,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D44412

--HG--
extra : moz-landing-system : lando
2019-09-09 04:49:55 +00:00
Cameron McCormack 79dc9209f9 Bug 1562060 - Add telemetry to record how often we fail to map UA sheet shared memory at the desired address. r=jwatt,janerik
Differential Revision: https://phabricator.services.mozilla.com/D36273

--HG--
extra : moz-landing-system : lando
2019-09-09 06:18:40 +00:00
Cameron McCormack 304fa5471e Bug 1578133 - Make nsBox get theme from the nsPresContext. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D44344

--HG--
extra : moz-landing-system : lando
2019-09-09 00:08:59 +00:00
Cameron McCormack 1ce893603a Bug 1569706 - Update incorrect assertion. r=emilio
We can end up in here from a style worker thread.  But that's safe since
we only read data from the FontFaceSet, and the main thread is blocked
so writes can't happen underneath us.

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

--HG--
extra : moz-landing-system : lando
2019-09-08 23:41:54 +00:00
Ting-Yu Lin ea46baf631 Bug 1579295 - Replace <body> with <main> for shape-outside tests. r=jfkthame
To prevent these tests depending on Bug 1102175 to pass because they
specify "direction" or "writing-mode" on <body>, replace <body> with
<main>. This patch doesn't change the meaning of the tests.

Except for shape-outside-margin-box-border-radius-008.html, which is
modified manually, all the other files are modified by the follow Python
3 script.

```
import fileinput
import glob

open_tag_before = '<body class="container">'
open_tag_after = '<main class="container">'

end_tag_before = '</body>'
end_tag_after = '</main>'

match_files = 'layout/reftests/w3c-css/submitted/shapes1/*.html'

with fileinput.FileInput(glob.glob(match_files), inplace=True) as f:
    found_open_tag = False
    for line in f:
        if not found_open_tag:
            line_open_tag = line.replace(open_tag_before, open_tag_after)
            if line_open_tag != line:
                print(line_open_tag, end='')
                found_open_tag = True
            else:
                print(line, end='')
        else:
            # Continue search for end tag
            line_end_tag = line.replace(end_tag_before, end_tag_after)
            if line_end_tag != line:
                print(line_end_tag, end='')
                found_open_tag = False
            else:
                print(line, end='')

```

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

--HG--
extra : moz-landing-system : lando
2019-09-06 08:25:39 +00:00
Geoff Brown 56ca134785 Bug 1579272 - Cleanup obviously fennec-centric test annotations; r=bc
Remove test manifest annotations that specifically target fennec,
or likely target the android 4.3 emulator.

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

--HG--
extra : moz-landing-system : lando
2019-09-06 16:51:10 +00:00
Cosmin Sabou 5efec8c158 Bug 1574137 - Disable test_filter_crossorigin.html on fission. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D44979

--HG--
extra : moz-landing-system : lando
2019-09-06 13:35:57 +00:00
Karl Tomlinson 6b19f33045 Bug 1578623 create worklet global with JSPrincipals having reference to WorkletImpl r=baku,bzbarsky
This will permit implementation of JSPrincipals::write().

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

--HG--
rename : dom/worklet/WorkletPrincipal.cpp => dom/worklet/WorkletPrincipals.cpp
rename : dom/worklet/WorkletPrincipal.h => dom/worklet/WorkletPrincipals.h
extra : moz-landing-system : lando
2019-09-06 02:01:44 +00:00
Jared Wein 895b7027da Bug 1577602 - Allow spinner buttons to grow to full size in input[type=number]. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D44032

--HG--
extra : moz-landing-system : lando
2019-09-05 21:50:43 +00:00
James Teh 43953a25a3 Bug 1578311: Don't prune a trailing HTML br child from the accessibility tree. r=eeejay
Pruning these meant that `<span><br></span>` wasn't represented in the tree or rendered text at all.
This meant that lines were merged together in NVDA browse mode; e.g. in CI build logs on Gitlab.

The reason we started pruning these is that they were causing invalid line offsets to be returned for affected lines (bug 899433).
This patch also fixes this problem in HyperTextAccessible::FindOffset.

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

--HG--
extra : moz-landing-system : lando
2019-09-05 23:41:36 +00:00
Ting-Yu Lin b8fee8f71c Bug 1308587 Part 2 - Remove -moz prefix for all multi-column properties in testing and css files. r=dholbert
This patch is generated by the following script:

```
function remove_column_prefix() {
    echo "Renaming $1 to $2"
    find .\
         -type f\
         ! -path "./obj*"\
         ! -path "./.git"\
         ! -path "./.hg"\
         \( -name "*.html" -or\
            -name "*.xhtml" -or\
            -name "*.xht" -or\
            -name "*.xul" -or\
            -name "*.xml" -or\
            -name "*.css"  \)\
            -exec sed -i -e "s/$1/$2/g" "{}" \;
}

remove_column_prefix "-moz-columns" "columns"
remove_column_prefix "-moz-column-width" "column-width"
remove_column_prefix "-moz-column-count" "column-count"
remove_column_prefix "-moz-column-fill" "column-fill"
remove_column_prefix "-moz-column-gap" "column-gap"
remove_column_prefix "-moz-column-rule" "column-rule"
remove_column_prefix "-moz-column-rule-width" "column-rule-width"
remove_column_prefix "-moz-column-rule-color" "column-rule-color"
remove_column_prefix "-moz-column-rule-style" "column-rule-style"

```

Note: after running the above script, I reverted one minor change to the
file multicol-nested-column-rule-001.xht in the theoretically read-only
directory layout/reftests/w3c-css/received/css-multicol/.

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

--HG--
extra : moz-landing-system : lando
2019-09-05 21:37:32 +00:00
Ting-Yu Lin f0a1298eaa Bug 1308587 Part 1 - Manually remove "-moz" prefixed multi-column properties in some tests. r=dholbert
In the next part, the patch generated by a script removes "-moz" prefix
to all multi-column properties.

However, some of the tests already have standard multi-column properties
specified. To avoid duplicating CSS multi-column rules in these
files (after applying the next part), I manually remove the prefixed
rules beforehand as many as possible.

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

--HG--
extra : moz-landing-system : lando
2019-09-05 21:32:05 +00:00
Daniel Holbert 2933f10325 Bug 1092007 part 2: Treat a flex item's main-size as indefinite if the item and the container both have an indefinite size in that axis. r=mats
Flex containers resolve a main-axis size for each of their flex items, and they
impose this size on the flex items by stomping on the items'
ReflowInput::ComputedISize() or ComputedBSize() data.  For cases when we're
stomping on the flex item's block-axis, then this can make us improperly treat
this size as definite (i.e. use it for percent resolution).

The flexbox spec does call out some cases where the item's size *is* supposed
to be considered definite[1], but if we're not in one of those cases, we need
to be careful to treat the size as indefinite even though it's been resolved.

This patch achieves this by:
 - adding a flag to FlexItem, which gets set in cases where we know we need to
   treat the size as indefinite.
 - adding a flag to ReflowInput, which gets set whenever a ComputedBSize is
   imposed (if the FlexItem had its flag set).
 - adding some code to the ReflowInput percent-resolution codepath to test for
   this flag and skip past percent-resolution if it's set.

This patch makes us pass all of the existing testcases in the web-platform-test
"percentage-heights-003.html". This patch also adds a few more subtests
there to exercise cases where the flex container and item have orthogonal
writing-modes.

(Note the XXXdholbert comments in the patch about items being "fully
inflexible" in some cases in order to be treated as having a definite size.
If I were to address that comment here, then we would start failing the
web-platform-test "percentage-heights-005.html", which all browsers currently
pass[2]. Therefore, I'm not adding that restriction at this point.)

[1] https://drafts.csswg.org/css-flexbox/#definite-sizes
[2] https://wpt.fyi/results/css/css-flexbox/percentage-heights-005.html

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

--HG--
extra : moz-landing-system : lando
2019-09-04 22:45:08 +00:00
Nika Layzell 0354cad681 Bug 1577711 - Part 2: Perform frame static clone after parent static clone, r=smaug
This is done by delaying the code within nsFrameLoader::CreateStaticClone until
after the document has been created. The nsFrameLoader is re-discovered using
the subframe BrowsingContext's mEmbedderElement.

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

--HG--
extra : moz-landing-system : lando
2019-09-05 14:55:19 +00:00
Nika Layzell 245b18cd39 Bug 1577711 - Part 1: Revert calling SetDocument earlier during clone from 1568055, r=smaug
This change was causing issues with images not displaying and iframes not
displaying correctly after multiple print preview calls.

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

--HG--
extra : moz-landing-system : lando
2019-09-05 14:55:11 +00:00
Hiroyuki Ikezoe aa7c736bad Bug 1563649 - As with display list item and reflow for position:fixed elements, use the adjusted layout viewport size getComputedStyle() r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D41930

--HG--
extra : moz-landing-system : lando
2019-09-05 01:15:05 +00:00
Emilio Cobos Álvarez 7df79853f9 Bug 1578700 - Change use counter setup to propagate the page use counters together. r=smaug
This is so that SetUseCounter is as cheap as possible.

This is in preparation for hooking the CSS use counters to telemetry. We want
CSS use counters to be fast and be propagated at once to the parent page. This
will make sure to use the same setup as everywhere else.

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

--HG--
extra : moz-landing-system : lando
2019-09-04 23:36:21 +00:00
Daniel Holbert d8257a522d Bug 1577072 followup: Use an even larger line-height in our "bigger-than-one" text-input line-height reftest, to accommodate bigger widgets on Debian. r=dbaron
Previous commit on this bug bumped up the test from a line-height of 1.5
to 1.8, but that's still not taller than the default widget height on Debian.
But 2.5 does seem to be sufficiently tall to produce a size difference.

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

--HG--
rename : layout/reftests/forms/input/text/line-height-1.8.html => layout/reftests/forms/input/text/line-height-2.5.html
extra : moz-landing-system : lando
2019-09-04 22:13:07 +00:00
Gijs Kruitbosch 9f3a3e9669 Bug 1578709 - Only set flash only pref for those tests that need it, r=mconley,ahal
Differential Revision: https://phabricator.services.mozilla.com/D44648

--HG--
extra : moz-landing-system : lando
2019-09-04 22:12:39 +00:00
Gurzau Raul f96e9cd73f Backed out changeset 887d125d7f59 (bug 1578709) for failing at test_bug427744.html on a CLOSED TREE. 2019-09-04 21:34:11 +03:00
Gijs Kruitbosch bb899238e7 Bug 1578709 - Only set flash only pref for those tests that need it, r=mconley,ahal
Differential Revision: https://phabricator.services.mozilla.com/D44648

--HG--
extra : moz-landing-system : lando
2019-09-04 17:28:02 +00:00
Tom Ritter 0aa6e0e7e7 Bug 1577642 - Move the timestamp rounding outside of the loop so it's only reduced once r=birtles
When we had it in the loop, we would continually reduce it, which held the
possibility of bumping it down an epoch due to double imprecision. Now
we only reduce it once, using all rAF callbacks get the same timestamp.

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

--HG--
extra : moz-landing-system : lando
2019-09-03 22:38:45 +00:00
Kris Taeleman eaa0124969 Bug 1522422 - Fixing opacity issue on SVG USE elements in D2D. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D44059

--HG--
extra : moz-landing-system : lando
2019-09-04 13:26:43 +00:00
Timothy Nikkel e0a79ba9f2 Bug 1578164. Use async notifications when requesting decode of an image in most places. r=aosmond
Most of things will likely be no real change because they ask for the exact frame they want immediately before.

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

--HG--
extra : moz-landing-system : lando
2019-09-03 15:36:23 +00:00
Gerald Squelart 95f77c2409 Bug 1576819 - Use PROFILER_ADD_MARKER{,_WITH_PAYLOAD} everywhere - r=gregtatum
All calls to `profiler_add_marker()` (outside of the profilers code) are
now replaced by either:
- `PROFILER_ADD_MARKER(name, categoryPair)`
- `PROFILER_ADD_MARKER_WITH_PAYLOAD(name, categoryPair, TypeOfMarkerPayload,
                                    (payload, ..., arguments))`

This makes all calls consistent, and they won't need to prefix the category pair
with `JS::ProfilingCategoryPair::`.

Also it will make it easier to add (and later remove) internal-profiling
instrumentation (bug 1576550), and to replace heap-allocated payloads with
stack-allocated ones (bug 1576555).

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

--HG--
extra : moz-landing-system : lando
2019-09-04 07:56:51 +00:00
Emilio Cobos Álvarez 7c013bffa7 Bug 1574718 - followup: Also actually unlink it. r=heycam
MANUAL PUSH: Minor post-landing follow-up.
2019-09-04 09:15:43 +02:00
Emilio Cobos Álvarez 0a2fcf6771 Bug 1574718 - Cycle-collect inline-sheet cache. r=heycam
This is an oversight from the initial implementation of the cache.

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

--HG--
extra : moz-landing-system : lando
2019-09-04 06:27:00 +00:00
Timothy Nikkel 7201c1e21e Bug 1578158. Make sure the presshell is for an active tab before asking to decode an image. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D44355

--HG--
extra : moz-landing-system : lando
2019-09-03 13:48:47 +00:00
Emilio Cobos Álvarez d5bc03b6f0 Bug 1578295 - Use cbindgen for counters. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D44403

--HG--
extra : moz-landing-system : lando
2019-09-02 23:11:26 +00:00
Jonathan Kew b58515d440 Bug 1573711 - Account for baseline offset (potential effect of vertical-align property) when computing skip-ink intercepts. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D44297

--HG--
extra : moz-landing-system : lando
2019-08-31 04:32:55 +00:00
Xidorn Quan fc104758ba Bug 1565681 - Have ruby base container sized based on margin box of ruby bases. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D43353

--HG--
extra : moz-landing-system : lando
2019-09-02 10:09:30 +00:00
Emilio Cobos Álvarez a04d027dce No bug - add a comment to forms.css about how we reset line-height.
MANUAL PUSH: Comment only, no bug.
2019-09-02 10:30:57 +02:00
Cameron McCormack 2503e0f3c1 Bug 1577390 - Wait a bit before loading document in Layout Debugger when profiling. r=dbaron
That gives the profiler a chance to attach to a newly created content
process.  There's no API for waiting for the profiler to be ready in a
just-created process, unfortunately.

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

--HG--
extra : moz-landing-system : lando
2019-08-30 23:12:58 +00:00
Daniel Holbert 96c4bc8f3b Bug 1577053 part 3: Add lang="ja" to text-emphasis reftest files that weren't regenerated by the scripts in the support subfolder. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D44259

--HG--
extra : moz-landing-system : lando
2019-08-31 01:11:14 +00:00
Daniel Holbert 37b0bae570 Bug 1577053 part 2: Re-run scripts to generate text-emphasis-* reftests. r=jfkthame
This patch was generated by running each of the scripts in the folder
layout/reftests/w3c-css/submitted/text-decor-3/support/

(This patch also includes a manual edit to reftest.list, to annotate some Win7
fuzziness that was caused by the new choice of font for a set of tests here.)

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

--HG--
extra : moz-landing-system : lando
2019-08-31 01:11:07 +00:00
Daniel Holbert ed680a9c13 Bug 1577053 part 1: Update generate-text-emphasis-* test creation scripts to add lang="ja". r=jfkthame
Also, adjust the scripts to leave behind a note in each generated HTML file, to
tell the reader that the file is auto-generated.

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

--HG--
extra : moz-landing-system : lando
2019-08-31 01:10:58 +00:00
Daniel Holbert 3157a68692 Bug 1577072: Use a slightly larger line-height in our "bigger-than-one" text-input line-height reftest, to accommodate bigger widgets on Debian. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D43787

--HG--
rename : layout/reftests/forms/input/text/line-height-1.5.html => layout/reftests/forms/input/text/line-height-1.8.html
extra : moz-landing-system : lando
2019-08-30 23:25:39 +00:00
Brad Werth efa8d9d650 Bug 1563163 Part 2: Downgrade an assert to a warning in nsFlexContainerFrame::GetFlexFrameWithComputedInfo. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D44284

--HG--
extra : moz-landing-system : lando
2019-08-30 23:16:44 +00:00
Daniel Holbert 7464b9c2c0 Bug 1481951 late-breaking followup: Remove mistaken comment with a reference to this (closed) bug. r=TYLin
DONTBUILD because this is a comment-only change.

Per bug 1481951 comment 6, it seems our behavior was in fact correct even when
the comment was added, and this "// XXX" comment was just due to a
misunderstanding in what was going on in the testcase.

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

--HG--
extra : moz-landing-system : lando
2019-08-30 20:37:10 +00:00
Emilio Cobos Álvarez b185926d7c Bug 1570759 - Don't expect assertions since they all came from margin computation.
CLOSED TREE

MANUAL PUSH: orange fix for unexpected passes
2019-08-30 18:43:08 +02:00
Emilio Cobos Álvarez a6a21b7c55 Bug 1570759 - followup: Actually use the style value if we determine we don't need the layout one. r=bustage
CLOSED TREE

MANUAL PUSH: orange will appear on autoland very soon otherwise
2019-08-30 17:30:53 +02:00
Emilio Cobos Álvarez 8ac4e96f2f Bug 1570759 - Enable the optimization to not flush for fixed margin values. r=jwatt
As noted this changes behavior, but it's unclear per
https://github.com/w3c/csswg-drafts/issues/2328 what behavior is correct, and
our behavior is inconsistent depending on whether there's any percentage
involved.

This matches other browsers so it's pretty low risk I'd say.

The test starts passing without changes to the test, but given the CSSWG issue I
made the test not rely on the optimization.

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

--HG--
extra : moz-landing-system : lando
2019-08-30 14:45:20 +00:00
Emilio Cobos Álvarez 4505c339ab Bug 1576229 - Account for user stylesheets for Shadow DOM invalidation. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D43992

--HG--
extra : moz-landing-system : lando
2019-08-30 14:35:34 +00:00
Emilio Cobos Álvarez e789ad73c7 Bug 1577745 - Remove dead version of nsStyleDisplay::IsOriginalDisplayInlineOutside. r=mats
SVG Text stuff doesn't support abspos or anything like that, so it's not like it
is useful.

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

--HG--
extra : moz-landing-system : lando
2019-08-30 13:21:42 +00:00
Jonathan Watt 63674c8ce1 Bug 1564788. Remove unnecessary null check from PrintPreviewUserEventSuppressor::HandleEvent. r=masayuki
Most other overrides of nsIDOMEventListener::HandleEvent don't null check
aEvent at all.  This method should never be called without an event.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 01:50:03 +00:00
Boris Chiou c8dba8c886 Bug 1575062 - Support css use counters for unimplemented properties. r=emilio
For developing properties, we will handle them in an other bug.

Besides, I use an iframe for the test because we create a use counter in
the constructor of Document, which use the prefs to decide what kind of
properties we want to record. So, in the test, we have to reload iframe
to make sure we re-create the document, so does the use counter, to make
sure the prefs work properly.

The two prefs affect the css use counters:
1. layout.css.use-counters.enabled: Allocate use counters, and record
   non-custom properties.
2. layout.css.use-counters-unimplemented.enabled: Record all unimplmented
   properties into the use counters.

If we disable layout.css.use-counters.enblaed, we don't create use counters
object, so layout.css.use-counters-unimplemented.enabled doesn't work,
either.

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

--HG--
extra : moz-landing-system : lando
2019-08-29 23:40:13 +00:00
Cameron McCormack a1b17a4a25 Bug 1577389 - Return early from StyleCSSPixelLength::ToAppUnits for zero lengths. r=emilio
Zero lengths are common, and we can avoid doing all the FP math.

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

--HG--
extra : moz-landing-system : lando
2019-08-29 22:19:36 +00:00
Mats Palmgren e45d08541b Bug 1576821 - [css-lists-3] Make 'none' invalid as a <counter-style> in counter()/counters(). r=emilio
CSSWG resolution:
https://github.com/w3c/csswg-drafts/issues/4163#issuecomment-521331100

Spec:
https://drafts.csswg.org/css-lists-3/#counter-functions

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

--HG--
extra : moz-landing-system : lando
2019-08-30 00:15:37 +00:00
Mats Palmgren 81134b078b Bug 1577364 - Remove the NS_TABLE_CELL_HAS_PCT_OVER_BSIZE frame bit since it's not used. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D43864

--HG--
extra : moz-landing-system : lando
2019-08-29 21:22:25 +00:00
Timothy Nikkel aebd0b6368 Bug 1553571. Pass the size of the display item to the StackingContextHelper constructor in nsDisplayTransform::CreateWebRenderCommands. r=jrmuizel
In FrameLayerBuilder::ChooseScale we hit this line https://searchfox.org/mozilla-central/rev/325c1a707819602feff736f129cb36055ba6d94f/layout/painting/FrameLayerBuilder.cpp#6124 and aVisibleRect is empty (because every call site except for nsDisplayMasksAndClipPaths::CreateWebRenderCommands (which doesn't need to) passes empty for the size of the bounds) and so the maxScale stays at 4, and we clamp to 4 instead of something 30-50.

The call to ChooseScale in StackingContextHelper::StackingContextHelper is the only place the size of aBounds is ever looked at. And we only ever call ChooseScale if we are passed a mBoundTransform which only nsDisplayTransform does. So this change should be quite safe.

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

--HG--
extra : moz-landing-system : lando
2019-08-29 22:19:14 +00:00
Noemi Erli 5412bfa2f9 Backed out changeset 5395a79f7a0b (bug 1553571) for causing reftest failures 2019-08-29 23:50:43 +03:00
Timothy Nikkel d3c2b464be Bug 1553571. Pass the size of the display item to the StackingContextHelper constructor in nsDisplayTransform::CreateWebRenderCommands. r=jrmuizel
In FrameLayerBuilder::ChooseScale we hit this line https://searchfox.org/mozilla-central/rev/325c1a707819602feff736f129cb36055ba6d94f/layout/painting/FrameLayerBuilder.cpp#6124 and aVisibleRect is empty (because every call site except for nsDisplayMasksAndClipPaths::CreateWebRenderCommands (which doesn't need to) passes empty for the size of the bounds) and so the maxScale stays at 4, and we clamp to 4 instead of something 30-50.

The call to ChooseScale in StackingContextHelper::StackingContextHelper is the only place the size of aBounds is ever looked at. And we only ever call ChooseScale if we are passed a mBoundTransform which only nsDisplayTransform does. So this change should be quite safe.

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

--HG--
extra : moz-landing-system : lando
2019-08-29 14:45:36 +00:00
L. David Baron a08b5323cb Bug 1576972 - Keep lastRealFrame up-to-date even when we skip empty text frames. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D43885

--HG--
extra : moz-landing-system : lando
2019-08-29 10:14:08 +00:00
Tom Ritter 7f0055c7a2 Bug 1577243 - Unconditionally clamp the requestAnimationFrame timestamp (and clamp/jitter it in RFP mode) r=birtles
In Bug 1387894 we created a mode for Firefox where it unconditionally clamps all timestamps to 20 microseconds. This happens if you disable privacy.reduceTimerPrecision (which is on by default) and is so we don't inadvertently leak super-high-resolution (nanosec) timestamps.

As part of that patch, we started clamping animation timestamps - which are exempted from privacy.reduceTimerPrecision because it was too difficult to get them working at the time. (We should still fix that though.)

This caused new test failures, and one of those was a comparison between document timelines and the timestamp in requestAnimationFrame. we were not clamping the timestamp in requestAnimationFrame under the logic that it fires in predictable intervals.

However discussions about the WPT change we made to 'fix' the now-broken comparison https://github.com/web-platform-tests/wpt/pull/18172 and https://github.com/web-platform-tests/wpt/pull/18357 showed me that document.timeline is supposed to be slaved to the requestAnimationFrame timestamp (or vice versa.)

The correct fix is therefore to unconditionally clamp the requestAnimationFrame timestamp AND the document.timeline timestamp. In doing so we also start clamping/jittering the requestAnimationFrame timestamp in Resist Fingerprinting mode, so that might cause some new/unexpected behaviors for that mode we should watch out for.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 23:44:07 +00:00
Joel Olsson 00e5276301 Bug 1565562: Media Query - Enable single <number> and <number>/<number> for <aspect-ratio>. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D41557

--HG--
extra : moz-landing-system : lando
2019-08-29 10:48:52 +00:00
Andreea Pavel f652361ce2 Backed out changeset f20ce5c7a25c (bug 1575870) for assertion failure at nsNavHistory.cpp on a CLOSED TREE 2019-08-29 13:45:54 +03:00
Frederic Wang ea067f91f0 Bug 1575870. Remove support for XLink on MathML elements. r=emilio
See https://groups.google.com/forum/#!topic/mozilla.dev.platform/70NFnet82cU

This commit introduces a new mathml.xlink.disabled option to disable support
for XLink attributes on MathML elements together with a use counter and
deprecation warning when support is enabled. For now, support is only disabled
in Nighly.

In the past, we relied on custom MathML deprecation warnings but those are
removed here. Corresponding tests for these legacy warning messages are
also removed from test_bug553917.html.

link-1.xhtml is run with XLink support enabled (since it check xlink:href)
while browser_contentAltClick.js is updated to check whether XLink has any
effect on MathML, depending on whether the option is enabled.

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

--HG--
extra : moz-landing-system : lando
2019-08-29 08:20:01 +00:00
Emilio Cobos Álvarez 0ec0984d05 Bug 1577258 - early-return for noop resizes. r=botond
This avoids doing wasted work and sending spurious resize
events if this case would be hit.

In practice, it cannot be hit yet, I think, because
callers do check for this and bail out earlier. But
there's no assertion to that respect so this shouldn't
hurt.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 22:03:26 +00:00
Julian Descottes 5e92caeefc Bug 1575766 - Use chrome preferences for DevTools documents r=emilio
Depends on D43639

This will avoid applying High Contrast mode colors to devtools documents even when DevTools are loaded in a frame with type=content
This behavior can be disabled by setting devtools.toolbox.force-chrome-prefs to false

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

--HG--
extra : moz-landing-system : lando
2019-08-28 13:09:36 +00:00
Yura Zenevich dae04e052b Bug 1564968 - add isElementThemed method to InspectorUtils to infer native theme styling such as focus. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D43441

--HG--
extra : moz-landing-system : lando
2019-08-28 17:49:22 +00:00
Andrew Creskey 7134be5031 Bug 1575938 Convert dom/JSEnvironment GC timing constants to StaticPref r=edgar
Converted the following to StaticPrefs so that we can easily test variations:

NS_GC_DELAY
NS_SHRINK_GC_BUFFERS_DELAY
NS_FIRST_GC_DELAY
NS_FULL_GC_DELAY
NS_INTERSLICE_GC_DELAY

NS_USER_INTERACTION_INTERVAL

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

--HG--
extra : moz-landing-system : lando
2019-08-26 15:51:01 +00:00
Frederic Wang 3f8a2878fa Bug 1548524 - Remove attributes deprecated from MathML3. r=emilio
See https://github.com/mathml-refresh/mathml/issues/5#issuecomment-475506856
and https://groups.google.com/forum/#!topic/mozilla.dev.platform/kl5c87mBlO0

This patch introduces a new preference
mathml.deprecated_style_attributes.disabled in order to disable legacy support
for attributes background, color, fontfamily, fontsize, fontstyle and
fontweight. Note that xlink:href will be handled separately in bug 1575870.

* A new counter and deprecation message is introduced for these attributes.
  In nsMathMLElement, the old WarnDeprecated calls are replaced with a single
  call to WarnOnceAbout for the deprecate attributes. Notice that for some
  reason, the color attribute used to send warning in both ParseAttribute and
  MapMathMLAttributesInto.
* sMtableStyles is removed and replaced with a simple comparison.
* sMathML3Attributes is split into two tables: one for script attributes which
  will be handled in bug 1548471 and one for style attributes, handled here.
  The attributes in this second table is now ignored when the feature flag is
  disabled.
* test_bug553917.html is updated so that it no longer checks the old warning
  messages for these attributes. New warning messages have been verified
  manually.
* Reftests checking support for these attributes are run with the support
  enabled.
* Finally, WPT tests are run with the support disabled and a new test
  is added to verify that these attributes are no longer mapped to CSS.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 14:59:55 +00:00
Nicolas Silva bf5ea4cb2d Bug 1576372 - Check the validity of the DrawTarget before rendering SVG content into it. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D43751

--HG--
extra : moz-landing-system : lando
2019-08-28 13:16:58 +00:00
Bogdan Tara 02e806d54a Backed out 6 changesets (bug 1564968) by yzen's request CLOSED TREE
Backed out changeset 4b7516635108 (bug 1564968)
Backed out changeset c3227d4ff4b3 (bug 1564968)
Backed out changeset 868dbd59c79e (bug 1564968)
Backed out changeset db1a396ab58e (bug 1564968)
Backed out changeset e69163dc4683 (bug 1564968)
Backed out changeset c12857bc6980 (bug 1564968)
2019-08-28 16:06:23 +03:00
Yura Zenevich 830e72a287 Bug 1564968 - add isElementThemed method to InspectorUtils to infer native theme styling such as focus. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D43441

--HG--
extra : moz-landing-system : lando
2019-08-27 03:35:13 +00:00
Miko Mynttinen 4b6fb0cabc Bug 1576985 - Use RefPtr for hit test info AGR and ASR r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D43661

--HG--
extra : moz-landing-system : lando
2019-08-27 20:00:26 +00:00
L. David Baron a0d26cfb9e Bug 1576864 - Add reftest. r=emilio
(Given that this was fixed quite a while ago, I didn't actually test
this in the reftest harness prior to the patch, but I did check that the
testcase fails in the browser on Firefox 68 release.)

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

--HG--
extra : moz-landing-system : lando
2019-08-27 17:35:48 +00:00
Daniel Holbert d5ab8392bf Bug 1574031 followup: Backed out changeset eec51eb982bc to reenable ink-skipping in reftest decoration-style-standards.html. (no review, just reverting a test tweak)
We are pretty sure that this test no longer needs ink skipping to be disabled,
as of bug 1574066.

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

--HG--
extra : moz-landing-system : lando
2019-08-27 17:32:05 +00:00
Sylvestre Ledru d264b841c9 Bug 1576502 - Fix some wording issues r=mhoye
Differential Revision: https://phabricator.services.mozilla.com/D43363

--HG--
extra : moz-landing-system : lando
2019-08-27 15:38:58 +00:00
Jonathan Kew 96605ab146 Bug 1576553 - Add reftest. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D43411

--HG--
extra : moz-landing-system : lando
2019-08-27 08:36:04 +00:00
Andreea Pavel 0b1366e317 Backed out 2 changesets (bug 1576553) for failing reftest at 1576553-1.html on a CLOSED TREE
Backed out changeset bc36c4359eef (bug 1576553)
Backed out changeset d653382c7997 (bug 1576553)
2019-08-27 03:43:54 +03:00
kriswright fa50c7828f Bug 1573992 - Convert browser.tabs.remote.desktopBehavior to static pref. r=njn
Converts browser.tabs.remote.desktopBehavior to a static pref. Updates usages.

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

--HG--
extra : moz-landing-system : lando
2019-08-26 20:25:42 +00:00
Emilio Cobos Álvarez c17fdaaa27 Bug 1576703 - Update cbindgen. r=boris
This cleans up the pattern of "Use a private dtor so that the helper functions
do the right thing" by enabling it everywhere using:

  https://github.com/eqrion/cbindgen/pull/377

It also caught some uninitialized value issues.

I think they're mostly harmless since we zero-initialize our structs:

https://searchfox.org/mozilla-central/rev/325c1a707819602feff736f129cb36055ba6d94f/servo/components/style/properties/gecko.mako.rs#632

And since we override the clip rect, which is the other bit of code that was
failing to build with this change.

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

--HG--
extra : moz-landing-system : lando
2019-08-26 23:18:46 +00:00
Emilio Cobos Álvarez 7cc40cf7ef Bug 1576666 - Use cbindgen for clip / -moz-image-region. r=boris
This also fixes some of the issues with -moz-image-region, where we just minted
an auto out of the blue.

Depends on D43472

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

--HG--
extra : moz-landing-system : lando
2019-08-26 23:09:47 +00:00
Jonathan Kew 41c6e40a9e Bug 1576553 - Add reftest. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D43411

--HG--
extra : moz-landing-system : lando
2019-08-26 23:05:45 +00:00
Mats Palmgren 9adf43a616 Bug 1576355 - Don't try to optimize position style changes for rel.pos. grid items. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D43387

--HG--
extra : moz-landing-system : lando
2019-08-26 20:00:35 +00:00
Jonathan Kew e9f66d8868 Bug 1576356 - Use an AutoTArray to collect intercepts, to avoid heap allocation except in extreme cases. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D43331

--HG--
extra : moz-landing-system : lando
2019-08-26 18:14:16 +00:00
Ting-Yu Lin 40da910325 Bug 1575106 Part 4 - Add reftests, crashtests, and adjust test expectations. r=dbaron
1346454-1.html and 1346454-2.html are moved to keep the list sorted.

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

--HG--
extra : moz-landing-system : lando
2019-08-26 06:10:34 +00:00
Ting-Yu Lin b4138652e0 Bug 1575106 Part 3 - Use unconstrained block-size to measure last column, and revise condition to create overflow columns. r=dbaron
This patch changes behavior only if column-span is enabled. It fixes a
lot of fuzzing test cases which will be added in the next part.

It changes the column balancing behavior in the following ways.

1) By using unconstrained block-size to measure the last column in the
   first balancing iteration, we can guarantee that mKnownFeasibleBSize
   has the correct feasible block-size.

2) Always reflow one more time if the content cannot fit in the
   available content block-size. Due to 1), the content (last column)
   always returns fully complete in the first balancing iteration even if
   it's in an inner column with a constrained available block-size. We need
   to reflow again to get the correct *incomplete* reflow status so that
   the outer column can create next-in-flows for the inner column.

3) ColumnSet gives up balancing only when ColumnSetWrapper is running
   out of block-size. When a ColumnSetWrapper has constrained block-size,
   i.e. it's in a fragmentation context like pages or nested columns, we
   prioritize fragmenting ColumnSetWrapper over creating overflow columns
   within the nsColumnSet.

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

--HG--
extra : moz-landing-system : lando
2019-08-26 07:03:36 +00:00
Ting-Yu Lin ffad323296 Bug 1575106 Part 2 - Rename blockReflowInput to childReflowInput in nsBlockFrame::ReflowBlockFrame(). r=dbaron
Every time I read the code, the name `blockReflowInput` makes me think
the variable is an instance of `BlockReflowInput`, but it is not.

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

--HG--
extra : moz-landing-system : lando
2019-08-26 06:10:21 +00:00
Ting-Yu Lin def57daecd Bug 1575106 Part 1 - Use a variable to indicate ColumnSet is measuring the feasible block-size. r=dbaron
That is when ColumnSet gives its last ::moz-column-content unbounded
available block-size in the very first balancing iteration.

Note that the last column's available block-size isn't
really *unbounded* yet, but we'll make it happen in the next part.

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

--HG--
extra : moz-landing-system : lando
2019-08-26 06:10:11 +00:00
Geoff Brown 7ba1b41441 Bug 1575667 - Add --no-install option for android mach reftest and gtest; r=bc
Straight-forward addition of the --no-install option for reftest, just like
the existing option for mochitest. For gtest, I alos noticed the mach command
help needed some cleanup.

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

--HG--
extra : moz-landing-system : lando
2019-08-26 13:45:10 +00:00
Cameron McCormack 857c6ccf10 Bug 1533569 - Part 3: Increase shared memory size. r=jwatt
400 KiB is just too small for Android ARM64.

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

--HG--
extra : moz-landing-system : lando
2019-08-23 19:36:45 +00:00
Cameron McCormack df72efcbd0 Bug 1533569 - Part 1: Freeze UA sheet shared memory. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D36254

--HG--
extra : moz-landing-system : lando
2019-08-23 19:36:49 +00:00
Cameron McCormack 1ca68445da Bug 1574066 - Correctly count glyphs when determining text decoration intercepts. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D43396

--HG--
extra : moz-landing-system : lando
2019-08-26 09:26:22 +00:00
Brad Werth 2ca2008ad6 Bug 1575097 Part 4: Make nsMediaFeatures::GetDeviceSize return unscaled browser sizes for RDM documents. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D42986

--HG--
extra : moz-landing-system : lando
2019-08-25 23:54:16 +00:00
Cameron McCormack 79a431d339 Bug 1569077 - Part 3: Add --capture-profile argument to the layout debugger. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D39469

--HG--
extra : moz-landing-system : lando
2019-08-25 23:38:30 +00:00
Cameron McCormack 712f284101 Bug 1569077 - Part 2: Add --autoclose argument to the layout debugger. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D39468

--HG--
extra : moz-landing-system : lando
2019-08-25 23:38:28 +00:00
Cameron McCormack 7ce6716163 Bug 1569077 - Part 1: Refactor layout debugger command line handling. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D39467

--HG--
extra : moz-landing-system : lando
2019-08-25 23:38:26 +00:00
Csoregi Natalia f5bd429ac1 Bug 1553971 - Skip crashtest 1545177.html on Android. r=jmaher
Reviewers: jmaher

Reviewed By: jmaher

Subscribers: emilio

Bug #: 1553971

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

--HG--
extra : rebase_source : 711da13e71cad8ae8aee19ff9605d18520b88930
extra : histedit_source : 02532a7b72fc43e947ab9eab593c23a0a34d6057
2019-08-25 20:29:51 +03:00
Emilio Cobos Álvarez 31c8224bf5 Bug 1561450 - Suppress scroll anchoring adjustments from scroll event listeners. r=dholbert
See https://github.com/w3c/csswg-drafts/issues/4239

This fixes what is in my opinion one of the biggest issues of scroll anchoring
as specified / currently implemented.

It's trivial to flush layout on a scroll handler and create scroll adjustments,
which in turn would trigger other scroll events to be fired. This situation,
which is what has happened in most of the scroll anchoring regressions I've
fixed, at best gets pages to get stuck in an infinite CPU loop. At worst, it
causes scrolling to be unusable because the page keeps reacting to scroll
events.

An alternative, slightly more elegant but not clear to me if 100% implementable
approach would be bug 1529702.

This should enormously reduce the need for scroll anchoring suppression
triggers[1], I'd think, which in turn would allow me to investigate removing
some of that complexity.

https://drafts.csswg.org/css-scroll-anchoring/#suppression-triggers

The setup to set / unset the boolean is a bit awkward but I couldn't come up
with anything better.

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

--HG--
extra : moz-landing-system : lando
2019-08-23 22:29:49 +00:00
Emilio Cobos Álvarez f4fb9ab137 Bug 1576194 - Remove kDisplayKTable. r=mats
It doesn't represent anything useful anymore.

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

--HG--
extra : moz-landing-system : lando
2019-08-23 15:52:05 +00:00
Ciure Andrei 0a6d4a24f8 Merge inbound to mozilla-central. a=merge 2019-08-24 12:51:09 +03:00
Alex Vincent cec0c5cbdb Bug 1508169, Remove performAction* from nsITreeView.idl in mozilla-central. r=peterv, johannh
performAction, performActionOnRow and performActionOnCell are methods of the
nsITreeView interface that are never called.  This is to remove these methods.
A comm-central patch will be along shortly.

Differential Revision: https://phabricator.services.mozilla.com/D39273
2019-08-24 00:49:55 +02:00
Jonathan Kew 39041986c7 Bug 1575908 - Remove spurious code trying to reinitialize a propertyProvider. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D43261

--HG--
extra : moz-landing-system : lando
2019-08-23 15:49:28 +00:00
Mats Palmgren a9c174c337 Bug 1572923 - Add default size for vertical range input ::-moz-range-track pseudo. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D43292

--HG--
extra : moz-landing-system : lando
2019-08-23 21:54:43 +00:00
Emilio Cobos Álvarez 24fd3e3679 Bug 1481112 - Be consistent on which properties we allow to inherit through for input, textarea, button and select, for compat with other UAs. r=mats
There should be no change in behavior for <input> and <textarea>. Tests need to
be written for <button> and <select>.

Tests are at https://github.com/web-platform-tests/wpt/pull/17152

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

--HG--
extra : moz-landing-system : lando
2019-08-23 13:24:05 +00:00
Emilio Cobos Álvarez a3278b6dad Bug 1575806 - Cleanup a bit preference-stylesheet-related code. r=heycam
Some of it was dead code, another was inlining a not very useful function (and
in one case redundant, since EnsureInitialized() happened right after
Refresh()).

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

--HG--
extra : moz-landing-system : lando
2019-08-22 23:15:13 +00:00
Cameron McCormack d4d395fb49 Bug 1576018 - Tweak frame tree debugging output. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D43178

--HG--
extra : moz-landing-system : lando
2019-08-23 05:31:37 +00:00
Cameron McCormack 0cea34de7c Bug 1533569 - Part 3: Increase shared memory size. r=jwatt
400 KiB is just too small for Android ARM64.

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

--HG--
extra : moz-landing-system : lando
2019-08-23 02:33:14 +00:00
Cameron McCormack 1c2c3c17a9 Bug 1533569 - Part 1: Freeze UA sheet shared memory. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D36254

--HG--
extra : moz-landing-system : lando
2019-08-23 02:33:05 +00:00
Ting-Yu Lin e0b48a710c Bug 1571897 - Add a crashtest. r=dholbert
According to the bug, this happens only on Android.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 22:20:39 +00:00
Frédéric Wang 8f3b2a9292 Bug 1575542 - Add counter and warnings for deprecated MathML lengths. r=emilio
This commit introduces new counters and deprecation warnings for the following
MathML features:
* mathspace names (bug 1575542)
* mathsize names (bug 1548527)
* linethickness names (bug 1548529)

Note: helper parsing functions for mfrac and mpadded are changed to non-static
in order to pass the document parameter needed to log warnings to the console.

Change manually tested with
    <math>
      <mspace width="thinmathspace"></mspace>
      <mpadded width="2thickmathspace"></mpadded>
      <mfrac linethickness="thin"><mn>1</mn><mn>2</mn></mfrac>
      <mtext mathsize="big">3</mtext>
    </math>

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

--HG--
extra : moz-landing-system : lando
2019-08-22 06:29:26 +00:00
Emilio Cobos Álvarez cf63cf46ad Bug 1572252 - Properly null-check a variable in debug-only code.
Differential Revision: https://phabricator.services.mozilla.com/D43054

--HG--
extra : moz-landing-system : lando
2019-08-22 13:05:44 +00:00
Emilio Cobos Álvarez dca2b09c76 Bug 1575713 - Use atoms for font-feature-values. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D42984

--HG--
extra : moz-landing-system : lando
2019-08-22 00:24:44 +00:00
Frédéric Wang 90172bae44 Bug 1575596 - MathML Lengths: Do not accept numbers ending with a dot. r=emilio
See https://github.com/mathml-refresh/mathml/issues/23
and https://groups.google.com/forum/#!topic/mozilla.dev.platform/wIjm9JjVHNg

This commit introduces a new preference option
mathml.legacy_number_syntax.disabled to disable legacy MathML numbers
(e.g. "1234.") that are not supported by CSS. This feature is now disabled by
default.

* test_bug553917.html is updated to check that such legacy values now cause an
  error message to be logged into the console when the feature is disabled.
* Legacy MathML features are now disabled for WPT mathml test in a global
  __dir__.ini file. Removing legacy numbers allow to pass
  mathml/relations/css-styling/lengths-2.html

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

--HG--
extra : moz-landing-system : lando
2019-08-21 23:49:36 +00:00
Botond Ballo 52a4f25b4b Bug 1573014 - Early-exit ShrinkToDisplaySizeIfNeeded() in reader mode. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D42967

--HG--
extra : moz-landing-system : lando
2019-08-21 23:33:14 +00:00
Emilio Cobos Álvarez ba5c709666 Bug 1575608 - Simplify -x-span property. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D42914

--HG--
extra : moz-landing-system : lando
2019-08-21 20:02:13 +00:00
Emilio Cobos Álvarez 346d47d739 Bug 1575608 - Avoid manual paint-order glue code. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D42913

--HG--
extra : moz-landing-system : lando
2019-08-21 19:47:53 +00:00
Emilio Cobos Álvarez 611e05f178 Bug 1575608 - Avoid some signed -> unsigned conversions for box-ordinal-group. r=dholbert
This is consistent with the `order` property anyhow, and allows to simplify some
code.

Negatives are still not parsed, but rust uses a similar representation for all
CSS <integer> values and so should C++.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 18:35:31 +00:00
Emilio Cobos Álvarez f11bf00012 Bug 1575559 - Make font-variant-alternates use cbindgen. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D42859

--HG--
extra : moz-landing-system : lando
2019-08-21 22:45:26 +00:00
Randall E. Barker f906c88052 Bug 1575694 - Short circuiting the refresh driver in WebVR immersive mode on Android break the MediaRecorder r=mstange
Rather than short circuit the refresh driver, this instead only bypasses painting on
Android when WebVR is in immersive mode.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 22:41:56 +00:00
Mike Hommey 66d7fe943e Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D42765

--HG--
extra : moz-landing-system : lando
2019-08-21 12:25:42 +00:00
Kristen Wright b94d261b88 Bug 1572529 - Remove vsync.parentProcess.highPriority . r=smaug
Removes vsync.parentProcess.highPriority pref and stores BrowserTabsRemoteAutostart() directly into sHighPriorityEnabled.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 21:54:58 +00:00
Botond Ballo 9d1532ac71 Bug 1575093 - Ensure initial-scale in a meta viewport tag is respected. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D42949

--HG--
extra : moz-landing-system : lando
2019-08-21 22:00:43 +00:00
Ryan VanderMeulen 51ae45f59c Backed out changeset e8e037a5fb87 (bug 1572302) because the patch it depends on is being backed out.
--HG--
extra : rebase_source : 349181c67d0e02a27f1d571d41ba63f63493ede6
2019-08-21 16:40:22 -04:00
Ting-Yu Lin ee24bfab2a Bug 1575377 - Remove BlockReflowInput::mHasUnconstrainedBSize, and update documents. r=dholbert
The flag's original form `mUnconstrainedHeight` was added in
nsBlockReflowState.h in
e580331b37

Nowadays, we often check available block-size in reflow directly in nsBlockFrame.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 19:53:08 +00:00
Ting-Yu Lin e5e0ef1d8d Bug 1568001 - Add crashtests fixed by bug 1420528. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D42931

--HG--
extra : moz-landing-system : lando
2019-08-21 19:08:46 +00:00
Noemi Erli abea3666f6 Backed out 3 changesets (bug 1533569) for permafailing in text-decoration-color.html CLOSED TREE
Backed out changeset 70e4542f1434 (bug 1533569)
Backed out changeset 216edfe6b998 (bug 1533569)
Backed out changeset 43c411ccf445 (bug 1533569)
2019-08-23 22:31:41 +03:00
Edgar Chen a3adabe5a7 Bug 1568950 - Part 5: Remove nsIDOMWindowUtils::forceUseCounterFlush; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D42818

--HG--
extra : moz-landing-system : lando
2019-08-21 12:52:19 +00:00
Ryan VanderMeulen ac0a329b07 Bug 1572302 - Update the expected result for skip-ink-multiline-position. r=dholbert
Somehow, updating lz4 from version 1.9.1 to 1.9.2 makes this test reliably pass.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 18:18:18 +00:00
Jonathan Kew 75e716cf5d Bug 1573249 - patch 3 - Add reftests for ignoring skip-ink behavior on CJK text. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D42683

--HG--
extra : moz-landing-system : lando
2019-08-21 11:04:19 +00:00
Jonathan Kew 129e7436f7 Bug 1573249 - patch 2 - Don't apply skip-ink to runs of CJK text, because it looks bad with many fonts. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D42529

--HG--
extra : moz-landing-system : lando
2019-08-21 15:07:20 +00:00
Jonathan Kew 38828a9be9 Bug 1573249 - patch 1 - Clean up some management of the GlyphRun array in gfxTextRun. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D42528

--HG--
extra : moz-landing-system : lando
2019-08-21 15:07:08 +00:00
Mats Palmgren 13aaea78f8 Bug 1575560 - Make 'contain:size' not apply to inline-table boxes. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D42891

--HG--
extra : moz-landing-system : lando
2019-08-21 15:04:02 +00:00
Thomas Nguyen 32ab8293ff Bug 1528697 - Expose ReferrerPolicy.webidl and use referrerpolicy enum r=smaug
ReferrerPolicy gets tossed back and forth as a uint32_t and
ReferrerPolicy enum in header file. Expose ReferrerPolicyValues from
webidl file and use consistently in native code.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 13:24:45 +00:00
Frédéric Wang 7a6019b9e2 Bug 1574750 - Remove support for MathML length values thinmathspace, mediummathspace, thickmathspace, etc. r=emilio
See https://github.com/mathml-refresh/mathml/issues/75
and https://groups.google.com/forum/#!topic/mozilla.dev.platform/yEMdIOo4i-0

This commit introduces a new preference option
mathml.mathspace_names.disabled to disable *mathspace names for MathML lengths.
For now, these are only disabled in Nightly builds.

* test_bug553917.html is updated to check that these values now cause an
  error message to be logged into the console when mathsize names are used
  and the feature disabled.
* mathml-negativespace-ref.html and positive-namedspace.html verify support for
  mathspace names, so force running them with the support enabled.
* The reference files for mo-lspace-rspace-2.html, mo-lspace-rspace-3.html,
  mo-lspace-rspace.html, op-dict-8.html and op-dict-9.html use explicit
  lspace/rspace attributes corresponding to the one read from the operator
  dictionary. Instead of running them with mathspace names enabled, use the
  equivalent em values from core
  https://mathml-refresh.github.io/mathml-core/#operator-dictionary
  See https://github.com/mathml-refresh/mathml/issues/75#issuecomment-523016332
* Force WPT tests
  mathml/presentation-markup/fractions/frac-linethickness-002.html and
  mathml/relations/css-styling/lengths-2.html to be run with the features
  disabled and remove corresponding failure expectation.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 12:56:30 +00:00
Coroiu Cristina f2e9770b54 Backed out 3 changesets (bug 1573249) for chrome failures at layout/inspector/tests/chrome/test_fontFaceGeneric.xul on a CLOSED TREE
Backed out changeset bdba80dae6e2 (bug 1573249)
Backed out changeset 21306e3f8d31 (bug 1573249)
Backed out changeset 3576d5b9f2db (bug 1573249)
2019-08-21 14:01:11 +03:00
Sylvestre Ledru 7759b614e2 Bug 1575249 - Ride along: remove +x permissions on source files r=Ehsan
Depends on D42672

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

--HG--
extra : moz-landing-system : lando
2019-08-21 09:57:03 +00:00
Jonathan Kew c08c7f523b Bug 1573249 - patch 3 - Add reftests for ignoring skip-ink behavior on CJK text. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D42683

--HG--
extra : moz-landing-system : lando
2019-08-21 09:39:02 +00:00
Jonathan Kew 2898eb876f Bug 1573249 - patch 2 - Don't apply skip-ink to runs of CJK text, because it looks bad with many fonts. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D42529

--HG--
extra : moz-landing-system : lando
2019-08-21 09:39:02 +00:00
Jonathan Kew 64239ebc50 Bug 1573249 - patch 1 - Clean up some management of the GlyphRun array in gfxTextRun. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D42528

--HG--
extra : moz-landing-system : lando
2019-08-20 18:06:13 +00:00
Dan Glastonbury 41fff20f69 Bug 1571612 - P2: Collect flush req and flush telemetry. r=heycam
Collect telemetry for the number of pending style and layout flush requests per
flush and the number of style and layout flushes per nsRefreshDriver::Tick.  A
style flush reports only style requests, but a layout flush reports style and
layout requests since flushing layout implies a style flush also.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 01:43:30 +00:00
Dan Glastonbury d87e8fd612 Bug 1571612 - P1: Split FlushType::Style and FlushType::Frame. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D40755

--HG--
extra : moz-landing-system : lando
2019-08-07 03:51:20 +00:00
Ting-Yu Lin 0958d8ea88 Bug 1575305 Part 4 - Improve column set log. r=dbaron
1. Add `this` to the log so that it's easier to debug a nested column
balancing

2. Print the struct fields the same as their names.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 00:25:07 +00:00
Ting-Yu Lin 913e451679 Bug 1575305 Part 3 - Initialize colBSize with available block-size when column-span is enabled. r=dbaron
nsBlockFrame already prepares the available block-size for
ColumnSetFrame with ColumnSetWrapper's block-size and max-block-size
applied. (ColumnSet's computed block-size and max block-size is always
unconstrained when column-span is enabled.)

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

--HG--
extra : moz-landing-system : lando
2019-08-21 00:24:09 +00:00
Ting-Yu Lin 6df1d8db45 Bug 1575305 Part 2 - Remove the unused border-padding variable in nsBlockFrame::FindBestBalanceBSize(). r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D42709

--HG--
extra : moz-landing-system : lando
2019-08-21 00:24:00 +00:00
Ting-Yu Lin c44acb8e9f Bug 1575305 Part 1 - Remove an unneeded condition used for ::-moz-column-content. r=dbaron
Before bug 1411422, a ::-moz-column-content has height:100%, so it could
go into this path if ColumnSet's available block-size is unconstrained.

However, after bug 1411422, height:100% was removed for
::-moz-column-content. That is, its computed block-size is
unconstrained, so it can't go into this path. This applies regardless of
whether column-span is enabled or not.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 22:29:55 +00:00
Daniel Holbert 07da11b14a Bug 1574031: Turn off text-decoration-skip-ink for intermittently mismatching section of reftest decoration-style-standards.html. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D42707

--HG--
extra : moz-landing-system : lando
2019-08-20 21:30:27 +00:00
Mats Palmgren dd5a04bc1d Bug 1574552 - Push float/abs.pos. CB for 'block ruby' as needed. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D42701

--HG--
extra : moz-landing-system : lando
2019-08-20 21:28:01 +00:00
singuliere 2fc69f08bc Bug 1526447 - remove unused NS_STYLE_GRID_REPEAT_* macros r=boris
Remove unused NS_STYLE_GRID_REPEAT_* macro definitions.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 17:53:16 +00:00
Mats Palmgren acbd6a2b96 Bug 1574994 part 2 - Remove display:-moz-inline-grid/-moz-inline-stack. r=emilio
Depends on D42551

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

--HG--
extra : moz-landing-system : lando
2019-08-19 21:19:04 +00:00
Mats Palmgren 2525944e34 Bug 1574994 part 1 - Remove/replace display:-moz-inline-grid and -moz-inline-stack in tests. r=emilio
I replaced the values with -moz-inline-box in the crashtests
rather than removing them.  I think they are still valuable
after replacing the display value.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 21:19:04 +00:00
Jonathan Kew 59bf0bb933 Bug 1574927 - Account for the advance of (otherwise-ignored) vertical-upright glyph runs when collecting skip-ink intercepts. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D42527

--HG--
extra : moz-landing-system : lando
2019-08-19 21:54:12 +00:00
Botond Ballo 4232079a25 Bug 1565525 - Add helper functions to make working with Maybe<Matrix> easier. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D42564

--HG--
extra : moz-landing-system : lando
2019-08-20 06:36:01 +00:00
Frédéric Wang 926e8f6c74 Bug 1575167 - Export MathML mathcolor, mathbackground and displaystyle reftests to WPT. r=emilio
These are only file renaming, metadata/comments addition, changing the way
Ahem is included and other minor formatting changes. The MathML tests itself
are not modified.

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

--HG--
rename : layout/reftests/mathml/displaystyle-1-ref.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-011-ref.html
rename : layout/reftests/mathml/displaystyle-1.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-011.html
rename : layout/reftests/mathml/displaystyle-2-ref.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-012-ref.html
rename : layout/reftests/mathml/displaystyle-2.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-012.html
rename : layout/reftests/mathml/displaystyle-3-ref.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-013-ref.html
rename : layout/reftests/mathml/displaystyle-3.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-013.html
rename : layout/reftests/mathml/displaystyle-4-ref.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-014-ref.html
rename : layout/reftests/mathml/math-display-ref.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-015-ref.html
rename : layout/reftests/mathml/math-display.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-015.html
rename : layout/reftests/mathml/mathbackground-1-ref.xml => testing/web-platform/tests/mathml/relations/css-styling/mathbackground-001-notref.html
rename : layout/reftests/mathml/mathbackground-2-ref.xml => testing/web-platform/tests/mathml/relations/css-styling/mathbackground-002-notref.html
rename : layout/reftests/mathml/mathbackground-3-ref.xml => testing/web-platform/tests/mathml/relations/css-styling/mathbackground-003-notref.html
rename : layout/reftests/mathml/mathbackground-4-ref.xml => testing/web-platform/tests/mathml/relations/css-styling/mathbackground-004-notref.html
rename : layout/reftests/mathml/mathcolor-1-ref.xml => testing/web-platform/tests/mathml/relations/css-styling/mathcolor-001-notref.html
rename : layout/reftests/mathml/mathcolor-2-ref.xml => testing/web-platform/tests/mathml/relations/css-styling/mathcolor-002-notref.html
rename : layout/reftests/mathml/mathcolor-3-ref.xml => testing/web-platform/tests/mathml/relations/css-styling/mathcolor-003-notref.html
rename : layout/reftests/mathml/mathcolor-4-ref.xml => testing/web-platform/tests/mathml/relations/css-styling/mathcolor-004-notref.html
extra : moz-landing-system : lando
2019-08-20 11:26:44 +00:00
Frédéric Wang 9374c0be36 Bug 1574391 - Move old MathML reftests into layout/reftests/mathml. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D42276

--HG--
rename : layout/reftests/bugs/345563-sub.xhtml => layout/reftests/mathml/345563-sub.xhtml
rename : layout/reftests/bugs/345563-sup.xhtml => layout/reftests/mathml/345563-sup.xhtml
rename : layout/reftests/bugs/347348-1-ref.xhtml => layout/reftests/mathml/347348-1-ref.xhtml
rename : layout/reftests/bugs/347348-1.xhtml => layout/reftests/mathml/347348-1.xhtml
rename : layout/reftests/bugs/347496-1-ref.xhtml => layout/reftests/mathml/347496-1-ref.xhtml
rename : layout/reftests/bugs/347496-1.xhtml => layout/reftests/mathml/347496-1.xhtml
rename : layout/reftests/bugs/355548-1-ref.xml => layout/reftests/mathml/355548-1-ref.xml
rename : layout/reftests/bugs/355548-1.xml => layout/reftests/mathml/355548-1.xml
rename : layout/reftests/bugs/355548-2-ref.xml => layout/reftests/mathml/355548-2-ref.xml
rename : layout/reftests/bugs/355548-2.xml => layout/reftests/mathml/355548-2.xml
rename : layout/reftests/bugs/355548-3-ref.xml => layout/reftests/mathml/355548-3-ref.xml
rename : layout/reftests/bugs/355548-3.xml => layout/reftests/mathml/355548-3.xml
rename : layout/reftests/bugs/355548-4-ref.xml => layout/reftests/mathml/355548-4-ref.xml
rename : layout/reftests/bugs/355548-4.xml => layout/reftests/mathml/355548-4.xml
rename : layout/reftests/bugs/355548-5-ref.xml => layout/reftests/mathml/355548-5-ref.xml
rename : layout/reftests/bugs/355548-5.xml => layout/reftests/mathml/355548-5.xml
rename : layout/reftests/bugs/370692-1-ref.xhtml => layout/reftests/mathml/370692-1-ref.xhtml
rename : layout/reftests/bugs/370692-1.xhtml => layout/reftests/mathml/370692-1.xhtml
rename : layout/reftests/bugs/373533-1.xhtml => layout/reftests/mathml/373533-1.xhtml
rename : layout/reftests/bugs/373533-2.xhtml => layout/reftests/mathml/373533-2.xhtml
rename : layout/reftests/bugs/373533-3.xhtml => layout/reftests/mathml/373533-3.xhtml
rename : layout/reftests/bugs/393760-1-ref.xml => layout/reftests/mathml/393760-1-ref.xml
rename : layout/reftests/bugs/393760-1.xml => layout/reftests/mathml/393760-1.xml
rename : layout/reftests/bugs/393760-2-ref.xml => layout/reftests/mathml/393760-2-ref.xml
rename : layout/reftests/bugs/393760-2.xml => layout/reftests/mathml/393760-2.xml
rename : layout/reftests/bugs/414123-ref.xhtml => layout/reftests/mathml/414123-ref.xhtml
rename : layout/reftests/bugs/414123.xhtml => layout/reftests/mathml/414123.xhtml
extra : moz-landing-system : lando
2019-08-20 04:13:25 +00:00
Nicolas Silva 043a970708 Bug 1562091 - Add a reftest. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D42467

--HG--
extra : moz-landing-system : lando
2019-08-19 11:16:34 +00:00
Frédéric Wang 675225dd5a Bug 1574749 - Remove support for nonzero unitless lengths. r=emilio
See https://github.com/mathml-refresh/mathml/issues/24
and https://groups.google.com/forum/#!topic/mozilla.dev.platform/-yV6wb3klSA

This commit introduces a new preference option
mathml.nonzero_unitless_lengths.disabled to disable MathML nonzero unitless
values like "5" for 500%. MathML nonzero unitless are now disabled by default
but it could be easily enabled again later if we decide otherwise.

* test_bug553917.html is updated to check that these values now cause an error
  message to be logged into the console rather than a deprecated warning
  when nonzero unitless lengths are disabled.
  Additionally, the test checking invalid double dots "2..0" is updated not
  to use unitless syntax.
* The old test 355548-3.xml checks support for mathsize names and also uses
  several features that are going to be deprecated. So it is just run with
  the proper preference adjustment.
* mfrac-linethickness-2.xhtml and number-size-1.xhtml check support for
  unitless lengths so they are now run with that support enabled.
* WPT tests frac-linethickness-001.html and lengths-1.html are executed with
  the some MathML features disabled in order to make them pass.
  We get more assertion passing for the "Legacy numbers" test of
  lengths-2.html ; however there are still some issues to address
  (see bug 1574751).

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

--HG--
extra : moz-landing-system : lando
2019-08-19 17:10:58 +00:00
Frédéric Wang 526e469d17 Bug 1548527 - Remove values "small", "normal", "big" values of the mathsize attribute. r=emilio
See https://github.com/mathml-refresh/mathml/issues/7
    and https://groups.google.com/forum/#!topic/mozilla.dev.platform/kyB34PjYXek

    This commit introduces a new preference option
    mathml.mathsize_names.disabled to disable mathsize keyword values. For
    now, these are only disabled in Nightly builds.

    * test_bug553917.html is updated to check that these values now cause an
      error message to be logged into the console when mathsize names are used
      and the feature disabled.
    * The old test 355548-3.xml checks support for mathsize names and also uses
      several features that are going to be deprecated. So it is just run with
      the proper preference adjustment.
    * mathml/relations/css-styling/mathsize-attribute-legacy-values.html passes
      after this change so the test is run with the mathsize names disabled too
      and the failure expectation is removed.
    * mathml/relations/css-styling/mathsize-attribute-css-keywords.html is added
      to check that CSS keywords won't be supported when we switch to using the
      CSS parser in the future. This test passes now when the "small" keyword
      is not accepted so it is run with the mathsize names disabled too.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 18:28:03 +00:00
Emilio Cobos Álvarez f1008a9300 Bug 1480146 - Add memory reporting for the inline style cache. r=heycam
MANUAL PUSH: Splitting a stack after the fact to avoid getting the main patch backed out due to talos timeouts.

Differential Revision: https://phabricator.services.mozilla.com/D41731
2019-08-19 14:55:01 +02:00
Emilio Cobos Álvarez b726907ec7 Bug 1480146 - Add a cache for inline stylesheets without @import rules. r=heycam
Supporting @import was much more annoying (I had a patch but it became much more
complex than this), and seems other browsers don't do it either:

  https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/css/style_sheet_contents.cc?l=149&rcl=1999822baf4dc673088e65997fa07ad158f2e166
  https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/css/StyleSheetContents.cpp?rev=246490#L111

Also added a singleton perf test for <link> caching.

Maybe we should add some cache eviction here, but I'm not sure what'd be the
best policy here.

Differential Revision: https://phabricator.services.mozilla.com/D41564
2019-08-19 14:53:50 +02:00
Emilio Cobos Álvarez bfcf9b881b Bug 1574544 - Remove now-unnecessary condition that makes the frame constructor get confused with editor anonymous nodes. r=mats
This condition was needed when FindInsertionPrevSibling and co didn't understand
display: contents.

Editor is pretty broken (and calls into PresShell::ContentRemoved directly, and
incorrectly, using anonymous nodes).

In this case we were taking the XBL path because of display: contents, which
means that we tried to seek to the editor anonymous node, and crash (since it's
not an explicit kid).

Editor needs to get fixed, but this is technically more correct and fixes the
crash, so we may as well take it in the interim.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 12:16:28 +00:00
Ciure Andrei bf0253640d Backed out 2 changesets (bug 1480146) for causing inline-style-cache-1.html timeouts CLOSED TREE
Backed out changeset 8e3a8dd3189d (bug 1480146)
Backed out changeset 2bcd5ea241cd (bug 1480146)
2019-08-19 14:29:28 +03:00
Frédéric Wang 5f76ecca6e Bug 1574773 - Permafailing layout/mathml/tests/test_bug553917.html. r=emilio
Update test_bug553917 so that it does not expect invalid lengths
for "thin", "thick", "medium" when mfrac linethickness names are
allowed. This fixes failure in non-nightly builds where these
names are not disabled yet.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 07:37:08 +00:00
Masayuki Nakano cf0604278c Bug 1564639 - Make `BrowserParent` use `nsPresContext::GetRootWidget()` when handling IME related messages r=hsivonen
When contents notify IME or requests something to IME, they need to use
an `nsIWidget` instance which may have focus if active, and handles
native keyboard/IME events since that knows correct native IME context.

Currently, such widget exactly matches with the result of
`nsPresContext::GetRootWidget()`.  However, this is unclear for most developers.
Therefore, this patch creates a wrapper method of it named
`nsPresContext::GetTextInputHandlingWidget()`.  Then, also adds
`BrowserParent::GetTextInputHandlingWidget()` wraps it.  Finally, makes
`IMEStateManager` call `GetTextInputHandlingWidget()` of them.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 08:27:32 +00:00
Emilio Cobos Álvarez bc820a05a2 Bug 1480146 - Add memory reporting for the inline style cache. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D41731

--HG--
extra : moz-landing-system : lando
2019-08-17 03:13:20 +00:00
Emilio Cobos Álvarez 957c241479 Bug 1480146 - Add a cache for inline stylesheets without @import rules. r=heycam
Supporting @import was much more annoying (I had a patch but it became much more
complex than this), and seems other browsers don't do it either:

  https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/css/style_sheet_contents.cc?l=149&rcl=1999822baf4dc673088e65997fa07ad158f2e166
  https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/css/StyleSheetContents.cpp?rev=246490#L111

Maybe we should add some cache eviction here, but I'm not sure what'd be the
best policy here.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 07:52:09 +00:00
Ciure Andrei 7a76528da4 Backed out 2 changesets (bug 1533569) for causing Android and Win AArch raptors to perma fail and automation.py tier 2 perma fails CLOSED TREE
Backed out changeset 9c5be5540874 (bug 1533569)
Backed out changeset 06da212d37f5 (bug 1533569)
2019-08-17 07:40:54 +03:00
Mihai Alexandru Michis 891d20f850 Backed out 2 changesets (bug 1480146) for causing talos perf reftest to timeout in link-style-cache-1.html
Backed out changeset ff3ba7a16c21 (bug 1480146)
Backed out changeset f47314ec33ff (bug 1480146)
2019-08-17 04:48:35 +03:00
Cameron McCormack 810131e403 Bug 1533569 - Part 1: Freeze UA sheet shared memory. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D36254

--HG--
extra : moz-landing-system : lando
2019-08-16 23:45:20 +00:00
Charlie Marlow c483e30486 Bug 1573922: Part 2: adding firefox specific reftests for skip-ink r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D42241

--HG--
extra : moz-landing-system : lando
2019-08-16 22:34:18 +00:00
Frédéric Wang 7175f01408 Bug 1548529 - Remove values "thin", "thick", "medium" values of mfrac@linethickness. r=emilio
See https://github.com/mathml-refresh/mathml/issues/4
and https://groups.google.com/forum/#!topic/mozilla.dev.platform/G91-vBeC3Rw

This commit introduces a new preference option
mathml.mfrac_linethickness_names.disabled to disable linethickness names. For
now, these names are only disabled in Nightly builds. Announcements and actual
disabling of this and other MathML features will be considered later.

* test_bug553917.html is updated to check that these values now cause an error
  message to be logged into the console.
* mstyle-1.xhtml is updated to use a numeric linethickness since the point of
  the test is just to check that the attribute is not supported on mstyle, not
  about the actual attribute value.
* Other fractions tests relying on linethickness names are executed with the
  proper preference adjustment.
* mathml/presentation-markup/fractions/frac-linethickness-001.html is now
  closer to its expectation ; however the test still fails because nonzero
  unitless values are not removed yet. See
  https://github.com/mathml-refresh/mathml/issues/24

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

--HG--
extra : moz-landing-system : lando
2019-08-16 17:41:59 +00:00
Charlie Marlow c762d7b259 Bug 1574392: fix for crash caused by a zero length textblob r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D42347

--HG--
extra : moz-landing-system : lando
2019-08-16 20:57:45 +00:00
Emilio Cobos Álvarez ac2f80304e Bug 1568536 - Don't propagate viewport styles from display: none or display: contents elements. r=dholbert
Resolution is at:

 * https://github.com/w3c/csswg-drafts/issues/3779#issuecomment-481762912

Tests are at https://chromium-review.googlesource.com/c/chromium/src/+/1547974,
I'll make sure to wait until they're in the tree and ensure they're passing.

Note that we need to ensure in the frame constructor that the document element
is styled _before_ calling UpdateViewportScrollStylesOverride(). This saves
duplicated work (since ResolveStyleLazily throws away the style).

ResolveStyleLazily already returns out of date styles, unless the element is not
styled yet, or is in a `display: none` subtree, in which case it computes and
returns a new (up-to-date) style.

So the switch to the FFI call only should change behavior for the display: none
subtree case (since we ensure the unstyled case isn't hit by styling the
document earlier). But that case is one of the cases we're interested in
changing, conveniently.

Depends on D40080

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

--HG--
extra : moz-landing-system : lando
2019-08-16 11:43:36 +00:00
Emilio Cobos Álvarez a03875ef63 Bug 1568536 - Simplify some style system APIs. r=heycam
Return a raw pointer instead of a strong reference to a ComputedStyle, and
handle the case of the style not being present by returning null rather than
requiring an extra function to check it and crashing if the precondition is not
met.

Also, name them so that it's clear they just return outdated styles and don't
make any extra effort.

This is just cleanup that makes the next patch easier / more obvious.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 05:59:03 +00:00
Emilio Cobos Álvarez 479f277399 Bug 1480146 - Add memory reporting for the inline style cache. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D41731

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:25 +00:00
Emilio Cobos Álvarez c24f17aee9 Bug 1480146 - Add a cache for inline stylesheets without @import rules. r=heycam
Supporting @import was much more annoying (I had a patch but it became much more
complex than this), and seems other browsers don't do it either:

  https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/css/style_sheet_contents.cc?l=149&rcl=1999822baf4dc673088e65997fa07ad158f2e166
  https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/css/StyleSheetContents.cpp?rev=246490#L111

Also added a singleton perf test for <link> caching.

Maybe we should add some cache eviction here, but I'm not sure what'd be the
best policy here.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:23 +00:00
Emilio Cobos Álvarez a61410f8ae Bug 1571530 - Remove sheets from the <link> cache when they have been touched by CSS OM. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D41563

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:22 +00:00
Emilio Cobos Álvarez b9e6e577b3 Bug 1571530 - Move a bit of code around in Loader::LoadInlineSheet. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D41562

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:20 +00:00
Emilio Cobos Álvarez 86651be7e1 Bug 1571530 - Make PrepareSheet take a reference. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D41561

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:18 +00:00
Emilio Cobos Álvarez 919bb7ded3 Bug 1571530 - Cleanup slightly SheetComplete, and use the right boolean to notify. r=heycam
This is mostly straight-forward cleanup, but there's a behavior change which
was an oversight from bug 1386840, the regular mObservers stuff didn't pass the
right thing (was passing only mWasAlternate rather than whether it was
deferred).

I think that as a result, only in XML documents (since nsXMLContentSink is the
only thing that adds itself as a global CSS loader observer that ever looks at
this boolean), we may end up breaking this assert:

https://searchfox.org/mozilla-central/rev/9ae20497229225cb3fa729a787791f424ff8087b/dom/base/nsContentSink.cpp#183

(If there are any sheets with non-matching media queries and such).

But I couldn't find a test-case that broke it (tried SVG / XHTML), and in other
documents like pure XML you cannot specify a media query...

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:16 +00:00
Emilio Cobos Álvarez 36d3f1e1b9 Bug 1571530 - Cleanup confusing lifetime of SheetLoadData. r=heycam
Saving a refcount bump is not worth the churn. Use a proper RefPtr<>
everywhere instead of manual refcounting, and don't make DoSheetComplete call
NS_RELEASE unconditionally.

Also, make clear by using references where null is expected or not.

Also, properly use a RefPtr in mPendingDatas, since they are strong pointers,
in fact.

Finally, remove some unused macros from nsCSSValue of which this code was the
last consumer.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:09 +00:00
Emilio Cobos Álvarez 588365a846 Bug 1571530 - Don't use nsBaseHashtable in the CSS loader. r=heycam
It's a refptr hashtable, really.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:07 +00:00
Emilio Cobos Álvarez 6779b66f01 Bug 1571530 - Remove various bool arguments in sheet loader APIs. r=heycam
They're bad, specially if they do vastly different thing in overloaded
functions, like aUseSystemPrincipal and aIsPreload. :)

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:05 +00:00
Emilio Cobos Álvarez 2353359865 Bug 1571530 - Make Loader APIs return a Result. r=heycam
On the fence on this one, but I do think it's nicer.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:03 +00:00
Emilio Cobos Álvarez 353176ffe4 Bug 1571530 - Move inline sheet creation somewhere else that isn't CreateSheet. r=heycam
It doesn't do much for them.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:55:56 +00:00
Emilio Cobos Álvarez 70e10752be Bug 1571530 - Cleanup CreateSheet so that it returns its arguments rather than having outparams. r=heycam
Also, it's infallible, so no need to have an error state.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:55:54 +00:00
Emilio Cobos Álvarez 6c780690be Bug 1571530 - Factor out the stylesheet cache bits. r=heycam
Just moving code around but hopefully the new code is nicer :)

Also fix a regression I introduced in D40691 where the parsing mode wouldn't be
checked for XUL sheets.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:55:50 +00:00
Emilio Cobos Álvarez b8a075dada Bug 1554777 - Use SIZE_AVAILABLE rather than loaded to figure out whether to try to draw a border image. r=tnikkel
The current code needs to handle incomplete draws already due to async decoding,
and this prevents the race condition where we paint between the size-available
and load notifications, as the CSS image loader only invalidates for the first.

Once we try to decode the image at least once, then we'd repaint properly from
ImageLoader::OnFrameComplete.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 19:03:06 +00:00
Emilio Cobos Álvarez 4b2cd8f291 Bug 1554777 - Call SchedulePaint() rather than MarkNeedsDisplayItemRebuild() when we get the size available notification for a style image. r=mattwoodrow,tnikkel
So the issue here is that this test-case has a zero-sized border, but still with
a border-image (which we should paint).

So the first time we get here, the image is not loaded, and thus we don't get
here:

  https://searchfox.org/mozilla-central/rev/e0b0c38ee83f99d3cf868bad525ace4a395039f1/layout/painting/nsDisplayList.h#4254

Which means that we end up with zero bounds and thus we don't even get to the
border painting code.

However, when the image loads, we get to MarkNeedsDisplayItemRebuild(), but that
doesn't schedule any paint, only marks the frames as modified in order for
display items to be rebuilt _eventually_.

Thus eventually, where we force a repaint by other means, we paint correctly.

This only works in more general cases because we get to the nsImageRenderer code
which does vastly different stuff.

InvalidateFrame() seems to do the right thing and schedule a paint, so use it.
It's not clear to me which one of nsIFrame::InvalidateFrame() or
nsIFrame::SchedulePaint() we should use...

If I understand correctly, InvalidateFrame() will only do something iff there
are display items for the frame, so that should make the IsVisible() check
redundant.

Note however that I think there's still a race condition, if we get to paint in
between the SIZE_AVAILABLE notification (the one where we actually invalidate
the display items), and the LOAD notification (the one the border-image code
checks).

I'll send a separate patch for that, I think SIZE_AVAILABLE should be a
strong-enough hint and that allows us to remove nsStyleImage::IsLoaded()...

The RequestReflow stuff also looks highly suspicious... shape-outside
sync-decodes, and it seems we could end up invalidating reflow from the reflow
code...

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

--HG--
extra : moz-landing-system : lando
2019-08-15 19:03:18 +00:00
Emilio Cobos Álvarez bb6b92b5f7 Bug 1574179 - Simplify <img align> rules in quirks.css. r=jfkthame
It seems to me that it should be equivalent, and we don't need to do
directionality-dependent stuff. align=right and align=left map to the physical
values anyway:

  https://searchfox.org/mozilla-central/rev/3366c3d24f1c3818df37ec0818833bf085e41a53/dom/html/nsGenericHTMLElement.cpp#1165

This also matches Chromium:

  https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/html/resources/quirks.css?l=26&rcl=e019448580f331c4c7c756271843d1bcf27e0071

(Modulo the case-insensitivity)

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

--HG--
extra : moz-landing-system : lando
2019-08-15 19:26:02 +00:00
Mats Palmgren 22f32f1001 Bug 1574107 - Remove nsIFrame::IsBlockInside since it's dead code. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D42088

--HG--
extra : moz-landing-system : lando
2019-08-16 06:29:59 +00:00
Mats Palmgren 1f1f009b71 Bug 1574060 - Implement layout for 'display: flow-root list-item'. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D42087

--HG--
extra : moz-landing-system : lando
2019-08-16 06:30:24 +00:00
Frédéric Wang 3aec893f88 Bug 1574087. Make MathML length, dir, display, displaystyle and mathvariant case insensitive. r=emilio
See https://github.com/mathml-refresh/mathml/issues/22

* mathml/relations/css-styling/attribute-mapping-001.html (length, dir)
* mathml/relations/html5-tree/display-1.html (display)
* mathml/relations/css-styling/displaystyle-1.html (displaystyle)
* mathml/relations/css-styling/displaystyle-2.html (displaystyle)
* mathml/relations/css-styling/mathvariant-case-sensitivity.html (mathvariant)

layout/reftests/bugs/355548-3.xml has been updated now that units are case
insensitive.

Note:
* mathml/relations/css-styling/attribute-mapping-002.html also checks
  case insensitiveness of mathvariant and displaystyle but for now we map
  these attributes to internal -moz-* CSS properties.
* mathcolor and mathbackground values are already case insensitive, this
  is verified by mathml/relations/css-styling/attribute-mapping-001.html

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

--HG--
extra : moz-landing-system : lando
2019-08-15 18:44:36 +00:00
Nicholas Nethercote 14e8c9129a Bug 1573720 - Convert layers.force-active to a static pref. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D41916

--HG--
extra : moz-landing-system : lando
2019-08-15 05:30:37 +00:00
Emilio Cobos Álvarez d8298290d7 Bug 1574101 - Use the right parent frame for `block ruby` if it's out of flow. r=mats
I should've caught this when reviewing, in fairness.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 22:21:35 +00:00
Daniel Holbert 0a772dbcbb Bug 1574310: clang-reformat the layout directory. (no review, just doing automated reformatting)
This patch is auto-generated by the following command:
./mach clang-format -p layout/

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

--HG--
extra : moz-landing-system : lando
2019-08-15 22:13:49 +00:00
Noemi Erli 7244716bb5 Backed out changeset 4d8eb840fc2e (bug 1574101) so it can reland without unrelated reformatting changes r=dholbert CLOSED TREE 2019-08-16 01:00:14 +03:00
Emilio Cobos Álvarez ad39790be6 Bug 1574101 - Use the right parent frame for `block ruby` if it's out of flow. r=mats
I should've caught this when reviewing, in fairness.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 21:14:34 +00:00