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

69648 Коммитов

Автор SHA1 Сообщение Дата
Daniel Holbert c66b95d09e Bug 1565384 part 1: When an embedded SVG document has an aspect-ratio change, trigger a reflow if 'object-fit' is set on the embedding element. r=emilio
If the embedding element uses `object-fit`, then that indicates it's precisely
positioning and/or sizing the embedded SVG document's viewport to fit inside
the embedding element's content area.  So, when the internal SVG viewBox
changes, then the embedding element needs to redo that positioning/sizing.  For
now, this specifically requires a reflow (and in particular, the nsViewManager
adjustments at the end of nsSubDocumentFrame::Reflow).

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

--HG--
extra : moz-landing-system : lando
2019-07-17 00:58:57 +00:00
Daniel Holbert f3d02f7eee Bug 1565384 part 0: Remove some single-use helper-variables that don't add value. r=emilio
This patch doesn't affect behavior; it's just minor code cleanup.

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

--HG--
extra : moz-landing-system : lando
2019-07-17 00:49:53 +00:00
Emilio Cobos Álvarez d146066640 Bug 1561794 - Do not to crop display text of themed comboboxes due to padding. r=dbaron
This is a potential fix that I thought it was worth doing rather than
implementing Blink's platform-dependent silliness. This ensures that the display
frame always has enough space to display itself.

Note that it may still get clipped, if there's no room for both the display
frame and the button.

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

--HG--
extra : moz-landing-system : lando
2019-07-16 23:11:42 +00:00
Bogdan Tara ca45889546 Backed out 9 changesets (bug 1523638) for browser_contextmenu.js failures CLOSED TREE
Backed out changeset 0a584a07b696 (bug 1523638)
Backed out changeset 8c5af2289900 (bug 1523638)
Backed out changeset 40ed1bd64b09 (bug 1523638)
Backed out changeset 9a99a0391979 (bug 1523638)
Backed out changeset 07fb4748b91a (bug 1523638)
Backed out changeset 49047c3ebae9 (bug 1523638)
Backed out changeset d606d072126c (bug 1523638)
Backed out changeset 76dc1937fc77 (bug 1523638)
Backed out changeset c784c14b5d5d (bug 1523638)
2019-07-16 23:40:47 +03:00
Lee Salzman 81469e4765 Bug 1566449 - Don't reverse glyphs in GlyphBuffer for RTL. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D38190

--HG--
extra : moz-landing-system : lando
2019-07-16 19:23:40 +00:00
Bogdan Tara 05d1beaf67 Backed out changeset f69f242281a4 (bug 1566449) for regtests failing because of reftest.list CLOSED TREE 2019-07-16 22:06:42 +03:00
Nika Layzell 89d26ca7eb Bug 1523638 - Part 9: Use provided 'WindowGlobalChild' actors to create the initial about:blank document, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37656

--HG--
extra : moz-landing-system : lando
2019-07-16 18:47:56 +00:00
Lee Salzman e979d8d858 Bug 1566449 - Don't reverse glyphs in GlyphBuffer for RTL. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D38190

--HG--
extra : moz-landing-system : lando
2019-07-16 17:24:10 +00:00
Mirko Brodesser 1669cc6770 Bug 1566046: rename `GetParentOrHostNode` to `GetParentOrShadowHostNode`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D38078
2019-07-16 09:25:02 +02:00
Noemi Erli 2f99f5d875 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-07-16 00:48:17 +03:00
Noemi Erli af897e281a Merge inbound to mozilla-central. a=merge 2019-07-16 00:42:51 +03:00
Emilio Cobos Álvarez 6ef01a0d95 Bug 1554572 - Don't apply scroll anchor adjustments if we're processing an async scroll animation. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D38077

--HG--
extra : moz-landing-system : lando
2019-07-15 17:48:16 +00:00
Emilio Cobos Álvarez 1a121e2e21 Bug 1546027 - Don't apply scroll anchor adjustments if we're restoring our scroll position. r=dholbert
Since scroll position restoration is absolute, and we'll lose it as soon as we
apply any adjustment or do any other sort of scrolling.

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

--HG--
extra : moz-landing-system : lando
2019-07-15 17:46:11 +00:00
Mirko Brodesser 2f40f072ab Bug 1565584: move `nsIContentUtils::ContentIsDescendantOf` to `nsINode::IsInclusiveDescendantOf`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D37880
2019-07-15 10:02:21 +02:00
Chris Pearce d022cd1e54 Bug 1351924 - Keep separate flags for whether block-size has changed and whether percentages derived from the block-size have changed, and make better decisions about what needs reflow. r=dholbert
This reduces a bit of code complexity, fixes bugs where we weren't
reflowing enough, and optimizes additional cases that we couldn't
optimize in the past.

Co-authored-by: Chris Pearce <cpearce@mozilla.com>
Co-authored-by: L. David Baron <dbaron@dbaron.org>

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

--HG--
extra : moz-landing-system : lando
2019-07-14 01:04:31 +00:00
L. David Baron e91086dae1 Bug 1351924 - Add reftests for correctness bug fixed by this bug. r=dholbert
Co-authored-by: L. David Baron <dbaron@dbaron.org>
Co-authored-by: Chris Pearce <cpearce@mozilla.com>

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

--HG--
extra : moz-landing-system : lando
2019-07-14 01:04:29 +00:00
Jeff Muizelaar 00f87f386d Bug 1564655. blob: Make the recording use absolute coordinates. r=nical
Currently items are painted with a context that has a transform of
-mLayerBounds.TopLeft().  This means that if TopLeft() changes the commands
will be in the wrong place because the -TopLeft() offset is baked into the
recording.

I don't think we've ever needed to support painting without this transformed
baked in so there were some infrastructure changes that needed to be made to
make this possible. Most of the problems come from the use of
gfxContext::GetClipExtents which expose the bounds of the underlying surface.
The biggest of these was fixed by the CreateClippedDrawTarget rewrite. The rest
should be handled by ensuring that the DrawTarget has bounds that are at least
as big as the union of the individual item bounds. i.e. GetClipExtents should
never intersect with bounds of the item.

This change has a couple of parts:

1. Store mLayerBounds.TopLeft() in the recording so that it will be subtracted
during replay

2. Use mLayerBounds as the Rect of the RecordingDrawTarget

3. Don't include mLayerBounds.TopLeft() in the transform during recording.

4. Adjust the dirty rect by recordingOrigin before we use it as a clip so that
it stays in the right place.

5. In PaintContainerItem the bounds parameter of PushLayer is in device space
so we need to account for the shift in the location of device space in the
DrawTargetRecording.

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

--HG--
extra : moz-landing-system : lando
2019-07-14 00:02:03 +00:00
longsonr 7cf71757bf Bug 1353164 Part 1 - Remove dominant-baseline values that no longer exist r=heycam 2019-07-13 15:35:08 +01:00
Boris Chiou e801f9fefa Bug 1562086 - Add percentage for opacity (i.e. <alpha-value>). r=emilio
The following properties accept <alpha-value> [1], which is
"<number> | <percentage>", so we update the parser, spec links, and
their web-platform-tests.
1. opacity
2. flood-opacity
3. fill-opacity
4. stroke-opacity
5. stop-opacity
6. -moz-window-opacity

