Commit Graph

69514 Commits

Author SHA1 Message Date
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
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
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
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