59462 Commits

Author SHA1 Message Date
Sebastian Hengst
75955d0246 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 8fJX1xXgzhD
2017-08-22 11:49:04 +02:00
Nicholas Nethercote
ac72ddb583 Bug 1390760 - Measure ServoComputedData::visited_style. r=bholley.
For the Obama wikipedia page, this covers about 85% of the unmeasured
ComputedValues structs. The about:memory output looks like this:

> +---2,443,648 B (02.41%) -- computed-values
> |   +--1,088,272 B (01.07%) -- dom
> |   +----945,744 B (00.93%) -- non-dom
> |   +----409,632 B (00.40%) -- visited

I'm not sure why some CVs are still being missed.

MozReview-Commit-ID: 1bYWwSi4ihn

--HG--
extra : rebase_source : 14e4bd36a54bbbd8fd265f559704bec5a5e3b154
2017-08-21 16:07:16 +10:00
Wes Kocher
7459418fd6 Backed out 16 changesets (bug 1364714) for android reftest failures in out-of-bounds-selectedindex.html a=backout
Backed out changeset b00b74e9d34b (bug 1364714)
Backed out changeset 1f52db2530d3 (bug 1364714)
Backed out changeset e3dda4fe9dae (bug 1364714)
Backed out changeset ff188112de35 (bug 1364714)
Backed out changeset 0e26a8c07cae (bug 1364714)
Backed out changeset e0cf94cb8666 (bug 1364714)
Backed out changeset 6f758a7673d3 (bug 1364714)
Backed out changeset 4b915e42b36d (bug 1364714)
Backed out changeset 80ca8faf1dac (bug 1364714)
Backed out changeset 2bd5a2d0ea09 (bug 1364714)
Backed out changeset aa5a89aac5ea (bug 1364714)
Backed out changeset 7634973c46ad (bug 1364714)
Backed out changeset b02a1d99e603 (bug 1364714)
Backed out changeset a297dc40177e (bug 1364714)
Backed out changeset 40e902ed7dbe (bug 1364714)
Backed out changeset d653fc499c9b (bug 1364714)