Besides, shape-image-threshold [2] still only accepts <number>, so we need
to support a different version of `Opacity::parse()`.

[1] https://drafts.csswg.org/css-color/#typedef-alpha-value
[2] https://drafts.csswg.org/css-shapes/#shape-image-threshold-property

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

--HG--
extra : moz-landing-system : lando
2019-07-12 19:49:32 +00:00
L. David Baron 97a432f01b Bug 1564649 - Reflow all columns when a multicol with non-auto block-size balances its columns at a different block-size. r=TYLin
Depends on D37516

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

--HG--
extra : moz-landing-system : lando
2019-07-12 20:24:46 +00:00
L. David Baron 3ca65b5216 Bug 1564649 - Add reftest. r=TYLin
Depends on D37515

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

--HG--
extra : moz-landing-system : lando
2019-07-12 20:24:44 +00:00
L. David Baron e7834460f9 Bug 1564649 - Remove a duplicate variable where we had two variables for the same thing, and a little related cleanup. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D37515

--HG--
extra : moz-landing-system : lando
2019-07-12 20:24:41 +00:00
Emilio Cobos Álvarez c9636ae2ea Bug 1486541 - Turn assertion back into a non-fatal assertion. r=jfkthame
It doesn't seem we're going to work on fixing this in the near term.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 22:09:17 +00:00
Emilio Cobos Álvarez f629931392 Bug 1565690 - When inferring an aspect ratio from an image's width and height attribute, only honor it if we don't have the real image aspect-ratio. r=dholbert
Since people like to get wrong attribute values on their images (see the
regressions from bug 1547231).

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

--HG--
extra : moz-landing-system : lando
2019-07-12 21:47:49 +00:00
Emilio Cobos Álvarez 9fa0ebbc44 Bug 1528180 - Don't align scroll offsets to layer pixels when using WebRender. r=tnikkel
This position is only invalidated from FrameLayerBuilder, that's not a very good
signal.

This would get out of sync when using WebRender, and APZ messages will send
sub-pixel scroll positions that will get wrongly adjusted, causing small scroll
offsets which scroll anchoring would incorrectly try to correct, which is the
ultimate cause of the jittering.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 20:04:16 +00:00
Edwin Gao 29f92afa77 Bug 1562745 - Make OSX10.14 debug tests actually use debug builds. r=jmaher
As far as I can tell, the intermittent suite_start failures are due to
stdout/stderr output interleaving -- a known issue for reftest logging,
without a clear way forward. Let's work around it the same way we did
on Windows.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 16:18:20 +00:00
Andreas Pehrson 8a56ba7a99 Bug 1560979 - Account for video element's intrinsic size in CanvasRenderingContext2D::DrawImage. r=jib,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D35782

--HG--
extra : moz-landing-system : lando
2019-07-12 12:46:03 +00:00
Emilio Cobos Álvarez b2494dc0fa Bug 1457628 - Remove broken rule for the file input button. r=jfkthame
Inheriting block-size is just plain wrong in presence of calc or percentages.

The layout without these rules also matches other browsers, so I see no reason
not to do this.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 10:10:43 +00:00
Calixte Denizet 7700f1ee15 Bug 1565274: Remove self inclusion from nsPageSequenceFrame.h r=dholbert
nsPageSequenceFrame.h includes itself.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 21:37:27 +00:00
Gurzau Raul c99bec025b Backed out changeset 13b62d64e105 (bug 1457628) for reftest failures at /forms/input/file/button-height.html on a CLOSED TREE.
--HG--
extra : rebase_source : 0322d1819c6bb5f1b86cb98c65889949d89f2b3d
extra : histedit_source : fa4c921ec16cb24154c9543ae6ff85502fa19aa7
2019-07-12 06:31:29 +03:00
Ting-Yu Lin 57a98efc97 Bug 1565037 Part 5 - Rename aBottomEdgeOfChildren to aBEndEdgeOfChildren in methods' declaration. r=dholbert
Their definitions already use aBEndEdgeOfChildren.

Depends on D37626

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

--HG--
extra : moz-landing-system : lando
2019-07-11 18:43:48 +00:00
Ting-Yu Lin 1d40e7045d Bug 1565037 Part 4 - Rename aContentBSize to aBEndEdgeOfChildren. r=dholbert
As described in https://bugzilla.mozilla.org/show_bug.cgi?id=1562122#c5,
this precomputed argument is not our children's block-size, but is the
block-end edge of children because aState.mBCoord is initialized as our
border-padding block-start in BlockReflowInput's constructor.

I also delete the sentence "The final block-size that is used in
aMetrics will be set ..." because this is the implementation details of
this function, and is likely to become inaccurate after considering the
block split by column-span.

Depends on D37625

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

--HG--
extra : moz-landing-system : lando
2019-07-11 18:43:35 +00:00
Ting-Yu Lin 271347c543 Bug 1565037 Part 3 - Cache our children's reflow status, and use it to guide the morphing into our reflow status. r=dholbert
Because aStatus is also used as an output argument, caching aStatus as
our children's reflow status can and make the logic that morphs aStatus
to our reflow status easier to follow. And this helps the patch I'm
going to add for computing the block-size for column-span split.

Depends on D37624

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

--HG--
extra : moz-landing-system : lando
2019-07-11 18:50:14 +00:00
Ting-Yu Lin b0c5d5ce8d Bug 1565037 Part 2 - Change aStatus to a reference for ComputeFinalBSize(). r=dholbert
We usually use reference to manipulate nsReflowStatus like in Reflow().

The documentation for aStatus needs edit, and is done in next part.

Depends on D37623

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

--HG--
extra : moz-landing-system : lando
2019-07-11 18:43:23 +00:00
Ting-Yu Lin a051547c37 Bug 1565037 Part 1 - Make nsBlockFrame::ComputeFinalBSize() return the final block size. r=dholbert
ComputeFinalBSize() doesn't need to modify the final inline-size, so we
don't need to pass the entire LogicalSize into it.

Also, aReflowInput.AvailableBSize() is used multiple times. Cache it to
shorten some statements.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 18:43:14 +00:00
Emilio Cobos Álvarez 876daf8a87 Bug 1565214 - scroll-margin properties shouldn't apply to first-line / first-letter. r=boris
From https://drafts.csswg.org/css-scroll-snap-1/#placement:

> None of the properties in this module apply to the ::first-line and
> ::first-letter pseudo-elements.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 23:06:59 +00:00
Emilio Cobos Álvarez 85c5fe106f Bug 1565214 - Don't apply property restrictions to pseudo-elements in UA stylesheets. r=boris
And remove some of the ::placeholder and ::cue hacks where we need to use
!important to make the property not apply for content but apply on UA sheets.

The comment about the white-space property was wrong, we don't enforce it with
!important in the UA stylesheets for <input> (we do for <textarea> though), so
I've kept the flag since it really applies.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 23:06:41 +00:00
Emilio Cobos Álvarez 609a5a9af0 Bug 1457628 - Remove broken rule for the file input button. r=jfkthame
Inheriting block-size is just plain wrong in presence of calc or percentages.

