Commit Graph

70126 Commits

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