MozReview-Commit-ID: AyHF7oPwAs4
2017-08-21 16:16:29 -07:00
Jonathan Kew
234e8a8ef2 Bug 1391717 - Update imported CSS tests in layout/reftests/w3c-css/received. r=dholbert 2017-08-21 21:11:32 +01:00
Jonathan Kew
734895ccf7 Bug 1364714 - Adjust reftest text-emphasis-line-height-001z.html to avoid potential unwanted scrollbar. r=dholbert 2017-08-21 14:37:46 +01:00
Jonathan Kew
aa0d9ce1d7 Bug 1364714 - Adjust dimensions in fixed-table-layout-010 tests to allow for increased font metrics without disrupting layout of test elements. r=dholbert 2017-08-21 14:37:43 +01:00
Jonathan Kew
a996067c9b Bug 1364714 - Increase line-height in some ruby reftests to allow for default font with larger metrics. r=dholbert 2017-08-21 14:37:41 +01:00
Jonathan Kew
6cb6d8d95d Bug 1364714 - Adjust fuzzy() annotation for pre-line-1 test to account for change in freetype's font rendering. r=dholbert 2017-08-21 14:37:37 +01:00
Jonathan Kew
8ecce523ed Bug 1364714 - Adjust fuzzy() annotation for table-background test to allow for change in freetype's rendering. r=dholbert 2017-08-21 14:37:35 +01:00
Jonathan Kew
497c91f7b3 Bug 1364714 - Add fuzzy() annotation to mathml-mmultiscript test to allow for changed freetype rendering. r=dholbert 2017-08-21 14:37:32 +01:00
Jonathan Kew
4ac410c6cd Bug 1364714 - Modify text to avoid possibly-overflowing descender in last line of orthogonal float. r=dholbert 2017-08-21 14:37:29 +01:00
Jonathan Kew
cad3d5c213 Bug 1364714 - Set explicit line-height in position-relative tests, to avoid fragile dependence on default font's metrics. r=dholbert 2017-08-21 14:37:25 +01:00
Jonathan Kew
f3cae15008 Bug 1364714 - Set explicit line-height on background-position-vrl-018-ref file for better reliability. r=dholbert
(Already fixed upstream via https://github.com/w3c/web-platform-tests/pull/6924.)
2017-08-21 14:37:23 +01:00
Jonathan Kew
49bddb0ade Bug 1364714 - Fix fragile reference case for multicol-gap-001 test. r=dholbert
(Already fixed upstream via https://github.com/w3c/web-platform-tests/pull/6879.)
2017-08-21 14:37:19 +01:00
Jonathan Kew
7b1afa5045 Bug 1364714 - Adjust fuzzy() annotation for box-decoration reftest. r=dholbert
Re-ordering fuzzy annotations so that the Android annotation follows (and overrides)
the more general skiaContent one.
2017-08-21 14:37:15 +01:00
Sebastian Hengst
02a34cdd40 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-08-21 13:43:53 +02:00
Sebastian Hengst
cf6a9260e7 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IC9EbX0bomM
2017-08-21 13:41:46 +02:00
Bevis Tseng
6b5c329803 Bug 1390790 - Label ScrollFrameHelper::ScheduleSyntheticMouseMove. r=tnikkel 2017-08-16 17:10:36 +08:00
Sebastian Hengst
54d8b1efae merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1yS8D5e0Ejz
2017-08-20 23:24:15 +02:00
Sebastian Hengst
786597aec6 Backed out changeset 2f49d825c651 (bug 1363922) for failing mochitest test_transformed_scrolling_repaints_3.html on Windows 7 debug and mochitest test_bug590573.html on Android 4.3. r=backout 2017-08-20 19:21:25 +02:00
Sebastian Hengst
7e610db54c Backed out changeset 3241eaaa608d (bug 1363922) 2017-08-20 19:20:12 +02:00
Emilio Cobos Álvarez
2b074ed3a4 Bug 1391787: Mutex out the system color stuff. r=Manishearth
GTK is definitely not thread-safe, and unless proven otherwise, I suspect the
other widgets aren't either.

Mutex the calls to get the system color stuff.

There are chances to make this more fine-grained moving the mutexes into the
specific widget code and when needed. That is more analysis work which I'm not
sure we should waste time on, since the chances on racing here seem quite
unlikely in practice (system colors are uncommon enough in content, I guess).

MozReview-Commit-ID: AOQQ2jtkgpx
2017-08-20 18:19:19 +02:00
Bas Schouten
fc62b0a980 Bug 1363922 - Part 2: Estimate scale of frames based on their PresShell resolution. r=mstange
MozReview-Commit-ID: 8f6T3PiPkF8
2017-08-17 15:45:31 +02:00
Bas Schouten
1a70bab6de Bug 1363922 - Part 1: Remember about the reference frame during BuildDisplayList for ScrollFrameHelper so GetScrolledRect can use it. r=mstange
MozReview-Commit-ID: 8GO6xuSH5xY
2017-08-17 15:45:30 +02:00
Stone Shih
7646d41f1d Bug 1361067 Part2: Coalesce mouse move events to be once per refresh cycle. r=smaug.
MozReview-Commit-ID: 6jwQxxNIC2n
2017-08-11 14:58:08 +08:00
Emilio Cobos Álvarez
69bb02b53d Bug 1391577: Crashtest. r=heycam
MozReview-Commit-ID: I8th7nMpwnJ

--HG--
extra : rebase_source : 81342a197eb5bd36dfcd64dc4755a2c5413bfffc
2017-08-20 09:15:58 +02:00
Boris Chiou
019a8f16fa Bug 1389429 - Part 2: Update test_transitions_per_property.html for rotatex and rotatey. r=birtles
MozReview-Commit-ID: DRV4R0JRGkU

--HG--
extra : rebase_source : 0e01dfa613885dc123577e5e4c9fa38604af3f2c
2017-08-16 11:20:53 +08:00
Masayuki Nakano
a7240d8532 Bug 1391538 - nsTextFragment for text nodes in <input> or <textarea> shouldn't store text as single byte characters even if all characters are less than U+0100 r=smaug
nsTextFrame stores text as single byte character array if all characters are
less than U+0100.  Although, this saves footprint, but retrieving and modifying
text needs converting cost.  Therefore, if it's created for a text node in
<input> or <textarea>, it should store text as char16_t array.

MozReview-Commit-ID: 9Z82rketT7g

--HG--
extra : rebase_source : 59f59ac1488c21a57d95d253cc794a011d672c95
2017-08-18 16:05:16 +09:00
Wes Kocher
c043502159 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7sFZmPUXSx6
2017-08-18 17:21:29 -07:00
Wes Kocher
b1fc5e008c Merge inbound to central, a=merge
MozReview-Commit-ID: 4cWGBbMEU2x
2017-08-18 15:53:07 -07:00
Nazım Can Altınova
1e119a0070 Bug 1391432 - stylo: Add test cases for -moz-linear-gradient with single keyword r=emilio
MozReview-Commit-ID: EohV57mnQKy

--HG--
extra : rebase_source : 0b21d3ac1b302e6af0ae798f4b81f0011b98d97a
2017-08-17 15:57:25 -07:00
Wes Kocher
91f1f19054 Merge m-c to autoland, a=merge
MozReview-Commit-ID: IMdYxijQ9ie
2017-08-21 17:20:06 -07:00
Wes Kocher
f10eee4259 Backed out 16 changesets (bug 1364714) for android reftest failures in out-of-bounds-selectedindex.html a=backout
Backed out changeset b00b74e9d34b (bug 1364714)
Backed out changeset 1f52db2530d3 (bug 1364714)
Backed out changeset e3dda4fe9dae (bug 1364714)
Backed out changeset ff188112de35 (bug 1364714)
Backed out changeset 0e26a8c07cae (bug 1364714)
Backed out changeset e0cf94cb8666 (bug 1364714)
Backed out changeset 6f758a7673d3 (bug 1364714)
Backed out changeset 4b915e42b36d (bug 1364714)
Backed out changeset 80ca8faf1dac (bug 1364714)
Backed out changeset 2bd5a2d0ea09 (bug 1364714)
Backed out changeset aa5a89aac5ea (bug 1364714)
Backed out changeset 7634973c46ad (bug 1364714)
Backed out changeset b02a1d99e603 (bug 1364714)
Backed out changeset a297dc40177e (bug 1364714)
Backed out changeset 40e902ed7dbe (bug 1364714)
Backed out changeset d653fc499c9b (bug 1364714)

MozReview-Commit-ID: AyHF7oPwAs4

--HG--
extra : source : bccc691242c5460e58c6aac1bd3fd63d15037b4a
2017-08-21 16:16:29 -07:00
Botond Ballo
ba4ac53b51 Bug 1340684 - Fire the scroll event before the style flush. r=mstange
This ensures that if the scroll event triggers style changes, they are
reflected on the same paint.

This is accomplished by having the refresh driver fire scroll events as
an explicit step after FlushType::Style observers and rAF callbacks, and
before the actual style flush.

MozReview-Commit-ID: 4kgauD5SgVo

--HG--
extra : rebase_source : 5f2c869c0749c1e1473797f2e202c075907a45fd
2017-08-09 21:08:38 -04:00
Nicholas Hurley
d4f64ba24e Bug 1391467 - Remove --enable-necko-protocols. r=gps,valentin
This patch removes the ability to select which protocols you want
included in necko, a wholly untested configuration that is broken in
practice. We have no need of this kind of configurability in necko.

In addition, this removes the final vestiges of rtsp support, which was
originally removed in bug 1295885 but still had some stuff hanging
around behind some ifdefs (that were never true).

MozReview-Commit-ID: KOEaDmit2IL

--HG--
extra : rebase_source : f6c2fdb972aaba46e922cda801252dc953550b94
2017-08-17 17:30:57 -07:00
Boris Chiou
d8f7b71ccb Bug 1362896 - Part 1: Fix the computation of distance for non-normalizable direction vector of rotate3d. r=birtles
MozReview-Commit-ID: GuT9vocccuN
2017-08-18 22:17:41 +08:00
Mantaroh Yoshinaga
04073ceef2 Bug 1369614 - Add test fail condition to reftest of interpolating stroke-width between px and percentage. r=hiro
Current stylo uses LengthOrPercentage::Calc for interpolation between length and
percentage, but neither gecko nor stylo will support the calc value for
stroke-dasharray. (bug 1258270 / bug 1386967)
So current stylo will not animate this types.

In this bug, we make stroke-dasharray interpolation between length and
percentage as discrete type until we properly support calc() for stroke-dasharray
(bug 1258270 / bug 1386967), as a result, rendering results of this type
matches with gecko.

MozReview-Commit-ID: FBuJM254ZdS

--HG--
extra : rebase_source : 634435089e3a72c03d62a7e4d51195e03c68d5b6
2017-08-18 10:32:34 +09:00
Sylvestre Ledru
b00d571d1c Bug 1389905 - Remove an useless call on GetCurrentReferenceFrame from BuildDisplayListForChildren r=botond
MozReview-Commit-ID: 2g282hyyEj7

--HG--
extra : rebase_source : cb16e21699158d466e6c79cc03264cf05dbd50d6
2017-08-13 11:44:56 +02:00
cku
ab6215e0a7 Bug 577824 - Part 2. Add a reftest for an SVG filtered HTML element that's inserted into the DOM by script. r=jwatt
MozReview-Commit-ID: 2onAXw1tbcJ

--HG--
extra : rebase_source : 80ec1cf90b6a313f9e0c48ba63068517115bb3be
2017-08-09 02:02:27 +08:00
cku
eb978c416f Bug 577824 - Part 1. Set the frame size in nsIFrame::FinishAndStoreOverflow before the ComputeEffectsRect call that uses it. r=jwatt
This change ensures that HTML frames with SVG filters applied are given the
correct overflow regions so that they will display and invalidate correctly.

The bug that this commit fixes does not manifest in many cases since
often elements happen to be reflowed more than once when a document loads.
When that happened the bug would be masked because the filtered frame would be
given a size during the first reflow, and that would then make the overflow
calculations in subsequent reflows work.  It was only in cases where the
filtered frame was only reflowed once (such as when dynamically inserting a
filtered element into the DOM using script) that the lack of a valid frame
size during the overflow calculations would result in bad overflow regions
being calculated.

MozReview-Commit-ID: 79lR27KRSym

--HG--
extra : rebase_source : 9df6ff87002f0af4abf0b97e2a084902d81f468c
2017-08-09 01:04:49 +08:00
Kartikaya Gupta
7017055b92 Bug 1390804 - When pushing a mask clip, don't record it in DisplayListBuilder's clip stack. r=ethlin
Recording mask clips in the clip stack changes the value of TopmostClipId()
which confuses the code in ScrollingLayersHelper. The mask clip can be
thought of as an "out-of-band" clip that ScrollingLayersHelper doesn't
need to know about. This patch adds a mechanism for pushing such
"out-of-band" clips without touching the clip stack.

MozReview-Commit-ID: 8Zeqtigk0cj

--HG--
extra : rebase_source : 35176f3c9d98d186f78d7a0ff44845c7c3c9f67e
2017-08-17 13:54:25 -04:00
Bobby Holley
a0a0196602 Bug 1375911 - Avoid creating a stylo thread pool in e10s parent processes. r=xidorn
MozReview-Commit-ID: LW92yNDKZf4
2017-08-17 19:15:20 -07:00
Bobby Holley
1b117f0519 Bug 1373343 - Skip the parallel traversal when the presshell isn't active. r=heycam
I've verified with the profiler that we use the parallel traversal for
loading a foreground tab, but not for a tab opened with ctrl-click.

MozReview-Commit-ID: 2SiVDlLLyah
2017-08-17 19:08:29 -07:00
Alexis Beingessner
9c4535798f Bug 1357545 - handle text-shadows/decorations with webrender (layers-free) r=jrmuizel
This replaces our DrawTargetCapture hack with a similar but more powerful TextDrawTarget
hack. The old design had several limitations:

* It couldn't handle shadows
* It couldn't handle selections
* It couldn't handle font/color changes in a single text-run
* It couldn't handle decorations (underline, overline, line-through)

Mostly this was a consequence of the fact that it only modified the start and end
of the rendering algorithm, and therefore couldn't distinguish draw calls for different
parts of the text.

This new design is based on a similar principle as DrawTargetCapture, but also passes
down the TextDrawTarget in the drawing arguments, so that the drawing algorithm can
notify us of changes in phase (e.g. "now we're doing underlines"). This also lets us
directly pass data to TextDrawTarget when possible (as is done for shadows and selections).

In doing this, I also improved the logic copied from ContainsOnlyColoredGlyphs to handle
changes in font/color mid-text-run (which can happen because of font fallback).

The end result is:

* We handle all shadows natively
* We handle all selections natively
* We handle all decorations natively
* We handle font/color changes in a single text-run
    * Although we still hackily intercept draw calls
    * But we don't need to buffer commands, reducing total memcopies

In addition, this change integrates webrender's PushTextShadow and PushLine APIs,
which were designed for this use case. This is only done in the layerless path;
WebrenderTextLayer continues to be semantically limited, as we aren't actively
maintaining non-layers-free webrender anymore.

This also doesn't modify TextLayers, to minimize churn. In theory they can be
augmented to support the richer semantics that TextDrawTarget has, but there's
little motivation since the API is largely unused with this change.

MozReview-Commit-ID: 4IjTsSW335h

--HG--
extra : rebase_source : d69f69648ade5c7a8e6bb756f4b8ab9e2543e576
2017-06-19 10:58:28 -04:00
Wes Kocher
c1383cebf3 Merge m-c to autoland, a=merge
MozReview-Commit-ID: KLrOCT1a7El
2017-08-17 16:23:45 -07:00
Wes Kocher
1d9f00cb8d Merge inbound to m-c a=merge
MozReview-Commit-ID: CQeEqtGlaXh
2017-08-17 16:16:51 -07:00
Gian-Carlo Pascutto
f4a0bc4497 Bug 1386826 - Whitelist the objdir, so _tests gets covered. r=jmaher
MozReview-Commit-ID: 8SHk1Pfy37I

--HG--
extra : rebase_source : 3944e20e310dda395e67ba9b1e33747413dea84e
2017-08-16 19:03:09 +02:00
Wes Kocher
e5f7ecb3d1 Backed out 2 changesets (bug 577824) for reftest failures in 577824.html a=backout CLOSED TREE
Backed out changeset 98f8d05483cf (bug 577824)
Backed out changeset 3b9a469ab1d6 (bug 577824)

MozReview-Commit-ID: HraTkt5uajG
2017-08-17 13:17:28 -07:00
Ethan Lin
cf6417fa0a Bug 1390437 - Add NotifyInvalidation after EndTransaction for layers-free mode. r=kats
For layers-free mode, we still need to call NotifyInvalidation to trigger
FireDOMPaintEvent. It should be fine to pass an empty rect since we always
take full snapshot for WR.

MozReview-Commit-ID: EzzQi2C5aRQ

--HG--
extra : rebase_source : 81eb63698bd052615c42eebb392e7f771a59f36c
2017-08-15 16:54:12 +08:00
Wei-Cheng Pan
9be6672987 Bug 1390263 - Follow up for Bug 1357742. r=xidorn
MozReview-Commit-ID: CMQkpkmL9Cb

--HG--
extra : rebase_source : 08f87eb1a7a93d3055260dfb822ce16128b4ed02
2017-08-17 17:40:21 +08:00