The layout without these rules also matches other browsers, so I see no reason
not to do this.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 18:34:33 +00:00
Emilio Cobos Álvarez 2189015730 Bug 1565129 - Re-introduce plain_text.wrap_long_lines. r=bzbarsky
Looks like some users use it, and it's not too much effort to support. This is
somewhat simpler, and IMO better than what existed before bug 1514655 because:

 * It doesn't regress bidi rendering when the pref is disabled (before, the pref
   would prevent plaintext.css from applying altogether).

 * It's consistent with the way view-source docs work.

 * It doesn't use non-standard stylesheet APIs to toggle the stylesheet
   (bug 1260720).

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

--HG--
extra : moz-landing-system : lando
2019-07-11 18:49:50 +00:00
Bogdan Tara fa0329b09b Backed out changeset 6f468ad73df2 (bug 1565129) for causing leaks CLOSED TREE 2019-07-11 21:00:59 +03:00
Emilio Cobos Álvarez f75dd725f5 Bug 1565129 - Re-introduce plain_text.wrap_long_lines. r=bzbarsky
Looks like some users use it, and it's not too much effort to support. This is
somewhat simpler, and IMO better than what existed before bug 1514655 because:

 * It doesn't regress bidi rendering when the pref is disabled (before, the pref
   would prevent plaintext.css from applying altogether).

 * It's consistent with the way view-source docs work.

 * It doesn't use non-standard stylesheet APIs to toggle the stylesheet
   (bug 1260720).

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

--HG--
extra : moz-landing-system : lando
2019-07-11 16:32:08 +00:00
Boris Zbarsky 374137e8d8 Bug 1565767 part 5. Remove some unnecesary refcounting at nsIContent::GetBaseURI callsites. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D37973

--HG--
extra : moz-landing-system : lando
2019-07-15 18:29:05 +00:00
Emilio Cobos Álvarez 6aa7507e81 Bug 1543599 - Don't suppress scroll anchoring adjustments when switching display to `none`. r=dholbert
Since that means that we won't suppress them when switching display back (since
we have no frame to pull the old style from).

We may want to match Chrome more exactly and don't do this any time `display`
changes (which if I'm reading their code correctly is what they do...).

But for now I've done the minimal thing and added a test.

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

--HG--
extra : moz-landing-system : lando
2019-07-15 17:53:20 +00:00
Ting-Yu Lin 15be167a5b Bug 1547391 - Add a crashtest for multicol <details> containing a column-span. r=dbaron
Bug 1562701 fixed this crash.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 05:33:09 +00:00
Ting-Yu Lin 8cb470b2bb Bug 1562701 - Move the reframing logic of <details> element into WipeContainingBlock. r=dbaron
We don't need to treat a details frame as if it has multiple content
insertion points in order to reframe it. We can just put the logic into
WipeContainingBlock().

The reftests layout/reftests/details-summary/dynamic-add-*.html also
cover adding <summary> into a <details> in various situations.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 05:34:24 +00:00
Kartikaya Gupta 75c7f2f802 Bug 1559389 - Support renderroot attributes on XUL elements that generate nsFlexContainer frames. r=mattwoodrow
Depends on D37504

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

--HG--
extra : moz-landing-system : lando
2019-07-11 00:15:46 +00:00
Eitan Isaacson bcded9c5ff Bug 697836 - Use system's link color and create new visited link color in HC mode. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D33540

--HG--
extra : moz-landing-system : lando
2019-07-10 21:46:21 +00:00
Boris Chiou 4ad09ccda8 Bug 1559276 - Part 2: Retire the support for 3-valued syntax for position. r=emilio
According to this resolved spec issue:
https://github.com/w3c/csswg-drafts/issues/2140,
we retire the 3-valued <position> on
1. `object-position`
2. `perspective-origin`,
3. `mask-position`
4. `circle()` and `ellipse()`
, but still keep the support for `background-position`.

Besides, I simply run this python script to generate the .ini file:
```
s = sys.argv[1] + ".ini"
with open(s, "w") as f:
    f.write('[{}]\n'.format(sys.argv[1]))
    f.write('  expected: FAIL\n')
    f.write('  bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1559276\n')
```

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

--HG--
extra : moz-landing-system : lando
2019-07-10 20:25:25 +00:00
Boris Chiou 1f9cb879fe Bug 1559276 - Part 1: Avoid using 3 valued syntax for position. r=emilio
Update the existing reftests to not use 3 valued syntax.

I run the script to update the syntax in
`layout/reftests/w3c-css/submitted/images3/*`,
`layout/reftests/w3c-css/submitted/masking/*`,
`layout/reftests/xul/*`, and
`layout/reftests/webm-video/*`:
```
function rename() {
    find layout/reftests/\
         -type f\
         ! -path "./obj*"\
         ! -path "./.git"\
         ! -path "./.hg"\
         \( -name "*.html" -or\
            -name "*.xul" \)\
            -exec sed -i -e "s/$1/$2/g" "{}" \;
}

rename "object-position: top 3px center" "object-position: top 3px left 50%"
rename "object-position: center right 25%" "object-position: top 50% right 25%"
```

For `layout/reftests/svg/svg-integration/clip-path/*`, I just manually
update them.

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

--HG--
extra : moz-landing-system : lando
2019-07-10 20:25:23 +00:00
Brendan Dahl 28dcf95b41 Bug 1557371 - Part 2 - Load all XUL crashtests with chrome privilege. r=dbaron
386947-1.xul, now has one assertion since we take a different code
path with chrome URL's and XBL files. The assertion is triggered since the
binding is invalid.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 19:40:42 +00:00
Kartikaya Gupta 35830d3dc7 Bug 1564929 - Stop needless round-trip to fake app units. r=Gankro
Also move the impl to the .cpp file to avoid expensive rebuilds when it
is modified.

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

--HG--
extra : moz-landing-system : lando
2019-07-10 17:24:32 +00:00
Barret Rennie ec0381b4fc Bug 1289211 - Rename InfallibleTArray to nsTArray in layout/ r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D36963

--HG--
extra : moz-landing-system : lando
2019-07-10 03:31:59 +00:00
Boris Zbarsky 5062731c15 Bug 1565688. Remove unused IOService arg from NS_NewURI. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D37968

--HG--
extra : moz-landing-system : lando
2019-07-15 13:39:51 +00:00
Emilio Cobos Álvarez 6cb6a39607 Bug 1564366 - Update animations when a pseudo-element had animations but no longer has, and has been re-framed in the meantime. r=birtles
This is the easy fix.

The hard fix (outlined in the comment) would be nice, but I don't think this bug
alone justifies it.

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

--HG--
extra : moz-landing-system : lando
2019-07-16 15:42:08 +00:00
Thomas Nguyen fc05893051 Bug 1546334 - Use referrerInfo in style system. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D36478

--HG--
extra : moz-landing-system : lando
2019-07-16 11:43:56 +00:00
Thomas Nguyen d6097dcd38 Bug 1546334 - Store separate referrerInfo in SheetLoadData and StyleSheetInfo r=heycam
The referrerInfo in SheetLoadData and StyleSheetInfo should be
different. One is used to load a style sheet and the other is used to
load resources referenced by a style sheet.

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

--HG--
extra : moz-landing-system : lando
2019-07-16 11:43:39 +00:00
Thomas Nguyen 8ddc35d9e5 Bug 1546334 - Use referrerInfo in URLExtraData r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D36476

--HG--
extra : moz-landing-system : lando
2019-07-16 11:43:25 +00:00
Thomas Nguyen 2376337c41 Bug 1546334 - Modify URLExtraData rust debug to include referrerInfo r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D36475

--HG--
extra : moz-landing-system : lando
2019-07-16 15:03:40 +00:00
L. David Baron 2168126e68 Bug 1564308 - Always reflow all row groups and rows if we're doing visibility:collapse adjustments. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D37467

--HG--
extra : moz-landing-system : lando
2019-07-10 06:49:17 +00:00
L. David Baron 55e633a669 Bug 1564308 - Add reftest. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D37466

--HG--
extra : moz-landing-system : lando
2019-07-10 06:41:14 +00:00
Mihai Alexandru Michis 03d85b3cba Bug 1553971 - Disable crashtests/1546255.html for frequent failures on android 7 opt r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D37254

--HG--
extra : moz-landing-system : lando
2019-07-10 11:00:10 +00:00
Brendan Dahl 84f1f82f3d Bug 1557371 - Part 1 - Load all XUL reftests with chrome privilege. r=dbaron
This will have two benefits:

1) Align test setup with shipping Firefox - We don't allow content
privilege XUL in shipping versions of Firefox, so having the tests be
chrome would be more realistic to our use case.

2) Support the XUL to XHTML migration. These files will soon become XHTML
files, but will still need to load XUL elements, so they'll need to be
marked as chrome privileged to continue working.

One test (404149-1.xul) is now disabled, since it fails when loaded as
chrome. Bug 1557383 was filed to address this.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 19:40:33 +00:00
Dorel Luca 3722ba31a0 Backed out 2 changesets (bug 1564308) for Crashtest failures in reftest/tests/layout/generic/crashtests/421671.html
Backed out changeset 514565e608cb (bug 1564308)
Backed out changeset cb68677410a5 (bug 1564308)

--HG--
extra : rebase_source : 0c953f053eb8bed51982f42dea8af4c4eb35c9b6
2019-07-10 06:55:32 +03:00
L. David Baron 8491192c19 Bug 1564308 - Always reflow all row groups and rows if we're doing visibility:collapse adjustments. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D37467

--HG--
extra : moz-landing-system : lando
2019-07-09 23:03:40 +00:00
L. David Baron dd5165f4e3 Bug 1564308 - Add reftest. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D37466

--HG--
extra : moz-landing-system : lando
2019-07-09 23:02:10 +00:00
Emilio Cobos Álvarez c17be889ab Bug 1218456 - Remove nsILinkHandler. r=smaug
Interfaces with just one implementation don't seem very useful.

Differential Revision: https://phabricator.services.mozilla.com/D37406
2019-07-09 23:08:05 +02:00
Emilio Cobos Álvarez 28801c9e84 Bug 1218456 - Allow navigating when there's no pres context. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D37404
2019-07-09 23:07:29 +02:00
Emilio Cobos Álvarez e3e0740224 Bug 1472546 - Make the RecomputePosition optimization work on vertical-rl writing-modes. r=jfkthame
It wasn't working because it was testing inline size == NS_UNCONSTRAINEDSIZE
rather than block size, so it was taking always the reflow path.

The attached test is on par with the vertical-lr / horizontal-tb cases with
this patch, but takes way over 10s without it.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 20:38:45 +00:00
Dorel Luca 9925ca654c Backed out 5 changesets (bug 1218456) for Crashtest failures on dom/l10n/tests/mochitest/dom_localization/test_overlay.html. CLOSED TREE
Backed out changeset 31afe89c2d42 (bug 1218456)
Backed out changeset 8bd57ebc4528 (bug 1218456)
Backed out changeset e5d37afff36a (bug 1218456)
Backed out changeset e3da86278ecf (bug 1218456)
Backed out changeset 343046089f8e (bug 1218456)

--HG--
extra : rebase_source : f092d903c8c80581d187493e036b1875d8668b3d
2019-07-09 22:04:13 +03:00
Sylvestre Ledru e77bfc655d Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-07-16 07:33:44 +00:00
Emilio Cobos Álvarez 23a7cb7a68 Bug 1218456 - Remove nsILinkHandler. r=smaug
Interfaces with just one implementation don't seem very useful.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 16:17:47 +00:00
Emilio Cobos Álvarez d5db3842a0 Bug 1218456 - Allow navigating when there's no pres context. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D37404

--HG--
extra : moz-landing-system : lando
2019-07-09 16:17:27 +00:00
Kartikaya Gupta a48c958c4a Bug 1564275 - Tweak allowed fuzz for 456219-1c.html. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D37418

--HG--
extra : moz-landing-system : lando
2019-07-09 16:23:51 +00:00
Kartikaya Gupta 19648f643e Bug 1564409 - Tweak allowed fuzz for img-width-slice-1.html. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D37417

--HG--
extra : moz-landing-system : lando
2019-07-09 16:23:51 +00:00
Kartikaya Gupta 9368f243bc Bug 1564429 - Tweak allowed fuzz to cover new values with WebRender on Geckoview, after bug 1409773. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D37416

--HG--
extra : moz-landing-system : lando
2019-07-09 14:20:27 +00:00
Kartikaya Gupta 9128a05784 Bug 1564383 - Mark test as passing with WebRender on Geckoview. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D37415

--HG--
extra : moz-landing-system : lando
2019-07-09 14:20:27 +00:00
Nicholas Nethercote 4c427b464f Bug 1563996 - Make layout.show_previous_page a static pref. r=bzbarsky
This is a weird pref.

First, it is VarCached into two different global variables, one in
nsSubDocumentFrame.cpp, and the other in nsView.cpp.

Second, the pref is not defined by default. When the VarCache variables are
initialized they are therefore set to the default value provided to the
`AddBoolVarCache()` call, which in both cases is `true`. This semantics isn't
possible with `StaticPrefs`, so the patch defines the pref as true by default.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 07:59:55 +00:00
Jonathan Kew 7ae68c458b Bug 1421938 - Add an 'auto' value for the CSS 'quotes' property, and make it use language-dependent quote marks. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D36429

--HG--
extra : moz-landing-system : lando
2019-07-09 08:59:27 +00:00
Hiroyuki Ikezoe 42961b4cff Bug 1553012 - A browser mochitest for scrollIntoView in fission. r=nika
NOTE: This test relies on our wrong behavior that Element.scrollIntoView works
across the cross-origin document boundaries, which is bug 1561754.  So once
after we make 'Find in page' work in fission world (bug 1553384), we should
revise this test.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 05:43:13 +00:00
Hiroyuki Ikezoe 8aa17d97ef Bug 1553012 - Make PresShell::ScrollFrameRectIntoView work in fission world. r=mattwoodrow,nika,tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D36136

--HG--
extra : moz-landing-system : lando
2019-07-09 05:34:27 +00:00
Narcis Beleuzu 4b16f12a07 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-07-09 06:51:10 +03:00
Narcis Beleuzu 59c3fccd33 Merge inbound to mozilla-central. a=merge 2019-07-09 06:45:48 +03:00
shindli f5dea34efe Backed out 5 changesets (bug 1421938) for bustages in /builds/worker/workspace/build/src/layout/base/nsQuoteList.cpp CLOSED TREE
Backed out changeset 4e25a6db1f5b (bug 1421938)
Backed out changeset 11a8f9bc0418 (bug 1421938)
Backed out changeset f27980997dc5 (bug 1421938)
Backed out changeset adb2e2714c14 (bug 1421938)
Backed out changeset 33e38a62b400 (bug 1421938)
2019-07-09 02:52:38 +03:00
Hiroyuki Ikezoe 901885347c Bug 1562503 - Create GeckoMVMContext and ZoomConstraintsClient only for the root top level document. r=botond
browserElement_ScrollEvent.js is affected by this change. Before this change
the document for iframe mozbrowser was not considered as the root content
document, but after this change, it's considered as the root content document.
Given the nature of iframe mozbrowser, I believe it's the right behavior.

The browser mochitest in this commit fails without this change since
the minimum-scale size is used in the out-of-process iframe so that the visual
viewport size gets 3x bigger than the expected size.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 22:39:31 +00:00
Jonathan Kew 6bea7b3966 Bug 1421938 - Add an 'auto' value for the CSS 'quotes' property, and make it use language-dependent quote marks. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D36429

--HG--
extra : moz-landing-system : lando
2019-07-08 20:16:19 +00:00
Hiroyuki Ikezoe 3c50a262de Bug 1516322 - Enable all reftests in layout/reftests/meta-viewport on Windows. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D37032

--HG--
extra : moz-landing-system : lando
2019-07-08 18:51:51 +00:00
Andrew Osmond e501ee889d Bug 1409773 - Use WebRender instead of fallback for border raster images. r=jrmuizel
Before this patch, we would use fallback for all border images. Now for
all but vector images we will use the WebRender border images
primitives. Vector images are an exception because the fallback is
clever in that it upscales the vector image and clips to only draw the
region it requires. This avoids artifacting but to do something similar
for WebRender as it is currently defined, we would increase our CPU and
memory footprint as we would need to produce the entire vector image
upscaled, not just the parts we need. In the future we should change
WebRender to accept different image resources for each of the segments.

Differential Revision: https://phabricator.services.mozilla.com/D37093
2019-07-08 12:54:44 -04:00
Sebastian Hengst 3134e9d91c Backed out 3 changesets (bug 1541557) for failures in SpecialPowersObserverAPI.js. a=backout CLOSED TREE
Backed out changeset 5b91c8869f42 (bug 1541557)
Backed out changeset a636725ad217 (bug 1541557)
Backed out changeset 7e6657f88b76 (bug 1561150)

--HG--
rename : testing/specialpowers/content/MozillaLogger.js => testing/mochitest/tests/SimpleTest/MozillaLogger.js
rename : testing/specialpowers/content/specialpowersAPI.js => testing/specialpowers/content/SpecialPowersAPI.jsm
rename : testing/specialpowers/content/SpecialPowersObserverAPI.js => testing/specialpowers/content/SpecialPowersAPIParent.jsm
rename : testing/specialpowers/content/specialpowers.js => testing/specialpowers/content/SpecialPowersChild.jsm
rename : testing/specialpowers/content/SpecialPowersObserver.jsm => testing/specialpowers/content/SpecialPowersParent.jsm
extra : amend_source : 158c9e896d32778e71f4fd343227f531d693e511
2019-07-08 14:38:45 +02:00
Sebastian Hengst 515d14403f Backed out 34 changesets (bug 1561150, bug 1541557, bug 1561724, bug 1561999, bug 1558298, bug 1561061, bug 1532795, bug 1560400, bug 1561122) for beta simulation failures (bug 1563905, bug 1564001). a=backout
Backed out changeset 210d6d52e8b0 (bug 1541557)
Backed out changeset 3115db154c45 (bug 1561122)
Backed out changeset b42748878b6e (bug 1561122)
Backed out changeset 266160ca8e9d (bug 1561999)
Backed out changeset 00e935828f41 (bug 1561724)
Backed out changeset 4aaf4882780d (bug 1561150)
Backed out changeset 6644e38a6692 (bug 1561150)
Backed out changeset 72cd895b1613 (bug 1561061)
Backed out changeset f0bac27bad8a (bug 1560400)
Backed out changeset 95da39224eab (bug 1560400)
Backed out changeset 3fe4d4942fd2 (bug 1532795)
Backed out changeset 23e90c6fec2b (bug 1532795)
Backed out changeset a7f093fbef06 (bug 1532795)
Backed out changeset c873f0eb94be (bug 1532795)
Backed out changeset cf359a8ec753 (bug 1532795)
Backed out changeset f2c260cae4b5 (bug 1541557)
Backed out changeset 054a0b7aa81d (bug 1541557)
Backed out changeset f808ec45ff9c (bug 1541557)
Backed out changeset 1025eeef0954 (bug 1541557)
Backed out changeset fe88b250e418 (bug 1541557)
Backed out changeset 6680278c231b (bug 1541557)
Backed out changeset 255735c1ff63 (bug 1541557)
Backed out changeset 51969e1c9c44 (bug 1558298)
Backed out changeset d12525990565 (bug 1558298)
Backed out changeset ef4ec8f0f886 (bug 1558298)
Backed out changeset 45a9599d9641 (bug 1558298)
Backed out changeset 4ccecdba1c34 (bug 1558298)
Backed out changeset 0e91fc9541c2 (bug 1558298)
Backed out changeset edd1cc6badf7 (bug 1558298)
Backed out changeset ba24251835fb (bug 1558298)
Backed out changeset ca88016511bb (bug 1558298)
Backed out changeset c95e6e599836 (bug 1558298)
Backed out changeset 9b1a9d802434 (bug 1558298)
Backed out changeset f859e4de0007 (bug 1558298)

--HG--
rename : testing/mochitest/tests/SimpleTest/MozillaLogger.js => testing/specialpowers/content/MozillaLogger.js
rename : testing/specialpowers/content/SpecialPowersParent.jsm => testing/specialpowers/content/SpecialPowersObserver.jsm
rename : testing/specialpowers/content/SpecialPowersAPIParent.jsm => testing/specialpowers/content/SpecialPowersObserverAPI.js
rename : testing/specialpowers/content/SpecialPowersChild.jsm => testing/specialpowers/content/specialpowers.js
rename : testing/specialpowers/content/SpecialPowersAPI.jsm => testing/specialpowers/content/specialpowersAPI.js
extra : rebase_source : 223d2e49710b016c9973765d402c61692004518e
extra : amend_source : ec773fe82334e6da536bb21e83a994a5f2d03091
2019-07-08 10:37:28 +02:00
Sylvestre Ledru 131d0c6a02 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-07-06 08:18:28 +00:00
Emilio Cobos Álvarez 117f562dcb Bug 1563315 - Use cbindgen for fill and stroke r=boris
Differential Revision: https://phabricator.services.mozilla.com/D36807

--HG--
extra : moz-landing-system : lando
2019-07-06 08:31:02 +00:00
Emilio Cobos Álvarez 74837c0281 Bug 1563484 - Add reftests for this bug. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D36895

--HG--
extra : moz-landing-system : lando
2019-07-06 08:20:14 +00:00
Emilio Cobos Álvarez 6754f5f967 Bug 1563484 - Add reftest support for text-zoom. r=dbaron
Seems we had no reftests for this feature :(

Depends on D36893

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

--HG--
extra : moz-landing-system : lando
2019-07-05 21:33:37 +00:00
alwu 07e34c8bba Bug 1541452 - update cue display when window is resized. r=heycam
When window is resized, the cue would usually be zoomed in or out automatically with the video and keep its relative position to video.

However, if video is being applied the explicit percentage value on its 'width' or 'height', we have to recompute cue's position in this situation, because the width or height of the video would be scaled again after applied the first size scaled which is caused by resizing.

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

--HG--
extra : moz-landing-system : lando
2019-07-06 00:53:20 +00:00
Hiroyuki Ikezoe e1744fe34b Bug 1564021 - Use the default desktop width (980px) in the case where we have any viewport meta element but no valid content there. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D37329

--HG--
extra : moz-landing-system : lando
2019-07-09 01:56:34 +00:00
alwu c2ca57258b Bug 1305732 - part5 : set CSS properties directly on '::cue'. r=heycam,emilio
According to the spec [1], we have to set those CSS properties on the root node, and then this root node would have a child node, background box [2], which would contain all other child nodes.

In our case, the background box is `cueDiv` [3].

In theory, all those properties set on the root node should be inherited by the background box. However, when the background box is a pseudo element `::cue`, they won't be directly inherit from the the background box's parent, inherited styles would acutally come from video instead.

Therefore, we have to directly set these properties on the pseudo element and mark them as `!important` to avoid being overrided by user style script.

[1] https://www.w3.org/TR/webvtt1/#ref-for-list-of-webvtt-node-objects-9
[2] https://www.w3.org/TR/webvtt1/#webvtt-cue-background-box
[3] https://searchfox.org/mozilla-central/rev/11712bd3ce7454923e5931fa92eaf9c01ef35a0a/dom/media/webvtt/vtt.jsm#533-534

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

--HG--
extra : moz-landing-system : lando
2019-07-09 01:42:45 +00:00
Cameron McCormack b8f227ec6f Bug 1555851 - Detect motion path measurement failures. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D37337

--HG--
extra : moz-landing-system : lando
2019-07-09 01:26:52 +00:00
Hiroyuki Ikezoe dcfdeea7f1 Bug 1556275 - Handle unknown values for width and height as 'Auto' in viewport meta tag. r=botond
Without the change a green rectangle in each reftest in this commit covers whole
screen.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 00:02:48 +00:00
Charlie Marlow 1e64f27aad Bug 1561657: fixed text-underline-offset so that positive lengths represent movement outwards from the text r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D36669

--HG--
extra : moz-landing-system : lando
2019-07-08 20:15:54 +00:00
Charlie Marlow dd89a93a34 Bug 1562704: fixed text-underline-offset for Japanese and Korean text, where underlines appear to the right of text r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D36519

--HG--
extra : moz-landing-system : lando
2019-07-08 20:15:56 +00:00
shindli 2c12986a7f Backed out 5 changesets (bug 1421938) for causing a bustage in /builds/worker/workspace/build/src/intl/locale/cldr-quotes.inc:21:448 CLOSED TREE
Backed out changeset 3958f2af0e34 (bug 1421938)
Backed out changeset 89a0866d1aa0 (bug 1421938)
Backed out changeset f150702af11f (bug 1421938)
Backed out changeset b8ebd4d241e0 (bug 1421938)
Backed out changeset 1d38eb5eff6e (bug 1421938)
2019-07-08 23:09:34 +03:00
shindli 3836f557ea Backed out 3 changesets (bug 1561657, bug 1557857, bug 1562704) for causing Wr permafailures in z:/build/build/src/layout/base/nsCSSFrameConstructor.cpp:3962 CLOSED TREE
Backed out changeset 3fd103a9fce8 (bug 1557857)
Backed out changeset c4ffd7ba0442 (bug 1561657)
Backed out changeset 4b67dff062c6 (bug 1562704)
2019-07-08 22:56:35 +03:00
Jonathan Kew e5f479f588 Bug 1421938 - Add an 'auto' value for the CSS 'quotes' property, and make it use language-dependent quote marks. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D36429

--HG--
extra : moz-landing-system : lando
2019-07-08 12:13:28 +00:00
Daniel Holbert a1e7b693de Bug 1563050: Treat table-cells with contain:layout as if they had no baseline. r=TYLin
This makes us pass web platform test contain-layout-baseline-004.html (i.e. it
makes us treat that test's 'contain:layout' table-cell as having no baseline,
so we align its bottom edge with the other cell's actual baseline, as the test
expects).

This is required by the spec text at [1] which excludes most table parts but
includes table cells, and says "the containing element is treated as having no
baseline".

[1] https://drafts.csswg.org/css-contain/#containment-layout

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

--HG--
extra : moz-landing-system : lando
2019-07-08 17:41:35 +00:00
Charlie Marlow 7f1865e5fb Bug 1561657: fixed text-underline-offset so that positive lengths represent movement outwards from the text r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D36669

--HG--
extra : moz-landing-system : lando
2019-07-08 16:07:45 +00:00
Charlie Marlow 2e000d8004 Bug 1562704: fixed text-underline-offset for Japanese and Korean text, where underlines appear to the right of text r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D36519

--HG--
extra : moz-landing-system : lando
2019-07-08 16:07:33 +00:00
Jonathan Kingston 31441f82ea Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D35504

--HG--
extra : moz-landing-system : lando
2019-07-08 16:37:45 +00:00
Emilio Cobos Álvarez d1a9b44ea6 Bug 1560188 - Fix and improve display list memory reporting. r=mattwoodrow,njn
I missed in bug 1487216 that the pres arena memory reporting assumes that the
entry indices are frame class ids, which means that we're reporting some display
list arena entries as frames, which is obviously wrong.

Cleanup a bit nsPresArena to remove the custom id concept, and report also
individual display item type memory usage.

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

--HG--
extra : moz-landing-system : lando
2019-07-02 02:46:09 +00:00
Cosmin Sabou cddd4c6528 Backed out changeset f9c0c52368d6 (bug 1562745) for causing crashes on stream-safe-creation.any.serviceworker.html 2019-07-06 01:05:01 +03:00
Kartikaya Gupta 9f2ef918cb Bug 1563691 - Add GV+WR fuzz annotation for new test. r=gbrown
Depends on D37066

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

--HG--
extra : moz-landing-system : lando
2019-07-05 14:43:05 +00:00
Kartikaya Gupta f81fad2520 Bug 1563737 - Tweak fuzz on element-paint-native-widget.html. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D37066

--HG--
extra : moz-landing-system : lando
2019-07-05 14:44:38 +00:00
Geoff Brown bfa723f163 Bug 1562745 - Make OSX10.14 debug tests actually use debug builds. r=jmaher
As far as I can tell, the intermittent suite_start failures are due to
stdout/stderr output interleaving -- a known issue for reftest logging,
without a clear way forward. Let's work around it the same way we did
on Windows.

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

--HG--
extra : moz-landing-system : lando
2019-07-05 12:56:54 +00:00
Victor Porof 6a261b9e77 Bug 1561435 - Format layout/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : b9cc96337c05dbb9a9f811c63dcc5fd63588d652
2019-07-05 10:50:41 +02:00
Kartikaya Gupta 30a866a3ac Bug 1525314 - Disable tests that crash. r=gbrown
Depends on D36798

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

--HG--
extra : moz-landing-system : lando
2019-07-04 21:34:59 +00:00
Kartikaya Gupta ec2096ed3f Bug 1525314 - Update reftest annotations for WebRender on GeckoView. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D36798

--HG--
extra : moz-landing-system : lando
2019-07-04 21:57:48 +00:00
Kartikaya Gupta a898111144 Bug 1525314 - Auto-fuzz WR on Android with maxDifference<=2. r=jmaher
Due to the sheer number of tests that exhibit a random fuzz with maxDifference=1
and maxDifference=2 with WR on Android, it's easier to just tweak the harness
to autofuzz these away. This adds machinery to do so, and also adds a new
annotation that can be used to disable the autofuzzing on specific tests.

Depends on D36794

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

--HG--
extra : moz-landing-system : lando
2019-07-04 21:35:04 +00:00
Razvan Maries daed363fd7 Merge mozilla-inbound to mozilla-central a=merge 2019-07-05 00:40:17 +03:00
Csoregi Natalia 0c754625a9 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-07-04 12:54:22 +03:00
Oana Pop Rus 2ad74ef9f7 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-07-04 06:38:21 +03:00
Jonathan Kew 947857981c Bug 1562733 - Properly transform DetailedGlyph offsets when rendering vertical (rotated) text through webrender. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D36795

--HG--
extra : moz-landing-system : lando
2019-07-04 11:58:35 +00:00
Jonathan Kew d7932775f8 Bug 1562733 - Add reftests using Noto Nastaliq in vertical (sideways) writing mode. r=lsalzman
The sideways-rl test is fuzzy (even without webrender) because we get a 1px discrepancy
in baseline positioning for the rotated text; presumably the rotation done by sideways-rl
and that done by CSS transform end up rounding the center of rotation differently. That's
probably a bug we should fix, although offhand I'm not sure which is more correct; anyhow,
it's a separate issue from the bug here.

When WebRender is enabled, the test/reference difference is much greater because many of
the glyphs are wildly misplaced, not just shifted by 1px, so it still fails despite the
fuzzy() annotation.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 18:24:03 +00:00
Hiroyuki Ikezoe c9de23aa09 Bug 1562757 - Call ScrollToVisual for the pres shell of the given scrollable frame in ScrollToShowRect. r=botond
We should also check IsRootContentDocumentCrossProcess instead of
IsRootContentDocument there, it will be fixed in bug 1562505.

The test case in this commit is almost copied-n-pasted from
helper_scroll_into_view_bug1516056.html.

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

--HG--
extra : moz-landing-system : lando
2019-07-04 08:48:47 +00:00
L. David Baron bb277e6cb2 Bug 1474771 - Revert all changes from bug 1459937 since they are no longer needed. r=dholbert
(The single line that made them active was commented out in the previous patch.)

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

--HG--
extra : moz-landing-system : lando
2019-07-01 21:58:35 +00:00
Gerald Squelart 2f31b3fef4 Bug 1474771 - Propagate NS_FRAME_IS_DIRTY to descendants when marking as dirty rather than during reflow. r=dholbert
This simplifies dealing with frames that are pushed/pulled between
continuations during reflow, allows us to avoid the complexity of the
fix to 1459937, and hopefully fixes some of the regressions from bug
1308876.

This disables the changes from bug 1459937 by commenting out a single
line in ReparentFrameInternal in nsBlockFrame.cpp, but all the added
code will be removed in the following patch.

Co-authored-by: Gerald Squelart <gsquelart@mozilla.com>
Co-authored-by: L. David Baron <dbaron@dbaron.org>

Depends on D36423

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

--HG--
extra : moz-landing-system : lando
2019-07-01 21:56:43 +00:00
Dzmitry Malyshau a29869406b Bug 1546818 - WR text local transform fix r=gw
Change the glyph transform computation to be relative to the surface node.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 18:59:42 +00:00
Jeff Muizelaar e4c1e944b8 Bug 1563359. Add a test for clipping and stroking text. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D36825

--HG--
extra : moz-landing-system : lando
2019-07-03 19:49:05 +00:00
Ting-Yu Lin f704cd46d3 Bug 1563370 - Eliminate GetPrevInFlowVirtual() and GetNextInFlowVirtual(). r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D36829

--HG--
extra : moz-landing-system : lando
2019-07-03 21:37:14 +00:00
Mirko Brodesser 6b67de025f Bug 1562876: rename `Selection::RemoveRange` to `Selection::RemoveRangeAndUnselectFramesAndNotifyListeners`. r=smaug
The name of the corresponding webidl interface of course remains unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D36607
2019-07-03 13:26:14 +02:00
Mirko Brodesser 63b4627d28 Bug 1562876: rename `Selection::AddRange` to `Selection::AddRangeAndSelectFramesAndNotifyListeners`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D36602
2019-07-03 13:26:13 +02:00
Makoto Kato 8b306f551d Bug 1556103 - Part 1. Add long press action when setting focus. r=masayuki
Actually, long tap can set focus.  But since it uses `nsIFocusManager::FLAG_BYMOUSE` flag, we cannot recognize whether setting focus is by long tap or not.

So I would like to add new flag `FLAG_BYLONGPRESS` and `CAUSE_LONGPRESS` that are by long tap.

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

--HG--
extra : moz-landing-system : lando
2019-06-28 00:39:45 +00:00
Charlie Marlow eb50d28bc0 Bug 1559493: Fixed origin from which text-underline-offset is set in vertical writing modes r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D36219

--HG--
extra : moz-landing-system : lando
2019-07-03 21:23:38 +00:00
Kris Maglione b459f53a11 Bug 1561061: Move SpecialPowers pref env code to parent and make sane-ish. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D35706

--HG--
extra : rebase_source : ec33af8c17048c3828d4ca4643e2e17bd2a854c0
extra : source : c2d0956f41d82e76c682f829807e818863cd802a
2019-06-24 13:47:53 -07:00
Kris Maglione f180f12646 Bug 1560400: Part 1 - Support remote frames in Window indexed getters. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D35471

--HG--
extra : rebase_source : b326799f8ced75068f7e7fec6edbd39455cdb9b1
extra : source : 84633034590f2d1a4c336f9653e6c542f3a09039
2019-06-20 13:52:55 -07:00
Daniel Holbert b459034009 Bug 1562312: Implement 'contain:size' for <select multiple> elements. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D36418

--HG--
rename : layout/reftests/w3c-css/submitted/contain/contain-size-select-elem-001-ref.html => layout/reftests/w3c-css/submitted/contain/contain-size-select-elem-003-ref.html
rename : layout/reftests/w3c-css/submitted/contain/contain-size-select-elem-001.html => layout/reftests/w3c-css/submitted/contain/contain-size-select-elem-003.html
rename : layout/reftests/w3c-css/submitted/contain/contain-size-select-elem-002-ref.html => layout/reftests/w3c-css/submitted/contain/contain-size-select-elem-004-ref.html
rename : layout/reftests/w3c-css/submitted/contain/contain-size-select-elem-002.html => layout/reftests/w3c-css/submitted/contain/contain-size-select-elem-004.html
extra : moz-landing-system : lando
2019-07-02 18:40:17 +00:00
Emilio Cobos Álvarez eadf6ea400 Bug 1562787 - Improve style struct size assertion messages. r=boris
This will display something like:

```
error: static_assert failed due to requirement '528UL <= 504UL' "Style struct became larger than the size limit"
static_assert(Actual <= Limit, "Style struct became larger than the size limit");
^             ~~~~~~~~~~~~~~~
note: in instantiation of template class 'AssertSizeIsLessThan<nsStylePosition, 528, 504>' requested here
STYLE_STRUCT_RESET(Position)
^
note: expanded from macro 'STYLE_STRUCT_RESET'
		     ^
note: expanded from macro 'STYLE_STRUCT'
static_assert(AssertSizeIsLessThan<nsStyle##name_, sizeof(nsStyle##name_), kStyleStructSizeLimit>::instantiate, "");
```

Which includes both the size, the limit, and the struct name, as opposed to the
current:

```
error: static_assert failed due to requirement 'sizeof(nsStylePosition) <= kStyleStructSizeLimit' "nsStylePosition became larger than the size limit"
STYLE_STRUCT_RESET(Position)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'STYLE_STRUCT_RESET'
		     ^~~~~~~~~~~~~~~~~~
note: expanded from macro 'STYLE_STRUCT'
static_assert(sizeof(nsStyle##name_) <= kStyleStructSizeLimit, \
```

Which only includes the name and thus isn't very useful.

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

--HG--
extra : moz-landing-system : lando
2019-07-02 18:14:19 +00:00
Sean Feng 7b15bc44ad Bug 1560328 - Add a crashtest for Bug 1560328 r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D36621

--HG--
extra : moz-landing-system : lando
2019-07-02 18:37:45 +00:00
Mihai Alexandru Michis 761fb3a596 Backed out changeset c68a6b2e0157 (bug 1557371) for causing failures in reftest/content/bugs/272646-1.xul CLOSED TREE 2019-07-02 06:01:31 +03:00
Cameron McCormack d62802d69d Bug 1562361 - Clear cached style indices whenever we clear the actual styles. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D36450

--HG--
extra : moz-landing-system : lando
2019-07-02 00:15:45 +00:00
Cameron McCormack 336cad5a55 Bug 1553705 - Make GenerateStateKey() infallible. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D32258

--HG--
extra : moz-landing-system : lando
2019-07-01 07:20:04 +00:00
Brendan Dahl c5fbaae97e Bug 1557371 - Part 1 - Load all XUL reftests with chrome privilege. r=dbaron
This will have two benefits:

1) Align test setup with shipping Firefox - We don't allow content
privilege XUL in shipping versions of Firefox, so having the tests be
chrome would be more realistic to our use case.

2) Support the XUL to XHTML migration. These files will soon become XHTML
files, but will still need to load XUL elements, so they'll need to be
marked as chrome privileged to continue working.

One test (404149-1.xul) is now disabled, since it fails when loaded as
chrome. Bug 1557383 was filed to address this.

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

--HG--
extra : moz-landing-system : lando
2019-06-29 00:04:12 +00:00
Ryan Hunt 7975d096de Bug 1561002 - Use buildingRect for remote browser clipping when we don't have anything more precise. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D35677

--HG--
extra : moz-landing-system : lando
2019-06-26 02:50:36 +00:00
Kartikaya Gupta 45dff4d7bb Bug 1554985 - Prevent the WebRenderUserData on the render root item from getting discarded prematurely. r=jrmuizel
With retained display lists, a content render root might get marked as not
needing a build, in which case the nsDisplayRenderRoot::CreateWRCommands
function does an early exit. In this case, we don't mark the associated
WebRenderUserData as used during the display list build, which causes it to
get deleted at the end of the transaction. The next transaction that
doesn't early-exit will re-create the WebRenderUserData with a new boundary
object. The compositor therefore thinks it's a brand new thing and, if
conditions are right, could end up destroying and re-creating much of the
APZC tree. That in turn can have effects like discarding paint-skipped
scrolling.

This patch ensures we always touch the WebRenderUserData during the display
list build, so we don't discard it. This problem may still affect nested
nsDisplayRenderRoot instances but I don't think we ever cases where those
occur.

Depends on D36386

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

--HG--
extra : moz-landing-system : lando
2019-07-01 01:23:03 +00:00
Kartikaya Gupta e1bbcf0b32 Bug 1554985 - Invert condition to reduce indentation. r=jrmuizel
No functional changes here.

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

--HG--
extra : moz-landing-system : lando
2019-06-30 01:36:54 +00:00
Csoregi Natalia 4173161363 Merge mozilla-central to autoland. CLOSED TREE 2019-06-29 13:02:56 +03:00
Csoregi Natalia 29f8e6aebd Merge inbound to mozilla-central. a=merge 2019-06-29 12:59:53 +03:00
Kartikaya Gupta 32b53ae115 Bug 1558598 - Force WebRender on or off in the reftest harness. r=ahal
Covers both local and remote reftests.

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

--HG--
extra : moz-landing-system : lando
2019-06-29 09:48:45 +00:00
Kagami Sascha Rosylight 29904ec6bf Bug 1454622: Remove DOMQuad bounds attribute r=bzbarsky
The bounds attribute has been deprecated and shown zero use, and thus this change removes it.

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

--HG--
extra : moz-landing-system : lando
2019-06-29 02:27:47 +00:00
Narcis Beleuzu cc10ed7ce5 Backed out 2 changesets (bug 1553705) for causing Bug1562142 . CLOSED TREE
Backed out changeset fbb26a04ec1f (bug 1553705)
Backed out changeset dd6e7c0970d5 (bug 1553705)
2019-06-29 02:39:01 +03:00
Ting-Yu Lin c5048ca650 Bug 1562122 Part 4 - Return early in the overflow incomplete case, and add an assertion for the bound of final block size. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D36291

--HG--
extra : moz-landing-system : lando
2019-06-28 21:21:15 +00:00
Ting-Yu Lin 1524471e5a Bug 1562122 Part 3 - Delete the duplicate logic computing the final block size. r=dholbert
After the deleted logic

```
aFinalSize.BSize(wm) =
    std::max(aReflowInput.AvailableBSize(), aContentBSize);
```

aStatus changes to incomplete, so it computes the same thing again.

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

--HG--
extra : moz-landing-system : lando
2019-06-28 21:21:06 +00:00